Skip to content

@receipts:tx.status

Whether a transaction succeeded: true on success, false when it reverted. Errors while the transaction is still pending.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: bool

@receipts:tx.status(hash chain?)
NameTypeDescription
hashbytes32Transaction hash
[chain]chainChain to look on (default: current chain)
# Check that a transaction succeeded
set $ok @receipts:tx.status(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)