@receipts:tx.calldata
Full input data of a transaction, including the 4-byte selector. Replay it with exec <target> <calldata> or decode it with @abi.decodeCall.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: bytes
Syntax
Section titled “Syntax”@receipts:tx.calldata(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 calldata of a transactionset $data @receipts:tx.calldata(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)Replay a past call by passing the calldata straight to exec, or decode it with @abi.decodeCall.
See Also
Section titled “See Also”- @receipts:tx — full transaction summary
- @abi.decodeCall — decode calldata into signature and args