Skip to main content

What you will do

With this guide you will mint, compress, and transfer tokens with Token-2022 Metadata.

Overview Token 2022 Extensions

Token 2022 Extensions are optional features that can be added to Token 2022 mints on Solana to enable additional functionality. ZK Compression supports compressing the following mint-extensions:
  • MetadataPointer
  • TokenMetadata
  • InterestBearingConfig
  • GroupPointer
  • GroupMemberPointer
  • TokenGroup
  • TokenGroupMember
All other extensions are not yet supported.
If you require support for other mint-extensions, let us know!

Get started

Prerequisites

You need the following SDK versions:
  • @lightprotocol/stateless.js ≥ 0.21.0
  • @lightprotocol/compressed-token ≥ 0.21.0
  • @solana/web3.js ≥ 1.95.3
Make sure you have dependencies and developer environment set up!
Dependencies
Alternatives:
Developer EnvironmentBy default, this guide uses Localnet.
Alternative: Using DevnetFollow these steps to create an RPC Connection. Replace <your_api_key> with your API key before running.

Mint, compress, and transfer tokens with Token-2022 Metadata

Run compress-t22.ts.
compress-t22.ts

Success!

You’ve just compressed Token-2022 tokens with metadata extensions and transferred them using ZK Compression.

Next Steps

Explore more guides in our cookbook section.