Skip to Content
DevelopersAirdrop SDK

Airdrop SDK

@bonkit/airdrop-sdk is a TypeScript SDK for interacting with Bonkit Airdrop Studio on Solana.

What It Is For

The SDK is designed around two usage patterns:

  1. Read on-chain state — fetch recipient lists and claim status for existing airdrops.
  2. Build transactions — create versioned transactions for both claim modes supported by Airdrop Studio: merkle (proof-based claims from a merkle tree) and onchain (claims resolved against a recipient list stored on-chain). The SDK builds the transaction; you sign and send it.

Most transaction methods return a VersionedTransaction. Sending is left to the caller so the SDK works in browsers, backends, and serverless functions.

When to Use the SDK

You want toUse
Embed claim into your own app or backendThis SDK
Run a self-hosted claim site without writing codeAirdrop Studio CLI
Use a managed campaign page on BonkitHosted Airdrop Studio

Supported Networks

  • devnet
  • mainnet-beta (and the alias mainnet)

Package

API Surface

  • ClientAirdropStudioClient initialization and read methods
  • Transactions — fourteen transaction builders (seven per claim mode)
  • Merkle Tools — tree builders, serialized helpers, and full payload helpers
  • On-chain List — recipient list chunk decoders
  • Validation and Errors — mint precheck and error normalization
  • PDAscreatePdas for deterministic addresses
  • Examples — end-to-end snippets

Start Here

Last updated on