ChainIO Module
Creating a context
import "context"
ctx := context.Background()ChainIO
import "github.com/satlayer/satlayer-api/signer"
client, err := signer.NewCosmosClient(
"sat-bbn-testnet1", // Chain-id. For SatLayer testnet it's sat-bbn-testnet1
"https://rpc.satlayer.net", // URL to an RPC node
".", // Directory that stores the key. Only used if the keyring needs it
"your-key-name-here", // name of the key
"test", // Keyring backend. Valid values includes test, os, kwallet or file
"bbn" // Address prefix of the network
)Querying contract state
Executing contract
Querying node status
Query a historical transaction
Listening for events
Contract API wrappers
Logger
Last updated