Accounts
A Token Standard account consists of an optional owner, an optional provider, and an account ID. Holdings in the Registry App are always held in registry accounts. A registry account is an account that:- has an owner party,
- has no account provider, i.e., the
providerfield of the Token Standard account isNone, - has an account ID (label) that does not start with the
cip-<...>/prefix, which is reserved by the Token Standard.
The notion of an account provider is unrelated to the provider role used in the Registry.
"", and no provider. Workflows use it whenever no sender or receiver label is
specified.
The accounts that holders use in mints, burns, and transfers must be registry accounts. In addition,
allocation flows support the Token Standard’s special mint and burn accounts, which have no owner
and a reserved account ID, cip-112/mint or cip-112/burn. They represent the source of minted
holdings and the target of burned holdings, and also appear in the transaction history.
Labels
A holding’s label is its account ID. It corresponds to theid of the account in the Token Standard
V2 holding view, and is also encoded in the meta of the V1 holding view. Labels let a party keep
holdings of the same instrument in separate accounts, and identify holdings across workflows:
- Mint: the receiver label sets the account ID of the newly minted holding.
- Burn: the sender label identifies the account to burn from.
- Transfer: the sender label identifies the account to send from, and the receiver label sets the account ID of the received holding.
- Direct pre-approvals: the receiver label must be empty (
"") for the pre-approval to take effect.
Input Holdings and Fade-in
When a sender account is specified for a burn, transfer, or allocation, the input holdings can still come from any of the sender’s accounts, that is, with any account ID. Effectively, they are first transferred internally to the sender account (fade-in), followed by the actual operation, leaving any remainder on the sender account. Transaction history V2 logs both steps. This removes the need for wallets to filter holdings to match the sender account, although the dApp UI still applies this filtering. For example, Alice transfers 100 units to Bob with the sender labellabel-a and the receiver
label label-b. She provides two input holdings: 60 units in label-a, and 50 units in label-1.
The 50 units are first faded in to label-a, then 100 units are transferred to Bob. The change of
10 units is left on Alice’s sender account label-a:
Each application is responsible for filtering which input holdings to provide. Through the API, any
of the holder’s holdings can be used. The dApp UI only selects input holdings that match the
specified sender label.