Skip to content

CESSProject/cess-go-sdk

Repository files navigation

English | 简体中文

CESS Network SDK for Go

GitHub license Go Reference build Go Report Card

CESS Network SDK for Go allows you to access the CESS blockchain network, such as querying block data, transactions, and calling RPC methods. You don't need to deal with API related tasks such as signing and building requests to access the CESS blockchain network. It also allows you to access the storage network, such as uploading or downloading data directly from storage nodes, as well as implementations of file chunking, encryption, and redundancy.

Bulletin

  • Test Network RPC Endpoint
wss://testnet-rpc.cess.network/ws/
  • Test Network Faucet
https://www.cess.network/faucet.html

Requirements

Install a Go environment newer than 1.22.x.

Installation

Use go get to install SDK:

go get -u "github.com/CESSProject/cess-go-sdk"

Quick Use

Quickly create your SDK client:

cli, err := sdkgo.New(
    context.Background(),
    sdkgo.ConnectRpcAddrs("wss://testnet-rpc.cess.network/ws/"),
)

Testing

To run test:

make check

Documentation

Issues

If you find any system errors or you have better suggestions, please submit an issue or PR, or join the CESS discord to communicate with us.

License

Licensed under Apache 2.0