Box Assets
Understanding assets, tokens, and data structures in Ergo boxes
Box Assets Overview
Ergo boxes can carry ERG and native tokens at the same time. Tokens are first-class ledger objects: they move in transaction outputs just like ERG, and smart contracts can inspect their token IDs and amounts during validation.
Native tokens
A token is identified by the ID of the first input box in the minting transaction. That deterministic rule lets wallets and contracts verify token identity without a separate registry.
Box limits
A box can contain multiple assets, but transaction builders should keep outputs compact and avoid unnecessary token dust because every box must remain economical to store.
NFT metadata
NFTs are usually represented as native tokens with supply one, plus metadata in registers or ecosystem standards that wallets and marketplaces understand.
Contract checks
ErgoScript can require exact token IDs, minimum amounts, or preservation rules across outputs, which makes token-aware protocols possible without custom chain logic.