SigningStargateClient handles signing and broadcasting. There are three approaches depending on how much control you need.
signAndBroadcast — The Standard Flow
Signs the transaction, broadcasts it, and polls until it is included in a block:
DeliverTxResponse contains everything about the executed transaction:
signAndBroadcastSync — Fire and Forget
Signs and broadcasts but returns immediately with the transaction hash, without waiting for block inclusion:
client.getTx(txHash)).
Separate Sign and Broadcast
For advanced workflows (offline signing, multi-sig, or inspecting the signed bytes before broadcasting), separate the two steps:sign method accepts an optional explicitSignerData parameter for offline signing, where account number, sequence, and chain ID must be provided manually:
Next Steps
Waiting for Confirmation
Configure polling timeouts and handle transactions that take too long.
Advanced Patterns
Offline signing, IBC transfers, and inspecting signed transactions.
Wallets
Create wallets from mnemonics, or integrate browser extensions like Keplr.