SDK
SDK changelog
Published SDK changes and pending release notes.
Current source package version: 0.1.0.
Pending release
- An Activity session's
totalscarrystrayLamports,unwrapLamportsanddepositLamportswhen 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 innetLamports; what the wallet got isnetLamports + strayLamports + unwrapLamports − depositLamports. alertChallengetakes an optionalmerge. Withmerge: 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.listAlertNotificationsandreadAlertNotifications: 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.alertChallengetakes an optionalwalletApp, 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
recentto 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.recipientfrombnc.fees()is historical. - A scanned asset's
metadata.imageUrlis 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,receiptornft), 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), andanalyticsHistoryDaysto a plan's quotas. - Describe each burner's sign-in app as a confidential web app:
signIn.clientIdon a resolved burner names an app whose secret only Burn & Claim's web app server holds, andsignInstays null until that app is ready with its secret kept. - The example issuer in
Burner.signInreadshttps://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.suggestedBpsto 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/portalwithflow: changecan answer Stripe Checkout to add the card, and the newPOST /v1/orgs/\{orgId\}/billing/card-upgradefinishes it from that checkout'ssession_id:upgraded,declined(nothing charged, the plan as it was),needs_authentication(Stripe's page to confirm on) orprocessing. - A wallet scan lists DeFi leftovers (
familydefi):AssetKindgainspump_account,open_orders,lp_position,farm_accountandlending_account,AssetProgramtheir apps' programs, and an asset carrieslabel,market,positions,lastUsedAtand, when blocked,blockedDetail, withBlockedReasongaininghas_liquidity,has_orders,unsettled_funds,has_balance,fees_owedandrewards_unclaimed. The person's own SOL a close returns (pump.fun and PumpSwap cashback) comes back uncharged instrayLamports;ScanSourcegainsdefi;SkipReasongainsnot_empty; andFailingProgramnames the DeFi programs. ProfileAlertsUpdate.preferencesis typed asProfileAlertPreferences, with its description, instead ofProfileAlertPreferences & unknown.- Quotes carry
epoch, and a round takesquotedEpochto have a stale quote refused withquote_stale; quote lines carryswitchedFromwhen a close became a withdraw or a withdraw a close;QuoteWarninggainsnetwork_fees_high;SkipReasongainslanded;SubmitErrorCodegainschanged_since_quote,unsafe_transactionandsponsor_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 awithdraw_excessleaves 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) andnftId(on an NFT's token account as an item of its own, which only withdraws its excess and keeps the NFT).excessLamportsis 0 below 10,000 lamports, which no withdraw is offered for. A scan and itsscan.startedandscan.doneevents carryrentEpoch, the epoch whose rent priced it, andGET /v1/fees'srentcarriesepoch. QuoteLineandActionOptiongainstrayLamports: SOL someone sent to an account by mistake, returned in full and never charged, apart fromreclaimLamportsandnetLamports, which now count rent alone. A frozen token account that holds no tokens offersclose. Quotes and rounds answernothing_to_buildfor a smart wallet, an address off the ed25519 curve such as a Squads vault.- Describe
withdraw_excessas a kept account's extra SOL inAction,ActionOption.reclaimLamportsandScanTotals.reclaimableLamports; every name stays the same. FeeCode's description no longer writes outexcess_lamports_reclaim's percentage: it is charged at the rateGET /v1/feeslists.- A sensitive operation takes a sign-in from the last 30 minutes, no longer the last 5: its 403
fresh_sign_in_requiredasks formax_age="1800"inWWW-Authenticate, and the operations' descriptions say 30 minutes. - Document the 429
rate_limitedanswer of creating and resending an organization's invites, over the hourly budget of 20 a person or 100 an organization. - Add
plantoBillingInvoice: 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_excesscounts 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_escrowandinscription, from the newcreator_accountsandmarketplace_escrowssources. Each carriesfamily(creatorordefi),tier,inUse,authorityandleftoverdetails; an escrow's bid SOL comes back uncharged instrayLamports, and a tier 2 close takesacknowledgedon its selection to be built, as a stake merge does. The fee codescreator_account_closure,mint_closureanddefi_account_closureare new, and a multisig's leftovers come back withblockedReasonmultisig. - A wallet-proof challenge can name how it will be answered.
POST /v1/wallet-proofs/challengesandPOST /v1/orgs/\{orgId\}/payout/challengestake an optionalmethod:memokeeps the challenge open 72 hours, time for a multisig's members to approve and execute the memo, andsignaturekeeps 15 minutes. The challenge carriesmethod, a memo counts only when it landed after the challenge was made, andGET /v1/orgs/\{orgId\}/payoutgainsopenMemo, the open memo challenge to come back to. - Type the Squads multisig member's proof of an organization's payout wallet:
createPayoutChallengetakesmethod: multisig_memberwithmemberand an optionalmultisig, and answers aPayoutChallengenaming the multisig it read;changePayoutWallettakes the member'ssignaturefor it. - Remove
POST /v1/projects/lookupand a project'spayoutAddressfrom 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:
GETandPOST /v1/orgs/\{orgId\}/refund-requestsare gone, withOrgRefundRequestandCreateRefundRequest, therefunds.requestpermission and therefundRequest.decidedwebhook event. A cancellation runs the plan to the end of the period paid for, then stops.OrgEntitlementsgainsendsAt, 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:ProrationgainstrialDays, 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.issueron a resolved burner is the same for every burner,signIn.clientIdthe burner's own app in it, given on the burner's subdomain only (null on a custom domain), andGET /v1/burner-users/menames the burner by the token'sazp. - Document the 429
rate_limitedanswer 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
transactiona 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\}/payoutsays 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'streasuryis nowplatform(platform,burner,referrer,referral_partner, and the historicaldonations), andbnc.fees()'sFeeSchedule.treasuryis nowFeeSchedule.platform, the address the platform's share lands at.donation.recipientstays historical and names that same address. - Ids are now typed and prefixed,
org_…,member_…,round_…and the rest (TypeID), and every/v1route takes and answers them; fiat money is an integer string of minor units named…Cents(totalCents,amountPaidCents,per1000Cents), and lamports fields end inLamports(rentExemptMinimumLamports,splTokenAccountMinimumLamports). A selection'sactionand 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, andside:serverwhen the problem is on Burn & Claim's side and retrying later is the fix,clientwhen the request needs changing. A round whose fees changed since its quote answers the newfees_changedcode (409) instead ofinvalid_request. Validation errors give one entry per field, in plain words. Staff pauses answerretryAfter: 60instead of 5. - Add
GETandPUT /v1/profiles/me/alertsfor a burner user's alerts that follow their profile to Telegram:ProfileAlerts(enabled,preferences,telegram.status,telegram.botUrl,wallets,updatedAt) andProfileAlertsUpdate. - 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) andwallets;youfor a wallet on a profile is its profile's row. Referrer entries carryprofileandcodes. A wallet summary'srankandtopPercentare its profile's. AddGET /v1/profiles/meandPOST /v1/profiles/me/syncfor 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.
Problemcarrieslamports(forwallet_needs_sol) andskipped(fornothing_to_build),SkipReasongainstoo_large, andSkippedgainsfailure: the program that refused asimulation_faileditem and its error number.Problem['code']gainsscan_busy(503, withretryAfter): 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: waitretryAfterseconds and send the same request again.Problem['code']gainswallet_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: sdkwhen 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/sharestakesallTimewithwalletinstead ofroundIds, the card of every round the profile that links the wallet recorded, for that burner user; andrank(timeframe,burner) withroundIds, a rank card frozen from that board. The burns feed's entries carrynetLamports, what reached the wallet. - Add share cards to the API's types (AERO-2717):
POST /v1/sharesmakes a card of settled rounds with theshareTokenPOST /v1/transactions/roundsnow gives the client that prepared each round,GET,PATCHandDELETE /v1/shares/\{code\}read, change and unshare it, andGET /v1/shares/availabilitysays whether to offer Share. Quotes and rounds takereferralShare, 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.signatureisnullfor 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.createWalletChallengesays that a Squads multisig's settings account isaddress_not_payable, with the vault to use instead named in the problem'sdetail.- Staking leftovers: a scan lists the stake and vote accounts a wallet is the withdraw authority of (
stake_account,vote_account, familystaking, with astakingobject), each action gainstierandirreversible, the scan's totals gainsafeSetLamportsandsafeSetStrayLamports, quote totalsstrayLamports, and a selection takesacknowledgedfor what can't be undone. New fee codesstake_account_closureandvote_account_closurerest on rent alone; principal and earnings come back asstrayLamports. - 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-codesmakes the code (BNC-XXXXX-XXXXX, 15 minutes, with the command to send and the add-to-group link),GET /v1/orgs/\{orgId\}/telegram/groupslists the connected chats, andPATCHandDELETE /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_compresson 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
rankis 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. reclaimsubmits 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 withWalletModifiedTransactionError, which now carrieschanged, a sentence that says what the wallet changed.
The first npm publication remains pending. A source version is not a published release.