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 receiptsHelpers
Section titled “Helpers”| Helper | Returns | Description |
|---|---|---|
| @receipts:block.baseFee | number | Base fee in wei of a sealed block, addressed by number or tag (default: latest). |
| @receipts:block.blobBaseFee | number | Blob 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.coinbase | address | Fee recipient address of a sealed block, addressed by number or tag (default: latest). |
| @receipts:block.gasLimit | number | Gas limit of a sealed block, addressed by number or tag (default: latest). |
| @receipts:block.hash | bytes32 | Hash of a sealed block, addressed by number or tag (default: latest). |
| @receipts:block.number | number | Number of a sealed block, addressed by number or tag (default: latest, so tags like finalized resolve to their current number). |
| @receipts:block.prevrandao | number | RANDAO 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.timestamp | number | Timestamp of a sealed block, addressed by number or tag (default: latest). |
| @receipts:chainId | number | The chain id of the chain the script runs against. |
| @receipts:tx ⚗️ | string | Human-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! | bytes32 | Versioned hash of a blob carried by the executing transaction, or 0 when the index is out of range. |
| @receipts:tx.block ⚗️ | number | Block number a transaction was mined in. |
| @receipts:tx.calldata ⚗️ | bytes | Full 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 ⚗️ | number | Total fee paid for a transaction, in wei (gasUsed x effectiveGasPrice, plus the L1 data fee on OP-stack chains). |
| @receipts:tx.from | address | Sender of a transaction, addressed by hash. |
| @receipts:tx.gasPrice! | number | Gas price of the executing transaction, in wei. |
| @receipts:tx.gasUsed ⚗️ | number | Gas used by a transaction (units of gas, not wei). |
| @receipts:tx.status ⚗️ | bool | Whether a transaction succeeded: true on success, false when it reverted. Errors while the transaction is still pending. |
| @receipts:tx.timestamp ⚗️ | number | Unix timestamp (seconds) of the block a transaction was mined in. Compare against @date values. |
| @receipts:tx.to ⚗️ | address | Recipient address of a transaction. Errors for contract-creation transactions (the created contract has no to). |
| @receipts:tx.value ⚗️ | number | Native value sent with a transaction, in wei. |
| @receipts:txs ⚗️ | array | Most 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. |