Skip to main content
Once you have your messages and fee, 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:
The returned 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:
Use this when you want to submit a transaction and check the result later (e.g. via 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:
The 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.