Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs
SDK

SDK changelog

Published SDK changes and pending release notes.

Current source package version: 0.1.0.

Pending release

  • An Activity session's totals carry strayLamports, unwrapLamports and depositLamports when there are any: the person's own SOL and wrapped SOL's balance that came back with no fee, and the rent put into new token accounts. None is in netLamports; what the wallet got is netLamports + strayLamports + unwrapLamports − depositLamports.
  • alertChallenge takes an optional merge. With merge: true, the signed answer adds the challenge's channels and its phone or browser to the alerts the wallet already has on, and keeps their settings and their other channels and devices. A wallet with no alerts on starts with the challenge's preferences.
  • listAlertNotifications and readAlertNotifications: a phone's or a browser's list of its wallets' alerts, newest first with an unread count, named by the push token or endpoint its wallets' signatures linked, and marking some or all of them read.
  • alertChallenge takes an optional walletApp, the wallet app the person is using from a fixed list (phantom, solflare, … other), so the Telegram bot can name the wallet as the app does: "Solflare D4uJ…Qcvj".
  • Add recent to an organization's burner analytics (GET /v1/orgs/\{orgId\}/analytics): its latest cleanups in the range, newest first, at most 5, each with its round, wallet, SOL reclaimed, first transaction's signature and cluster, and when it was recorded.
  • Document that a cleanup on Burn & Claim's own burner pays its organization like every other burner: its donation goes to the organization's verified payout wallet, and donation.recipient from bnc.fees() is historical.
  • A scanned asset's metadata.imageUrl is always the API's /v1/asset-images/\{id\} when the asset has a picture (AERO-3887). The API sends it on to Helius's CDN copy while that copy loads, and redraws the picture itself when it doesn't, so pictures kept on IPFS (MEW's, AKIRA's, Skult NFTs') show again. Only the types' descriptions change.
  • A wallet scan's assets carry protection: whether the asset holds the person's own value beyond its rent (protected), by its platform's program (platform, family: amm_lp, position, receipt or nft), what burning it would lose (holds), what it is worth (valueUsd, valueLamports, valueBasis) and its platform's own page to withdraw or redeem it on (redeemUrl, mainnet only). An LP token, a liquidity position, a staking or lending receipt, a name or a pass with no market price no longer reads as a $0 token.
  • Add typed alertChallenge, subscribeToAlerts and unsubscribeFromAlerts methods, with signature recovery guidance.
  • Add an organization's burner analytics (GET /v1/orgs/\{orgId\}/analytics) and its top reclaimers as CSV (/analytics.csv), and analyticsHistoryDays to a plan's quotas.
  • Describe each burner's sign-in app as a confidential web app: signIn.clientId on a resolved burner names an app whose secret only Burn & Claim's web app server holds, and signIn stays null until that app is ready with its secret kept.
  • The example issuer in Burner.signIn reads https://burn-and-claim.auth.example.com: every burner now signs in through Burn & Claim's own Synq brand, the one its dashboard signs in at. Types are unchanged.
  • Add donations.suggestedBps to a burner's resolution (GET /v1/burners/resolve): the share its organization suggests, in basis points, where a donation starts for someone who hasn't picked their own.
  • An org upgrade with no card on file asks for a card first. POST /v1/orgs/\{orgId\}/billing/portal with flow: change can answer Stripe Checkout to add the card, and the new POST /v1/orgs/\{orgId\}/billing/card-upgrade finishes it from that checkout's session_id: upgraded, declined (nothing charged, the plan as it was), needs_authentication (Stripe's page to confirm on) or processing.
  • A wallet scan lists DeFi leftovers (family defi): AssetKind gains pump_account, open_orders, lp_position, farm_account and lending_account, AssetProgram their apps' programs, and an asset carries label, market, positions, lastUsedAt and, when blocked, blockedDetail, with BlockedReason gaining has_liquidity, has_orders, unsettled_funds, has_balance, fees_owed and rewards_unclaimed. The person's own SOL a close returns (pump.fun and PumpSwap cashback) comes back uncharged in strayLamports; ScanSource gains defi; SkipReason gains not_empty; and FailingProgram names the DeFi programs.
  • ProfileAlertsUpdate.preferences is typed as ProfileAlertPreferences, with its description, instead of ProfileAlertPreferences & unknown.
  • Quotes carry epoch, and a round takes quotedEpoch to have a stale quote refused with quote_stale; quote lines carry switchedFrom when a close became a withdraw or a withdraw a close; QuoteWarning gains network_fees_high; SkipReason gains landed; SubmitErrorCode gains changed_since_quote, unsafe_transaction and sponsor_unavailable, for a withdraw that would move less than quoted, a transaction that would move SOL anywhere but the wallet and its charges, and a first network fee Burn & Claim can't front.
  • A wallet scan's assets carry excessNetLamports (what a withdraw_excess leaves after its fee), excessReason (why a token account offers none: current_rate, below_floor, native, or why it stays open: close_authority, confidential_balance), uiAmount (the balance as wallets show it, scaled for InterestBearing and ScaledUiAmount mints), closeAuthority (someone else's close authority) and nftId (on an NFT's token account as an item of its own, which only withdraws its excess and keeps the NFT). excessLamports is 0 below 10,000 lamports, which no withdraw is offered for. A scan and its scan.started and scan.done events carry rentEpoch, the epoch whose rent priced it, and GET /v1/fees's rent carries epoch.
  • QuoteLine and ActionOption gain strayLamports: SOL someone sent to an account by mistake, returned in full and never charged, apart from reclaimLamports and netLamports, which now count rent alone. A frozen token account that holds no tokens offers close. Quotes and rounds answer nothing_to_build for a smart wallet, an address off the ed25519 curve such as a Squads vault.
  • Describe withdraw_excess as a kept account's extra SOL in Action, ActionOption.reclaimLamports and ScanTotals.reclaimableLamports; every name stays the same.
  • FeeCode's description no longer writes out excess_lamports_reclaim's percentage: it is charged at the rate GET /v1/fees lists.
  • A sensitive operation takes a sign-in from the last 30 minutes, no longer the last 5: its 403 fresh_sign_in_required asks for max_age="1800" in WWW-Authenticate, and the operations' descriptions say 30 minutes.
  • Document the 429 rate_limited answer of creating and resending an organization's invites, over the hourly budget of 20 a person or 100 an organization.
  • Add plan to BillingInvoice: the plan an invoice bills, or null for one with no plan line, such as API overage.
  • Describe item counts on stats, Wrapped and the boards: a withdraw_excess counts once per account, however many times extra SOL came back from it.
  • A wallet scan lists leftovers beyond token accounts that only the wallet can close (AERO-2775): candy_machine, candy_guard, core_collection, merkle_tree, mint, metadata_delegate, bid_escrow and inscription, from the new creator_accounts and marketplace_escrows sources. Each carries family (creator or defi), tier, inUse, authority and leftover details; an escrow's bid SOL comes back uncharged in strayLamports, and a tier 2 close takes acknowledged on its selection to be built, as a stake merge does. The fee codes creator_account_closure, mint_closure and defi_account_closure are new, and a multisig's leftovers come back with blockedReason multisig.
  • A wallet-proof challenge can name how it will be answered. POST /v1/wallet-proofs/challenges and POST /v1/orgs/\{orgId\}/payout/challenges take an optional method: memo keeps the challenge open 72 hours, time for a multisig's members to approve and execute the memo, and signature keeps 15 minutes. The challenge carries method, a memo counts only when it landed after the challenge was made, and GET /v1/orgs/\{orgId\}/payout gains openMemo, the open memo challenge to come back to.
  • Type the Squads multisig member's proof of an organization's payout wallet: createPayoutChallenge takes method: multisig_member with member and an optional multisig, and answers a PayoutChallenge naming the multisig it read; changePayoutWallet takes the member's signature for it.
  • Remove POST /v1/projects/lookup and a project's payoutAddress from the client types: nothing looks projects up by a wallet's holdings, and no project is paid. Donations go to the organization running the burner.
  • Plans aren't refundable: GET and POST /v1/orgs/\{orgId\}/refund-requests are gone, with OrgRefundRequest and CreateRefundRequest, the refunds.request permission and the refundRequest.decided webhook event. A cancellation runs the plan to the end of the period paid for, then stops. OrgEntitlements gains endsAt, the day a plan set to end stops: the end of the period after a cancellation, or a date Burn & Claim set. An org's first paid plan starts with its trial once, a move up from Spark included: Proration gains trialDays, the days free before the first charge (0 for a move charged as usual).
  • Describe burner sign-in as one Synq brand for every burner: signIn.issuer on a resolved burner is the same for every burner, signIn.clientId the burner's own app in it, given on the burner's subdomain only (null on a custom domain), and GET /v1/burner-users/me names the burner by the token's azp.
  • Document the 429 rate_limited answer on every organization route: a person's calls count against their account's limits, an org key's against its plan's.
  • Describe organization change requests, bounded standing approvals and confirmed burner analytics in the public client types.
  • Type the optional transaction a Squads vault's memo proof of an organization's payout wallet can name: the signature of the vault's transaction that landed the memo.
  • GET /v1/orgs/\{orgId\}/payout says what the payout wallet holds (balanceLamports) beside the live rent-exempt minimum (minimumLamports) and whether it is ready (canReceive). Below the minimum, every cleanup skips the org's donation and fee share until the wallet is topped up.
  • Burn & Claim's own share of every cleanup is the platform, no longer the treasury: RecipientKind's treasury is now platform (platform, burner, referrer, referral_partner, and the historical donations), and bnc.fees()'s FeeSchedule.treasury is now FeeSchedule.platform, the address the platform's share lands at. donation.recipient stays historical and names that same address.
  • Ids are now typed and prefixed, org_…, member_…, round_… and the rest (TypeID), and every /v1 route takes and answers them; fiat money is an integer string of minor units named …Cents (totalCents, amountPaidCents, per1000Cents), and lamports fields end in Lamports (rentExemptMinimumLamports, splTokenAccountMinimumLamports). A selection's action and other values a request sends are closed lists; values an answer carries may grow.
  • Expose the private Telegram linking capability and expiry in signed wallet alert subscription responses.
  • Add wallet-approved private alert settings reads with distinct one-use read proofs.
  • Every problem now carries hint, the next step in plain words, and side: server when the problem is on Burn & Claim's side and retrying later is the fix, client when the request needs changing. A round whose fees changed since its quote answers the new fees_changed code (409) instead of invalid_request. Validation errors give one entry per field, in plain words. Staff pauses answer retryAfter: 60 instead of 5.
  • Add GET and PUT /v1/profiles/me/alerts for a burner user's alerts that follow their profile to Telegram: ProfileAlerts (enabled, preferences, telegram.status, telegram.botUrl, wallets, updatedAt) and ProfileAlertsUpdate.
  • Type profile leaderboards: every board of wallets ranks a profile (a person signed in with Synq, all their linked wallets together) or a wallet on no profile, and each entry carries profile (profileId, username) and wallets; you for a wallet on a profile is its profile's row. Referrer entries carry profile and codes. A wallet summary's rank and topPercent are its profile's. Add GET /v1/profiles/me and POST /v1/profiles/me/sync for a burner user's own profile, picture and rank.
  • Expose the shared public organization API and accept scoped Synq access tokens alongside permissioned organization keys.
  • Problem carries lamports (for wallet_needs_sol) and skipped (for nothing_to_build), SkipReason gains too_large, and Skipped gains failure: the program that refused a simulation_failed item and its error number.
  • Problem['code'] gains scan_busy (503, with retryAfter): a scan, quote or round of a wallet with more than 300 token accounts or DAS assets, while the server is already scanning as many large wallets as it can at once, is refused before the heavy work. Nothing moved: wait retryAfter seconds and send the same request again.
  • Problem['code'] gains wallet_too_large (422): a scan, quote or round of the System Program, a sysvar, a program or the incinerator, or of a wallet holding more than 5,000 accounts of one kind, is refused whole, and retrying changes nothing. Address examples name an ordinary wallet instead of the System Program.
  • Send X-Client-Platform: sdk when preparing, stamping and submitting a round, so Burn & Claim's reports count cleanups made through the SDK apart from the app's.
  • Type all-time and rank share cards (AERO-2718): POST /v1/shares takes allTime with wallet instead of roundIds, the card of every round the profile that links the wallet recorded, for that burner user; and rank (timeframe, burner) with roundIds, a rank card frozen from that board. The burns feed's entries carry netLamports, what reached the wallet.
  • Add share cards to the API's types (AERO-2717): POST /v1/shares makes a card of settled rounds with the shareToken POST /v1/transactions/rounds now gives the client that prepared each round, GET, PATCH and DELETE /v1/shares/\{code\} read, change and unshare it, and GET /v1/shares/availability says whether to offer Share. Quotes and rounds take referralShare, a share card's code, to pay its sharer's referral without naming them. The first share links move to /v1/shares/legacy.
  • Add public browser push availability and bind optional browser delivery details to wallet alert challenges.
  • Bind an optional Expo push token for mobile delivery to wallet alert challenges.
  • Expose signed organization webhook endpoint and delivery routes, event payload schemas, and status links for asynchronous organization operations.
  • SubmitResult.signature is null for a transaction whose network fee Burn & Claim pays whenever it is refused or held back before the network has it: its id is the co-signer's signature, given only once the transaction is sent or on chain.
  • createWalletChallenge says that a Squads multisig's settings account is address_not_payable, with the vault to use instead named in the problem's detail.
  • Staking leftovers: a scan lists the stake and vote accounts a wallet is the withdraw authority of (stake_account, vote_account, family staking, with a staking object), each action gains tier and irreversible, the scan's totals gain safeSetLamports and safeSetStrayLamports, quote totals strayLamports, and a selection takes acknowledged for what can't be undone. New fee codes stake_account_closure and vote_account_closure rest on rent alone; principal and earnings come back as strayLamports.
  • An org connects Telegram groups and channels with a one-time code and sets what each one posts from its own API: POST /v1/orgs/\{orgId\}/telegram/connect-codes makes the code (BNC-XXXXX-XXXXX, 15 minutes, with the command to send and the add-to-group link), GET /v1/orgs/\{orgId\}/telegram/groups lists the connected chats, and PATCH and DELETE /v1/orgs/\{orgId\}/telegram/groups/\{groupId\} change a chat's cleanup posts (each cleanup, a digest when busy, big ones only, hourly, daily or off), donation alerts, leaderboard posts, burn reminders and topic, or disconnect it.
  • Expose the public wallet alert challenge, signed subscription and unsubscribe routes through generated API types.
  • Document that a scan offers zk_compress on Token-2022 tokens whose mint carries only extensions Light's token pools take (metadata and group pointers, token metadata, groups and their members, interest-bearing and confidential transfers), as well as on SPL tokens. A Token-2022 mint with a transfer fee, transfer hook, permanent delegate, default account state, close authority or pause, and an account with CPI Guard on, stays burn only.
  • Add a typed public API client, wallet-approved reclaim loop, cursor iteration, structured errors and safe request retries. Bundle fee helpers so installations need no private workspace packages.
  • Document that a leaderboard entry's rank is never shared: a tie on the value goes to the row that reached it first, then to a fixed order, so there is only ever one #1.
  • reclaim submits a transaction the wallet edited only in the ways wallets do on their own (AERO-3865). Those are its own priority fee (the compute-unit price, compute-unit limit and loaded-data limit, up to 0.001 SOL a transaction, as the Seeker's Seed Vault Wallet sets one) and appended Lighthouse assertions (as Phantom adds). The API checks the edit again before it co-signs. Any other change still stops the cleanup with WalletModifiedTransactionError, which now carries changed, a sentence that says what the wallet changed.

The first npm publication remains pending. A source version is not a published release.

On this page