Skip to main content

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​

What the account is owed on the chain.