Get Started
Mint Compressed Tokens
Installation
Installation
- npm
- yarn
- pnpm
Install packages in your working directory:Install the CLI globally:
- Localnet
- Devnet
In the code examples, use
createRpc() without arguments for localnet.- Action
- Instruction
Make sure the SPL mint has a token pool for compression.
The script creates this token pool for you.For development, you can create a new mint with token pool via
The script creates this token pool for you.For development, you can create a new mint with token pool via
createMint() or add a token pool to an existing mint via createTokenPool().Troubleshooting
TokenPool not found
TokenPool not found
createMint.TokenPool mint does not match the provided mint
TokenPool mint does not match the provided mint
The token pool info doesn’t correspond to the mint address. Ensure you’re fetching the correct pool:
Amount and toPubkey arrays must have the same length
Amount and toPubkey arrays must have the same length
When minting to multiple recipients, ensure arrays are the same size.
Advanced Configuration
Mint to Multiple Recipients
Mint to Multiple Recipients
With Custom Mint Authority
With Custom Mint Authority