Initialization
Before using SDK, it is necessary to create an SDK object that includes some configuration items in the following table. Please fill in according to the actual situation:
configuration | Description | Method |
---|---|---|
RPC address | CESS chain rpc address | sdkgo.ConnectRpcAddrs |
Mnemonic | CESS wallet mnemonic phrase, if empty, no transaction can be made. | sdkgo.Mnemonic |
Transaction timeout | Timed out waiting for transaction completion, default is 30 seconds | sdkgo.TransactionTimeout |
SDK name | It's just a name, default is | sdkgo.Name |
Create a query-only sdk client
Create a fully functional sdk client
Last updated