Technical Definition

Calldata

Calldata is read-only input data supplied to an Ethereum contract call and recorded as part of the transaction.

By Crypto University Editorial
Smart ContractTransactionGas

✦ Key Insight

It helps users inspect what a transaction is asking a contract to do and explains part of Ethereum transaction data costs.

✕ Common Misconceptions

Raw calldata can be misleading without the correct ABI, and decoding does not prove safety.

Detailed Explanation

Function selectors and encoded parameters are placed in calldata when users call smart contracts.

In Practice

“A swap transaction's calldata identifies the router function, token path, amount, and other parameters.”

Dig Deeper