Skip to main content

Transaction Lifecycle

This page covers the full round-trip of a transaction: building and sending it, waiting for the receipt, and reading the event logs it emitted.

Try it live

Before you send anything, read the live chain state your transaction will interact with — straight from your browser against Sei mainnet, no install or key required.

Sending a Transaction

Waiting for the Receipt

Sei has instant finality — 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 the transaction emitted:

Checking for Revert

A receipt with status: 'reverted' (viem) or status: 0 (ethers) means the transaction was included but the execution failed. The gas was still consumed.
viem

Fetching a Past Transaction

viem
ethers

Getting Logs for a Specific Transaction

To fetch only the events emitted by a specific transaction (rather than decoding from the receipt):
viem