Token-2022
Token-2022 in the Carbium Library: 7 working Solana examples, among them Metadata update authority check and Confidential transfer state reader.
- Metadata update authority check HS0090
Check whether a Token-2022 mint's metadata can still change: read its pointer authority and update authority in one read-only TypeScript file.
- Confidential transfer state reader HS0089
Read a Token-2022 mint's confidential transfer settings and its token accounts' extension state with getAccountInfo and getMultipleAccounts on Carbium.
- Token-2022 mint close check HS0052
Read Token-2022 mints and get a verdict for each: never closable, closable once supply reaches zero, or closable now, with the close authority.
- Token group membership check HS0050
Prove a Token-2022 mint belongs to a token group by reading its member extension and the group's own record with read-only calls on Carbium RPC.
- Token program detection HS0025
Tell a legacy SPL token from a Token-2022 token with one account read, list the extensions that change a transfer, and derive the right token account.
- Transfer fee calculator HS0024
Compute the Token-2022 transfer fee for any amount from the mint's transferFeeConfig, picking the older or newer rate by epoch, with read-only TypeScript.
- Token-2022 metadata lookup HS0013
Find where a Token-2022 mint keeps its metadata, with or without a Metadata Pointer, using read-only TypeScript calls on Carbium RPC.