- Build messages — describe what the transaction should do
- Determine fees — calculate how much gas to pay
- Sign — produce a cryptographic signature over the transaction bytes
- Broadcast — send the signed transaction to a node
- Confirm — wait for the transaction to be included in a block
SigningStargateClient. You provide the
messages and fee; the client handles serialization, signing, and broadcasting.
signAndBroadcast
The most common method. Signs the transaction, broadcasts it, and waits for inclusion in a block:signAndBroadcastSync
Signs and broadcasts but returns immediately with just the transaction hash, without waiting for block inclusion. Useful when you don’t need to wait:sign
Signs without broadcasting. Returns aTxRaw protobuf object — call
TxRaw.encode(txRaw).finish() to serialize it into bytes that you can
broadcast later or inspect:
Convenience Methods
SigningStargateClient provides high-level methods for the most common
transactions. These construct the message internally and call
signAndBroadcast:
Next Steps
Building Messages
Construct messages for your transactions.
Error Handling
Handle transaction failures and retries.