Usage
To use the SDK in your Golang project, you must first import it:
Creating Client
Broadcast Mode
sync
: Wait for the transaction to pass/fail the CheckTx
async
: Do not wait for the transaction to pass/fail the CheckTx. Instead, send and return the transaction immediately.
block
: Wait for the transaction to pass/fail the CheckTx, DeliverTx, and be committed to a block. (Note: this is not recommended.)
Construct Message
Broadcast Transaction
Query
go.mod
You would need to put the line below at the bottom of your go.mod
Last updated