Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 main

import (
"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/