Build a fee claim
POST/bankr-v4/:token/fees/build-claim
An unsigned transaction that claims account's fees from the launch's main fee bucket and pays them to account. account signs and sends it from its own wallet; Bankr sends nothing.
side claims both tokens (both, the default), or only the launched token or only the quote, so a quote token that is frozen or paused cannot hold up the other side.
When the account's fees were already settled into its balance in the launch's token or quote, the transaction is a withdraw that settles this launch's share and pays that balance; otherwise it claims the launch's share directly. Build a claim-all claims every launch at once.
403 when account holds no share of the bucket and no settled balance in the launched token. Like Read fees, it leaves out the decay bucket: client.fees.buildClaim in the SDK claims every bucket the account holds. Shares the 60-per-minute fee limit.
SDK equivalent: client.fees.buildClaim(token, account, { side }), where side is "token" or "quote", or omitted for both.
Request
Responses
- 200
- 400
- 403
- 404
- 429
- 502
The claim, for account to sign and send.
An invalid token address, account or body. A body that fails validation lists each failed check in details.
account holds no share of the launch's main fee bucket and no settled balance in the launched token.
Bankr's index has no launch on the Bankr Hook with this token on Base, Robinhood Chain, Arbitrum or Arc yet.
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.