A token is a set of balances and rules stored in a smart contract. This page shows how that state is organized, how standards define it, and how each step of a transaction updates the ledger.
Fungible standards map each address to a numeric balance. Transfers subtract from one entry and add to another, so the total supply stays consistent.
Allowance delegation
An allowance lets a spender move a capped amount on the owner's behalf. The contract records this approval as a separate state variable, not as a change to the balance.
Metadata structures
Non-fungible standards assign each unique identifier to a metadata record. The identifier, not the balance, defines which item an entry refers to.
Step by step
From function call to state update
A transfer begins as a function call. The contract checks the caller, validates the amount, and then writes new values to its storage. Each write is recorded as an event log.