Skip to main content
With this guide you will mint compressed tokens in under 5 minutes.
Compressed tokens are SPL compatible and supported by leading wallets such as Phantom or Backpack.

Install Dependencies

Create an RPC connection

Run test-connection.ts to verify your setup:
Replace <api_key> with your actual API key before running! Get one here, if you don’t have one yet.
test-connection.ts

Create and Mint Compressed Tokens

1
Install Solana
2
Then run the command below to create a keypair at .config/solana/id.json
3
Fund wallet with devnet SOL
Run quickstart.ts with the following code:
quickstart.ts

That’s it!

You’ve created and minted compressed tokens. The output shows:
  • Mint address
  • Create mint transaction link
  • Minted token amount
  • Mint transaction link
  • Compressed token balance

Next Steps

Get an overview of compressed tokens or build a program with compressed accounts.