Skip to main content
The mint account itself requires rent (like regular SPL mints), but individual compressed token accounts are rent-free.
Compressed tokens use an SPL mint with token pool for compression. The token pool locks SPL tokens while compressed and releases them when decompressed. Create a token pool for an existing SPL mint with createTokenPool() or use createMint() to create a new one from scratch.
Best Practice: Each mint supports a maximum of 4 token pools total. During compression/decompression, token pools get write-locked. Use addTokenPools() to create additional pools that increase per-block write-lock capacity.

Full Code Example

1

Prerequisites

Make sure you have dependencies and developer environment set up!
Dependencies
Developer Environment
By default, all guides use Localnet.
2

Create SPL Mint with Token Pool for Compression

Run this script to create a mint account with token pool for compression.
create-mint.ts

Advanced Configuration

Customize who can mint new compressed tokens.
Customize who can freeze/thaw compressed token accounts.

Next Steps

Learn how to create additional compressed token pools for your SPL mint to increase write-lock limits.