Calldata
Last Updated: November 16, 2026
Calldata refers to a special area of memory in the Ethereum Virtual Machine (EVM) where input data for smart contract function calls is stored. It’s read-only and is mainly used to pass arguments from an external call to a smart contract. Reading calldata is cheaper than copying it into memory or saving it to storage, and it is not part of the contract’s lasting state.
How Calldata Works in Smart Contracts
When a user or another contract calls a smart contract function, the inputs, such as numbers, addresses, or strings, are encoded and included in the transaction’s calldata. Solidity, the most widely used smart contract language, allows developers to specify function arguments with the calldata keyword to minimize gas costs. This is particularly useful for functions that don’t need to modify input data.
A standard token transfer shows the format. In Ethereum block 26,429,707, mined at 19:33 UTC on November 16, 2026, one ERC-20 transfer carried 68 bytes of calldata. The first 4 bytes, 0xa9059cbb, are the function selector, the start of the Keccak-256 hash of transfer(address,uint256). Two 32-byte words follow, one holding the recipient address and one the amount.
Calldata is priced by the byte. Since the 2019 Istanbul upgrade, EIP-2028 has set 16 gas for each nonzero byte, down from 68, while a zero byte costs 4. That transfer had 27 nonzero and 41 zero bytes, so its calldata cost 596 gas, a small part of what a token transfer uses in total.
Why Developers Use Calldata
Using calldata helps optimize gas fees, especially in contracts that handle large arrays or repeated function calls. Since calldata is immutable, it also adds a layer of security by preventing unintended changes to the input data during execution.
Calldata, Rollups and Blobs
Layer 2 rollups once posted their transaction data to Ethereum as calldata, which made it a large part of their costs. The Dencun upgrade of March 13, 2024 added blobs under EIP-4844. A blob holds 128 KiB of data that the EVM cannot read. It has its own fee market, and nodes can delete it after about 18 days.
The Pectra upgrade of May 7, 2025 then made data-heavy calldata pricier through EIP-7623. Transactions that mostly post data and do little computing now pay a floor of 10 gas per zero byte and 40 per nonzero byte, up from 4 and 16. Ordinary transfers and DeFi trades keep the old prices, according to the EIP.
The goal, as the EIP explains, was to shrink the largest possible block, which was far bigger than typical blocks, and to steer data toward blobs.
Calldata vs Blobs on November 16, 2026
Live data shows the gap. At 19:33 UTC on November 16, 2026, Ethereum’s base fee was about 0.134 gwei and the blob base fee about 0.0076 gwei, with ETH at $1,816.31 on CoinMarketCap. Posting 128 KiB of nonzero data as calldata would cost about 5.26 million gas under the new floor, roughly $1.28 before tips.
The same data in a single blob would cost about $0.002 in blob fees, plus about $0.005 for the transaction that carries it. Under the pricing before Pectra, the calldata route would have cost about $0.51.
Blob space was far from full that evening. Across the 50 blocks from 26,429,658 to 26,429,707, mined between 19:23 and 19:33 UTC, blocks carried about 6 blobs on average. Upgrades after Fusaka set a target of 14 and a maximum of 21 per block. Eight of those 50 blocks carried no blobs at all.
Where to Check Calldata
Block explorers such as Etherscan show each transaction’s input data. When the contract’s code is verified, they decode it into the function name and arguments. Blob data appears separately on blob explorers such as Blobscan. Developers can also read the raw input of any transaction through an RPC call to a node.
Limits and Risks
Calldata is public. Anything sent in a transaction’s input, from function arguments to text messages, is visible to everyone and stays in the chain’s history. Decoded views depend on verified code and published function names. One 4-byte selector can match several different function names, so calldata sent to unverified contracts can be misread.
Frequently Asked Questions
What is the difference between calldata, memory and storage?
All three are places where the EVM keeps data. Calldata holds the read-only input of a call and comes from the transaction. Memory is temporary working space that is cleared after each call. Storage is the contract’s lasting state on the blockchain and is the most expensive to write. Solidity lets developers mark parameters as calldata to avoid copying them.
Why did Ethereum make calldata more expensive?
EIP-7623, part of the Pectra upgrade of May 7, 2025, raised the minimum price only for transactions that mainly post data. The aim was to shrink the largest possible block, which was far above typical block sizes, and to steer layer 2 data toward blobs. Regular transfers, swaps and other everyday activity kept the old pricing of 4 and 16 gas per byte.
Is calldata stored on the blockchain?
Yes, as part of the transaction. Calldata is recorded in block history, which nodes, explorers and archives keep, so anyone can read it later. It is not part of a contract’s state, which is one reason it costs less than storage. Blobs work differently: nodes only need to keep blob data for about 18 days, while a commitment to it stays on chain.
Data sources: EIP-2028, EIP-4844 and EIP-7623 on eips.ethereum.org, ethereum.org network upgrade history, a public Ethereum endpoint run by PublicNode (blocks 26,429,658 to 26,429,708, read November 16, 2026, 19:33 UTC) and CoinMarketCap (ETH price, 19:33 UTC).