Commit Graph
1 Commits
Author SHA1 Message Date
r4bbit 78e6058a1a docs(token): add token program usage runbook"
A spel-oriented guide for the token program, in the same style as the testnet
runbook but scoped to token operations only: create fungible definitions, hand
out holdings, transfer, mint, burn, rotate/renounce the mint authority, and
print NFTs.

Verified against main (4363f13) on the LEZ v0.2.0 pin: the regenerated IDL
matches artifacts/token-idl.json, all 63 token_program tests pass, and every
quoted abort message exists in programs/token/src.

Documents three constraints that are easy to hit and hard to infer:
- transfer's recipient and mint's holding are not signers, so a fresh account
  cannot be claimed by them — initialize-account first.
- spel has no optional args or optional accounts: Option<account_id> flags are
  always required (pass 'none'), and authority ops are split into self vs
  *-with-authority variants.
- new-definition-with-metadata is unusable from the CLI in spel v0.5.0 and
  v0.6.0 — its serializer has no encoding for IDL 'defined' types.
2026-08-10 23:08:42 +02:00