Murphy Logo Murphy
ZK Compression

Claim Compressed Token

Component for decompressing Solana compressed tokens to regular tokens

Claim Compressed Token Form

Decompress Tokens
DevnetMainnet

Select the network you want to use to process tokens

Installation

Install dependencies

Start by installing required Solana dependencies

pnpm add @solana/web3.js @solana/spl-token @solana/wallet-adapter-react @lightprotocol/stateless.js @lightprotocol/compressed-token bs58 dotenv

Add Wallet Provider

Make sure you have added the Wallet Provider to your application. If not, follow the steps in the Connect Wallet Button guide first.

Add Claim Token Form

pnpm dlx shadcn@canary add https://www.murphyai.dev/r/claim-cToken.json

Basic Usage

import { ClaimTokenForm } from "@/components/ui/murphy/claim-cToken";
export default function MyPage() {
  return (
    <div>
      <h1 className="text-xl font-bold mb-2">Claim Compressed Token</h1>
      <ClaimTokenForm className="max-w-md" />
    </div>
  );
}

On this page

How are you feeling?

Join Our Community