Quickstart

Ship a burn flow in four steps.

This guide gets @burnkit/sdk running end to end. You bring an RPC and a wallet; the SDK handles quoting, burn math, splits, and receipts.

  1. 01

    Install the SDK

    Add the package to your Solana app. It has no heavy dependencies and works in Node and edge runtimes.

    terminal
    $pnpm add @burnkit/sdk
  2. 02

    Create a client

    Configure the network and (optionally) your RPC. With no price provider set, the SDK uses a deterministic mock so you can build offline.

    lib/burnkit.ts
    import { createBurnkitClient } from "@burnkit/sdk"; export const burnkit = createBurnkitClient({  network: "devnet",  rpcUrl: process.env.SOLANA_RPC_URL,});
  3. 03

    Quote a utility price

    Turn a USD price into a token amount. Use the base-unit string when constructing on-chain instructions.

    quote.ts
    const quote = await burnkit.quote({  mint: "So11111111111111111111111111111111111111112",  usdAmount: 1,}); console.log(quote.uiAmount, quote.baseAmount);
  4. 04

    Build a burn intent

    Create the intent, plan the transaction for your wallet adapter, submit it, then issue a verifiable receipt.

    burn.ts
    const intent = await burnkit.createBurnIntent({  mint: "So11111111111111111111111111111111111111112",  payer: userWallet,  usdAmount: 1,  burnPercent: 100,  action: "generate_meme_pack",}); const plan = burnkit.planTransaction(intent);// build & sign with @solana/web3.js, then:const receipt = burnkit.issueReceipt(intent, { signature });

Next steps