Storage
Storage, or contract storage, is the permanent data area each smart contract keeps on a blockchain such as Ethereum. It holds values like token balances, owners and settings, and it persists between transactions.
On Ethereum and other EVM-compatible chains, each contract has its own storage, organised as a key-value map of 32-byte slots. Every full node keeps a copy as part of the network's shared state. Contracts read storage with the SLOAD opcode and write to it with SSTORE. This is different from memory, which is temporary and cleared once a transaction finishes.
Storage matters to users because writing to it is one of the most gas-expensive things a contract can do. Every node must keep that data indefinitely. Transactions that change many stored values, such as minting or updating records, therefore cost more in fees. Developers often use event logs or off-chain storage for data that contracts do not need to read later.
A familiar example is an ERC-20 token. Your balance is not held inside your wallet. It is a number in the token contract's storage, mapped to your address. A transfer lowers the sender's entry and raises the recipient's. Your wallet simply reads those values and displays them.
A common misconception is that variables marked "private" in Solidity are secret. They only stop other contracts from accessing them directly. Anyone can read any storage slot through a node or block explorer, so passwords or sensitive data should never be stored in a contract.