top of page
Writer's pictureJian Soo

Ethereum, PascalCoin and Python?

Updated: Feb 27, 2019


I've started double mining Ethereum and PascalCoin using Claymore's Double Miner. I'm part of the Ethereum ethermine pool, and the PascalCoin nanopool.

With my GTX 1060, I've made a little ETH and PASC, but I want to upscale. I'm currently making an investment proposal to my mother, and hopefully it should let me build a mining rig of my own.

But enough of that - that's a bit far off. Let's talk about a small project I just began working on.

There's an API provided with ethermine and nanopool, accessible by sending HTTP requests. I thought, 'Why not code a small program that would check my hashrates, and tell me how much ETH I have?' That's when I turned to my good ol' friend Python, and found out about the urllib module.

Here's come code:

 


 

I used ast.literal_eval, which I thought to be a good idea at the time, as it appeared all of the info was in a bunch of nested arrays. However, I've just realised that it was indeed a JSON file, and I could use inbuilt methods to parse the file. Oops.


8 views0 comments

Recent Posts

See All

A massive update.

It's been a bit over a year since I've posted on this blog... GCSE revision, schoolwork and a massive project was on my mind, and I just...

bottom of page