Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 455 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 455 Bytes

Go Ethereum Block API

Golang implementation of Ethereum Block API

This API can store (in memory) new block information by getting Etherscan.

Running

$ go mod init
$ go run main.go

Manual POST

$ curl -X POST http://127.0.0.1:8080/blocks -H "Content-Type: application/json" -d '{"height": "", "date": "", "mined": "", "reward": "", "difficult": "}'  

GET

$ curl -X GET http://127.0.0.1:8080/blocks