Etherscan API

Etherscan is a really useful website but fairly recently I discovered they also have a pretty handy Developer API. I used it to analyse gas a contract was using over a period of time and thought it might be useful to record.

Getting Started

First of all an API key is required and this can be created for free by logging in and going to: https://etherscan.io/myapikey.

I’m going to paste my code with comments which should be easy enough to follow. The API covers a whole lot of other end point such as Logs, Tokens, etc that I didn’t use but the docs are good and worth a scan.

Example

Photo by Markus Spiske on Unsplash

SITIR 6

🤝 Eth Network Discord Community – I liked the idea about this from DeFi Dudes tweet.

🥧 I’ve used RaspberryPi a lot and the new Pi 400 seems cool.

🎧 Uncommon Core seems like a good podcast to add to the list and this was an interesting thread discussing some of points made in the last episode.

🧑‍💻 Then new Ethereum.org dev portal was released and is probably a go to resource now.

🥪 Mmmmmhhhh sandwiches!

👩‍🏫 40 things I learned by age 40 by Sunday Soother has some really good advice worth re-reading every now and then.

I don’t really know much about yield curves and things but fixed rate lending/borrowing on Ethereum would be 👌

And along similar lines this Rise of the Cryptodollar article from Bankless discusses savings rates for crypto dollars.

🏌️‍♂️ Didn’t realise half this stuff about the Masters finances and thought it was pretty interesting.

🧘 This so true:

Working on a problem reduces the fear of it.

It’s hard to fear a problem when you are making progress on it—even if progress is imperfect and slow.

Action relieves anxiety.

James Clear 3-2-1