Transaction lifecycle
This page covers the full round trip of a transaction: building and sending it, waiting for the receipt, and reading its event logs.Try it live
Before you send anything, read the live chain state that your transaction will interact with. These calls run from your browser against Sei Mainnet. You do not need to install anything or use a key.Sending a transaction
Waiting for the receipt
Sei has instant finality, so the receipt is final as soon as it arrives. One confirmation is sufficient. See Finality.
Decoding event logs from a receipt
After a contract interaction, decode the events that the transaction emitted:Checking for revert
A receipt withstatus: 'reverted' (viem) or status: 0 (ethers) means that the transaction was included but the execution failed. The transaction still consumed gas.
viem
Fetching a past transaction
viem
ethers
Getting logs for a specific transaction
To fetch only the events that a specific transaction emitted, instead of decoding them from the receipt, use this pattern:viem