Skip to content

receipts

Transaction and block data: sealed receipts and blocks addressed by hash or number, and the transaction and block currently being written.

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

load receipts
HelperReturnsDescription
@receipts:block.baseFeenumberBase fee in wei of a sealed block, addressed by number or tag (default: latest).
@receipts:block.blobBaseFeenumberBlob base fee in wei: the live value with no arguments, or the EIP-4844 value of a sealed block computed from its excess blob gas (blocks predating EIP-4844 error).
@receipts:block.coinbaseaddressFee recipient address of a sealed block, addressed by number or tag (default: latest).
@receipts:block.gasLimitnumberGas limit of a sealed block, addressed by number or tag (default: latest).
@receipts:block.hashbytes32Hash of a sealed block, addressed by number or tag (default: latest).
@receipts:block.numbernumberNumber of a sealed block, addressed by number or tag (default: latest, so tags like finalized resolve to their current number).
@receipts:block.prevrandaonumberRANDAO mix of a sealed block, as a number, addressed by number or tag (default: latest; pre-merge blocks carry proof-of-work difficulty semantics).
@receipts:block.timestampnumberTimestamp of a sealed block, addressed by number or tag (default: latest).
@receipts:chainIdnumberThe chain id of the chain the script runs against.
@receipts:tx ⚗️stringHuman-readable summary of a transaction: status, labeled from/to, value, decoded function call, gas, fee and decoded logs. Use the @receipts:tx.* field helpers for machine-readable values.
@receipts:tx.blobHash!bytes32Versioned hash of a blob carried by the executing transaction, or 0 when the index is out of range.
@receipts:tx.block ⚗️numberBlock number a transaction was mined in.
@receipts:tx.calldata ⚗️bytesFull input data of a transaction, including the 4-byte selector. Replay it with exec <target> <calldata> or decode it with @abi.decodeCall.
@receipts:tx.fee ⚗️numberTotal fee paid for a transaction, in wei (gasUsed x effectiveGasPrice, plus the L1 data fee on OP-stack chains).
@receipts:tx.fromaddressSender of a transaction, addressed by hash.
@receipts:tx.gasPrice!numberGas price of the executing transaction, in wei.
@receipts:tx.gasUsed ⚗️numberGas used by a transaction (units of gas, not wei).
@receipts:tx.status ⚗️boolWhether a transaction succeeded: true on success, false when it reverted. Errors while the transaction is still pending.
@receipts:tx.timestamp ⚗️numberUnix timestamp (seconds) of the block a transaction was mined in. Compare against @date values.
@receipts:tx.to ⚗️addressRecipient address of a transaction. Errors for contract-creation transactions (the created contract has no to).
@receipts:tx.value ⚗️numberNative value sent with a transaction, in wei.
@receipts:txs ⚗️arrayMost recent transaction hashes sent to or from an address, newest first. Inspect individual entries with @receipts:tx. Needs an explorer API (Etherscan key or a chain with a Blockscout instance): plain RPC cannot list per-address history.