Token Extensions (Token-2022)
Advanced token features with the Token-2022 program.
Token-2022 is the next-generation SPL Token program that adds advanced features through a modular extension system. Extensions are configured at mint creation time and cannot be changed afterward.
Transfer Fees
The transfer fee extension allows collecting a fee on every token transfer, paid to a designated fee account. This enables protocol revenue models where every trade generates fees for the protocol treasury.
Interest-Bearing Tokens
The interest-bearing extension automatically accrues interest on token balances over time. The interest rate is set at creation and can be updated by the rate authority. Useful for yield-bearing stablecoins and savings products.
Confidential Transfers
The confidential transfer extension uses zero-knowledge proofs to hide transfer amounts while maintaining on-chain verifiability. This enables privacy-preserving token transfers for sensitive financial applications.
Permanent Delegate
The permanent delegate extension grants a designated account the ability to transfer or burn tokens from any holder's account. This is used for compliance-related applications where token issuers need recovery capabilities.
Transfer Hook
The transfer hook extension calls a custom program on every token transfer, enabling complex transfer logic: royalty enforcement, compliance checks, and custom accounting. This is how Metaplex implements programmable NFT royalties.
Non-Transferable Tokens
The non-transferable extension creates tokens that can never be transferred — only minted and burned. Useful for soulbound tokens, credentials, and achievement badges.