@receipts:tx.block
Block number a transaction was mined in.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@receipts:tx.block(hash chain?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
hash | bytes32 | Transaction hash |
[chain] | chain | Chain to look on (default: current chain) |
Examples
Section titled “Examples”# Read the block a transaction was mined inset $block @receipts:tx.block(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)See Also
Section titled “See Also”- @receipts:tx.timestamp — timestamp a transaction was mined at
- @receipts:tx — full transaction summary