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.
The SPL mint must have an SPL Interface PDA for compression.
The script creates it for you.
For development, create a new mint with SPL interface via createMint() or add an SPL interface to an existing mint via createSplInterface().

Troubleshooting

The mint does not have an interface PDA for compression. Ensure you created the mint using createMint.
The interface PDA info doesn’t correspond to the mint address. Ensure you’re fetching the correct PDA:
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