A Golang client library for communicating with Ethereum RPC server
A Golang client library to communicate with Ethereum RPC server.
package main
import (
"context"
"fmt"
"github.com/getamis/eth-client/client"
)
func main() {
url := "http://127.0.0.1:8545"
client, err := client.Dial(url)
if err != nil {
fmt.Println("Failed to dial, url: ", url, ", err: ", err)
return
}
err = client.StartMining(context.Background())
if err != nil {
fmt.Println("Failed to start mining, err: ", err)
return
}
fmt.Println("start mining")
}
To use these methods, make sure that
istanbul.Dial
function (not the original Geth client).Methods:
To use these methods, make sure that
quorum.Dial
function (not the original Geth client).Methods:
Feel free to contribute to this repository.