GlossaryAdvanced
Calldata
The data sent along with a transaction that a smart contract reads as input.
Calldata is the portion of a transaction that carries input data for a smart contract to read and act on, such as which function to call and what parameters to use.
The amount and complexity of calldata directly affects a transaction's gas cost, since processing it requires computational work.
Examples
- A token transfer's calldata specifies the recipient address and the amount to send.
- Larger calldata generally means a higher gas cost for the transaction.