ZK Compression
Mint Compressed Token Form
A Solana compressed token minting component with shadcn UI styling
Mint Compressed Token Form
Create Compressed Token
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 Mint Token Form
pnpm dlx shadcn@canary add https://www.murphyai.dev/r/mint-cToken.json
Basic Usage
import { MintTokenForm } from "@/components/ui/murphy/mint-cToken";
export default function MyPage() {
return (
<div>
<h1 className="text-xl font-bold mb-2">Create Compressed Token</h1>
<MintTokenForm className="max-w-md" />
</div>
);
}