Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ofen/getblock-go
JSON-RPC client for getblock.io.
https://github.com/ofen/getblock-go
bitcoin blockchain client cryptocurrency ethereum getblock json-rpc monero web3
Last synced: 3 months ago
JSON representation
JSON-RPC client for getblock.io.
- Host: GitHub
- URL: https://github.com/ofen/getblock-go
- Owner: ofen
- License: apache-2.0
- Created: 2022-05-01T17:33:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T17:35:06.000Z (over 2 years ago)
- Last Synced: 2024-09-26T12:21:26.839Z (3 months ago)
- Topics: bitcoin, blockchain, client, cryptocurrency, ethereum, getblock, json-rpc, monero, web3
- Language: Go
- Homepage: https://pkg.go.dev/github.com/ofen/getblock-go
- Size: 16.6 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JSON-RPC client for [getblock.io](https://getblock.io).
## Install
```sh
go get github.com/ofen/getblock-go
```## Example
```go
package mainimport (
"context"
"fmt""github.com/ofen/getblock-go/eth"
)func main() {
ctx := context.Background()client := eth.New("your-api-token")
head, err := client.BlockNumber(ctx)
if err != nil {
panic(err)
}fmt.Println(head)
}
```## Documentation
https://getblock.io/docs/