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

Promotions

Plan promotions, and the per-item fee promotions a quote applies and a round holds to.

There are two kinds of promotion. A plan promotion lowers what an organization pays for its plan. An item promotion lowers the service fee on the cleanup items it covers.

Plan promotions

GET /v1/plans gives each plan's prices, trial days and current promotion, with its code and how long it lasts. Plans are billed yearly (interval: "year"), and checkout applies the promotion's own terms.

Item promotions

The server decides which items a promotion covers, from its window, the wallets it names and the tokens or collections the wallet must hold. A request can't name a promotion, a rate or a recipient. When one applies, the quote line's appliedOverride names it, with its message for the person, and the lower fee is in the line's charges. Promotions never stack: the lowest fee wins. A promotion is priced on the same basis as the standard fee, what the item returns less the donation: Fees and donations works one through.

Every quote line has a feeQuote, a fingerprint of the item's reclaim, charges and promotion. A round with a promotion on any of its items needs expectedFees: every reviewed line's assetId and feeQuote, all of them, not only the promoted ones. If anything a fingerprint covers has changed, the round is refused before anything is signed: quote again, show the new fees, and ask the person again. The SDK's reclaim takes expectedFees too and sends it with every round.

const expectedFees = quote.lines.map(({ assetId, feeQuote }) => ({ assetId, feeQuote }))

On this page