Skip to main content

Get Started

1

Mint Compressed Tokens

Install packages in your working directory:
Install the CLI globally:
In the code examples, use createRpc() without arguments for localnet.
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 createMint() or add a token pool to an existing mint via createTokenPool().

Troubleshooting

The mint does no have a token pool for compression. Ensure you created the mint using createMint.
The token pool info doesn’t correspond to the mint address. Ensure you’re fetching the correct pool:
When minting to multiple recipients, ensure arrays are the same size.

Advanced Configuration

Mint tokens using a custom mint authority with approveAndMintTo():

Next Steps

How to Transfer Compressed Tokens