Skip to main content

How extensions work with Light Token

  1. Create a Token-2022 mint with one or more extensions
  2. Register an interface PDA to hold balances from that mint in Light Token accounts
  3. Use the same Light Token APIs (transferInterface, wrap, unwrap) as any other token
Each extension adds specific state that’s generally initialized during mint or token account creation. When initializing either account, you can enable specific extensions simultaneously for different functionality. Most extensions can’t be added after an account is initialized.

Supported extensions

ExtensionRestrictionDescription
MetadataPointer-Points a mint to the account that stores its metadata.
TokenMetadata-Stores token name, symbol, and URI directly on the mint.
TransferFeeConfigFees must be zeroWithholds a percentage of each transfer as a fee.
TransferHookprogram_id must be nilInvokes a custom program on every transfer via CPI.
InterestBearingConfig-Displays a UI-adjusted balance that accrues interest over time.
DefaultAccountStateNo compressed transferSets the initial state (e.g., frozen) for newly created token accounts.
PermanentDelegateNo compressed transferGrants an authority unrestricted transfer and burn rights over all accounts for the mint.
MintCloseAuthorityNo compressed transferAllows a designated authority to close a mint account.
GroupPointer-Points a mint to the account that stores group configuration.
GroupMemberPointer-Points a mint to the account that stores group member configuration.
TokenGroup-Stores group configuration directly on the mint (e.g., NFT collections).
TokenGroupMember-Stores group member configuration directly on the mint.
PausableNo compressed transferAllows an authority to pause all minting, burning, and transfers.
ConfidentialTransferMintInitialized but not enabledConfigures auditor keys for confidential (encrypted) transfers.
ConfidentialTransferFeeConfigFees must be zeroEncrypts withheld transfer fees under an auditor’s public key.
ConfidentialMintBurnInitialized but not enabledAllows minting and burning of tokens with encrypted amounts.

Not supported

The following Token-2022 extensions are not supported by Light Token: Scaled UI Amount, Non-Transferable Tokens, Memo Transfer, Immutable Owner, CPI Guard.

Didn’t find what you were looking for?

Reach out! Telegram | email | Discord