Skip to content

CodeChain-io/codechain-sdk-go

Repository files navigation

CodeChain SDK Go

A Golang SDK for CodeChain

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() { a := rpc.NewRPC("https://corgi-rpc.codechain.io/").Chain b, _ := a.GetBlockByNumber(0) fmt.Printf("%+v\n", b) }

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

Go Software Development Kit for CodeChain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages