Skip to main content

Try it Live

Run Address examples in the interactive playground
This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
View the complete executable example at playground/src/examples/primitives/address/zero.ts.

PrimitivesAddress Zero Constant

In C API, use the zero-initialized struct pattern to create zero address.Type: PrimitivesAddressExample:
Verification:
Defined in: primitives.h:65

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 transaction to field:

Special Properties

Uniqueness: Only one valid representation exists. Singleton: Multiple calls to zero() return equivalent addresses:
Memory: Each call allocates a new Uint8Array. For repeated use, store the reference:

Equivalent Constructions

All of these produce the zero address:
Recommendation: Use Address.zero() for clarity and intent.

Checking for Zero

Use isZero() method to check if an address is zero:

Ethereum Context

Transaction to field: Zero address in transaction to 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:
Not a valid EOA: Zero address cannot sign transactions (no private key exists).

See Also