Calldata
Calldata is read-only input data supplied to an Ethereum contract call and recorded as part of the transaction.
✦ 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
In Practice
Dig Deeper
Smart Contract
A smart contract is blockchain-deployed code that can hold state and execute predefined rules when called.
Gas
Gas is a unit or mechanism used on some smart-contract networks to measure and price the computational work required for transactions.
On-Chain Data
On-chain data is information recorded directly on a blockchain, such as transactions, balances, contract events, and block information.
Transaction
A blockchain transaction is a signed or authorized instruction that changes blockchain state or transfers value when accepted by the network.
Contract Verification
Contract verification demonstrates that published smart-contract source code compiles to bytecode corresponding to the code deployed at a blockchain address.
