Broadcast a pre-signed transaction.
Sends a signed transaction to the blockchain. This is a low-level method; prefer using signAndBroadcast for most use cases.
Signed transaction bytes
Optionalmode: "sync" | "async" | "block"Broadcast mode ("sync", "async", or "block")
Broadcast result with transaction hash and optional height
OptionalgetQuery a transaction by hash.
Retrieves the full transaction details including events from the blockchain. This is useful for extracting information from transaction events after broadcasting.
Transaction hash (hex string)
Transaction response with full details including events
OptionalsignSign and broadcast a transaction in one step.
This is the recommended method for sending transactions. Handles the entire transaction lifecycle: signing with the wallet and broadcasting to the chain.
Address of the transaction signer
Array of Cosmos messages to include in the transaction
Transaction fee (gas amount and denomination)
Optionalmemo: stringOptional transaction memo
OptionaltimeoutHeight: bigintOptional transaction timeout height
Broadcast result with full delivery response
Simulate a transaction to estimate gas usage.
Performs a dry-run of the transaction without broadcasting it, returning the estimated gas amount needed for execution.
Returns null if simulation is unavailable (e.g., when gRPC reflection
service is not available). In this case, callers should use a fallback
gas estimate or rely on alternative broadcasting methods.
Signer's address
Transaction messages to simulate
Optionalmemo: stringOptional transaction memo
Estimated gas amount, or null if simulation is unavailable
Transaction client interface.
Provides methods for transaction simulation, broadcasting, and signing. Implementations handle the underlying transport (e.g., Tendermint RPC via CosmJS).