Token Factory
Creates Token-2022 mints with compliance extensions — MetadataPointer, TransferHook, PermanentDelegate
Overview
The Token Factory program creates new Token-2022 mints pre-configured with compliance extensions. It handles the multi-instruction setup automatically and records token metadata in a TokenRecord PDA.
Program ID: VXQL8u4NVUYG1zaejujwh5gr21iinmk4yYCXn1g9TXr
Extensions
Each mint created by the Token Factory includes:
| Extension | Purpose |
|---|---|
| MetadataPointer | On-chain token name, symbol, and URI |
| TransferHook | Points to a hook program (or Router) for compliance checks |
| PermanentDelegate | Allows the tax hook to collect fees post-transfer |
Instructions
create_token
Creates a new Token-2022 mint with all extensions configured.
mint_supply
Mints additional supply to a destination token account. Only callable by the mint authority (issuer).
pause_token / resume_token
Global pause/resume for all transfers of a specific token. Only callable by the issuer.
freeze_account / thaw_account
Freeze or unfreeze individual token accounts. Uses the freeze authority PDA.
Accounts
TokenRecord PDA
Seeds: ["token-record", mint]
Stores metadata about each token created through the factory:
- Issuer (authority)
- Mint address
- Hook program ID
- Pause state