Lookup by Hash
Search by Events
AND.
Structured Query Syntax
searchTx accepts either a raw query string or a structured SearchPair[]. Structured queries are safer — string values are automatically quoted and numeric values are left unquoted (required by Tendermint):
Decoding Raw Transaction Bytes
IndexedTx.tx contains the raw transaction bytes. Use decodeTxRaw to inspect the messages, memo, fee, and signer info:
Working with IndexedTx Fields
TheIndexedTx response provides several useful fields beyond the raw bytes:
rawLog is deprecated and empty on Cosmos SDK 0.50+. Use events instead.Parsing Transaction Events
Transaction results include events emitted by Cosmos SDK modules. You can extract specific attributes from these events.From DeliverTxResponse
After broadcasting with aSigningStargateClient, use events directly from the response:
From IndexedTx
Events from searched transactions follow the same structure:Extracting Contract Addresses (CosmWasm)
After uploading or instantiating a CosmWasm contract, the contract address is in the events. Use the same filtering pattern to extract it (broadcast throughSigningCosmWasmClient):
Using parseRawLog (Legacy)
For chains running Cosmos SDK < 0.50, you can parse therawLog field through the logs namespace:
Using the Tx Extension
The tx extension provides a lower-levelgetTx and a simulate method for gas estimation:
Gas Simulation
Signing clients can simulate a transaction against the chain to estimate gas usage before broadcasting. Nothing is committed on-chain.Next Steps
Error Handling
Handle broadcast errors and timeouts.
Blocks & Chain Info
Block data and chain status.