Build a claim-all
POST/bankr-v4/accounts/:account/fees/build-claim-all
The unsigned transactions that claim everything account is owed on one chain: every launch share, in every currency, referral cuts included. account signs and sends each one from its own wallet, in order; Bankr sends nothing.
It is usually one transaction. When many shares are still unsettled, the first transactions settle them, which only moves them into the account's balance on the fee ledger, and the last ones pay every currency. Each transaction carries gas, its planned worst case, at most 15,000,000: send it with that limit.
Each currency pays on its own: one that refuses the payment, such as a quote whose issuer has paused transfers, stays in the account's balance and the others still pay. An account with nothing owed gets an empty txs.
Currencies Bankr does not list as quotes, other than launched tokens, are left out and reported in plan.unlisted. includeUnlisted: true pays them too, last, in transactions of their own.
includeHolders: true also returns holderTxs: the account's holder-reward claims on the coins Bankr's index knows it holds, which covers Bankr wallets and the wallets linked to them. An ordinary wallet's claims are batched through Multicall3, each batch within 15,000,000 gas. A contract account, or one that restricted who may claim for it, gets one claim() per coin with gas 1,750,000. The list can also hold calls that forward a coin's waiting holder rewards. Send each with its gas.
It builds on Base, Robinhood Chain, Arbitrum and Arc, and answers 400 for any other chain id. On Ethereum and BNB Chain, build the claim with the SDK.
Shares the 60-per-minute fee limit. The owed amounts behind the plan can be up to 15 seconds old.
SDK equivalent: client.fees.buildClaimAll(account), and client.holders.buildClaimAll(account, tokens) for holder rewards. Both work on every chain the SDK supports.
Request
Responses
- 200
- 400
- 404
- 429
- 502
- 503
The claim, for account to sign and send in order.
An invalid account address, a chainId or body that failed validation (with details), or a chain id the route does not answer on.
The Bankr Hook is not live on this chain. Or, on a read, ledger is not one of Bankr's fee ledgers on the chain.
Over the fee route limit, 60 requests per minute per IP. Wait the number of seconds in Retry-After, then retry.
Response Headers
Seconds until the limit resets.
Requests allowed per minute.
Requests left in this minute.
Seconds until the limit resets.
The claim could not be built right now. Retry.
INDEX_UNAVAILABLE: Bankr's index for that chain is behind, so the answer would be missing launches. Retry shortly.