createTokenPool() requires only fee_payer and has no mint authority constraint.
The interface PDA itself requires rent, but individual compressed token accounts are rent-free.
Best Practice: Each mint supports a maximum of 4 interface PDAs total. During compression/decompression operations, interface PDAs get write-locked. Use
addTokenPools() to create additional PDAs that increase per-block write-lock capacity.Get Started
1
Create Interface PDA
Installation
Installation
- npm
- yarn
- pnpm
- SDK 2.0 (token-interface)
Install packages in your working directory:Install the CLI globally:
- Localnet
- Devnet
In the code examples, use
createRpc() without arguments for localnet.Troubleshooting
TokenPool not found
TokenPool not found
You’re trying to access an interface PDA that doesn’t exist.
Advanced Configuration
Batch Pool Creation
Batch Pool Creation
Create pools for multiple mints:
Create Pool with Token-2022
Create Pool with Token-2022
Create interface PDAs for Token-2022 mints: