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

Conventions

Versions, amounts, timestamps, request IDs, pages, errors and calling from a browser.

Versions

Every public route is under /v1. From the API's first release on, changes within v1 only add: new routes, new optional fields, new values in open lists. A field's meaning never changes, and nothing is removed; the API's checks refuse any change that would break a client. Treat a value you don't know (a new kind, action or code) as something to skip, not as an error.

Amounts

Every amount is in lamports, as a whole number in a decimal string ("2039280"), because a JavaScript number can't hold every u64 exactly. Read it with BigInt. A share is in basis points: 10,000 is 100%.

Timestamps

Every timestamp is ISO 8601 in UTC (2026-10-19T22:49:13.000Z).

Request IDs

Every response carries Request-Id, the request's trace ID. Every error repeats it as requestId. Send it with any question to support.

Pages

Lists take limit (1–200, default 50) and an opaque cursor. They answer { data, nextCursor }, with nextCursor: null on the last page. Send a non-null cursor unchanged with the same filters to continue. A refreshed leaderboard snapshot answers 409 conflict: restart without a cursor. Nested arrays on a single resource and bounded POST lookups do not have separate cursors.

Errors

Every error is a problem document (RFC 9457) with a stable code. Errors lists every code and what to do about each.

Calling from a browser

The API takes browser requests only from Burn & Claim's own pages and organizations' burners: its CORS rules admit no other origin. Anywhere else, call the API from your server, or have your page call a route on your own server that passes /v1 requests on to the API. That keeps your API key on your server, too. Protect your forwarding route with your own app’s authentication and rate limits before allowing caller traffic. Forward Idempotency-Key unchanged so a keyed create keeps its retry protection.

examples/proxy/route.ts
async function pass(request: Request, { params }: Context) {
  const { path } = await params
  if (path[0] !== 'v1') return new Response(null, { status: 404 })
  const url = new URL(`/${path.join('/')}`, PRODUCTION_API)
  url.search = new URL(request.url).search
  return fetch(url, {
    method: request.method,
    headers: {
      'Content-Type': request.headers.get('Content-Type') ?? 'application/json',
      ...(process.env.BURN_AND_CLAIM_API_KEY
        ? { Authorization: `Bearer ${process.env.BURN_AND_CLAIM_API_KEY}` }
        : {}),
      ...(request.headers.has('Idempotency-Key')
        ? { 'Idempotency-Key': request.headers.get('Idempotency-Key')! }
        : {}),
    },
    body: request.method === 'GET' ? undefined : await request.text(),
    signal: request.signal,
  })
}

export { pass as GET, pass as POST }

Your page then gives the SDK your route's origin:

examples/proxy/page.ts
export const bnc = createClient({ baseUrl: `${window.location.origin}/burn-and-claim` })

On this page