Contract Address
1 min read
Pronunciation
[kon-trakt ad-dress]
Analogy
A contract address is like a PO Box number—it’s where messages (transactions) are sent to interact with that contract.
Definition
The unique 20‑byte identifier at which a smart contract’s bytecode and storage reside on the blockchain.
Key Points Intro
Contract addresses are generated via:
Key Points
CREATE: `address = keccak256(rlp(sender, nonce))[12:]`.
CREATE2: `address = keccak256(0xff ++ sender ++ salt ++ keccak256(init_code))[12:]`.
Deterministic: Predictable before deployment with correct inputs.
Unique: No two contracts share the same address.
Example
Technical Deep Dive
Security Warning
Front‑running deployment with CREATE2 salts can hijack intended addresses; keep salts secret until deployment.
Caveat
EOA vs contract addresses share same format; ensure you check code size to distinguish.
Contract Address - Related Articles
No related articles for this term.