CodeChain RPC Go is a Go library that calls RPC to a CodeChain node.
go get -u github.com/CodeChain-io/codechain-rpc-go
package main
import (
"fmt"
rpc "github.com/CodeChain-io/codechain-rpc-go"
)
func main() {
rpc.Init("https://corgi-rpc.codechain.io/")
fmt.Println(rpc.Version())
}
Make sure you run revive
before creating a PR to the repo
go get -u github.com/mgechev/revive
revive -config revive.toml ./...