Skip to content

@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

@receipts:tx.calldata(hash chain?)
NameTypeDescription
hashbytes32Transaction hash
[chain]chainChain to look on (default: current chain)
# Read the calldata of a transaction
set $data @receipts:tx.calldata(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)

Replay a past call by passing the calldata straight to exec, or decode it with @abi.decodeCall.