getho.io api client written in golang
To install getho-go
, simply execute the following command in a terminal from your $GOPATH
:
go get github.com/popshootjapan/getho-go
gethoClient := getho.New("<YOUR DOMAIN>", nil)
input := &getho.EthGetBalanceInput{
Address: "0x5c66b0d82df26e8FE165Be6628F5f5e1f1bccD5C",
BlockParameter: getho.NewBlockParameter("latest"),
}
req, resp := gethoClient.EthGetBalanceRequest(input)
_ = req.Call()
fmt.Println(res.Result)
// => 0x7759d50972e9800
NOTE: Please DO NOT call a lot of requests.
$ go test *_test.go -v
- Error handling
- Decode all result parameters
web3_clientVersion
net_version
net_listening
net_peerCount
eth_gasPrice
eth_blockNumber
eth_getBalance
eth_getTransactionCount
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_sendRawTransaction
eth_call
eth_estimateGas
eth_getBlockByHash
eth_getBlockByNumber
eth_getTransactionByHash
eth_getTransactionReceipt
getho-go
is available under the MIT license. See the LICENSE file for more info.