Try it Live
Run Address examples in the interactive playground
- C
PrimitivesAddress Zero Constant
In C API, use the zero-initialized struct pattern to create zero address.Type: PrimitivesAddressExample:Common Use Cases
Default Values
Use as a default or placeholder address:Burn Address
The zero address is commonly used as a burn address (destroying tokens):Validation
Check if address is unset or invalid:Contract Creation
Zero address indicates contract creation in transactionto field:
Special Properties
Uniqueness: Only one valid representation exists. Singleton: Multiple calls tozero() return equivalent addresses:
Equivalent Constructions
All of these produce the zero address:Address.zero() for clarity and intent.
Checking for Zero
UseisZero() method to check if an address is zero:
Ethereum Context
Transaction to field: Zero address in transactionto field indicates contract creation.
Event logs: Zero address in log topics often represents minting (from) or burning (to).
Token standards: ERC-20/ERC-721 use zero address to represent minting/burning:
See Also
- from - Universal constructor
- isZero - Check if address is zero
- equals - Compare addresses
- ERC-20 Token Standard - Uses zero address for minting/burning

