Skip to content

zgrlin/go-block-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go based Ethereum Block API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages