Read an account's fees
GET/bankr-v4/accounts/:account/fees
Everything account is owed on one fee ledger, across every launch on it, read from Bankr's index and confirmed live on the chain. No key needed.
The answer is for one fee ledger: the chain's current one, unless you pass another's address as ledger. The answer's own ledger field names it. To build the claim, use Build a claim-all.
The fee ledger keeps one balance per currency for each account. A trade's referrer cut lands in it at once, and each launch share moves into it when it is settled. balances is that balance, buckets lists each launch share (creator or decay) with something still to settle, and totalByQuote sums both per currency. Amounts are in each currency's base units.
It answers on Base, Robinhood Chain, Arbitrum, Arc, Ethereum and BNB Chain. 400 for any other chain id, 404 for a chain where the Bankr Hook is not live or for a ledger that is not one of Bankr's fee ledgers on that chain. Shares the 60-per-minute fee limit, and answers can be up to 15 seconds old.
SDK equivalent: client.fees.getOwed(account), which reads the client's own ledger, or createBankrApi().accountFees(chain, account, ledger).
Request
Responses
- 200
- 400
- 404
- 429
- 502
- 503
What the account is owed on the chain.
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 launch's fees could not be read from the chain right now. Retry.
INDEX_UNAVAILABLE: Bankr's index for that chain is behind, so the answer would be missing launches. Retry shortly.