package main
import (
"context"
"fmt"
cess "github.com/CESSProject/cess-go-sdk"
)
var RPC_ADDRS = []string{
"wss://testnet-rpc0.cess.cloud/ws/",
"wss://testnet-rpc1.cess.cloud/ws/",
"wss://testnet-rpc2.cess.cloud/ws/",
}
func main() {
sdk, err := cess.New(
context.Background(),
// Set sdk name
cess.Name("my-sdk"),
cess.ConnectRpcAddrs(RPC_ADDRS),
)
if err != nil {
panic(err)
}
// Query sdk name
fmt.Println(sdk.GetSDKName())
}