Skip to content

cubismic/codechain-rpc-go

 
 

Repository files navigation

CodeChain RPC Go

CodeChain RPC Go is a Go library that calls RPC to a CodeChain node.

How to install

go get -u github.com/CodeChain-io/codechain-rpc-go

Example

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())
}

How to run linter

Make sure you run revive before creating a PR to the repo

Install

go get -u github.com/mgechev/revive

Run

revive -config revive.toml ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%