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.
- 01
Install the SDK
Add the package to your Solana app. It has no heavy dependencies and works in Node and edge runtimes.
$pnpm add @burnkit/sdk - 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.
import { createBurnkitClient } from "@burnkit/sdk"; export const burnkit = createBurnkitClient({ network: "devnet", rpcUrl: process.env.SOLANA_RPC_URL,}); - 03
Quote a utility price
Turn a USD price into a token amount. Use the base-unit string when constructing on-chain instructions.
const quote = await burnkit.quote({ mint: "So11111111111111111111111111111111111111112", usdAmount: 1,}); console.log(quote.uiAmount, quote.baseAmount); - 04
Build a burn intent
Create the intent, plan the transaction for your wallet adapter, submit it, then issue a verifiable receipt.
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
- Add a treasury split - see Treasury split.
- Connect live pricing - see Price providers.
- Store and verify receipts - see Receipts.