{ "object": "balance", "address": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", "currency": "FLOP", "network": "testnet", "fees": { "mode": "prepaid", "accrued": "0", "collected": "0", "owed": "0", "last_collection": null, "next_collection_at": null }, "balance": "0.18", "held": "0", "available": "0.18", "deposit_address": "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL", "fee_percent": 5, "min_router_fee": "0.012", "deposit_note": "Send a plain transfer (balances.transferKeepAlive or transferAllowDeath) from 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty to the deposit address. It is credited to the sending address once its block is finalized, usually within a minute.", "recent": [ { "id": 28, "kind": "refund", "amount": "0.000256", "session_id": "drill-mwu3u9tx-da232c98", "channel_id": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "block": 4494308, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow returned on chain (ack_expired)", "at": "2026-11-24T03:09:15.000Z" }, { "id": 26, "kind": "fee_debit", "amount": "-0.012", "session_id": "gen-example-0002", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": 4494294, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "router fee, the 0.012 minimum (5% of escrow 0.000256 is less)", "at": "2026-11-24T03:08:28.000Z" }, { "id": 24, "kind": "session_debit", "amount": "-0.01", "session_id": "gen-example-0002", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": null, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T03:05:43.000Z" }, { "id": 22, "kind": "session_debit", "amount": "-0.01", "session_id": "drill-mwu3u9tx-da232c98", "channel_id": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "block": null, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T02:58:17.000Z" }, { "id": 16, "kind": "fee_debit", "amount": "-0.012", "session_id": "gen-example-0004", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": 4493379, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "router fee, the 0.012 minimum (5% of escrow 0.000256 is less)", "at": "2026-11-24T02:53:08.000Z" }, { "id": 12, "kind": "session_debit", "amount": "-0.01", "session_id": "gen-example-0004", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": null, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T02:51:34.000Z" } ], "finality": { "best_block": 4502990, "finalized_block": 4502985, "lag_blocks": 5, "waiting": false, "max_lag_blocks": 30 }}
{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}
fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.
{ "object": "balance", "address": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", "currency": "FLOP", "network": "testnet", "fees": { "mode": "prepaid", "accrued": "0", "collected": "0", "owed": "0", "last_collection": null, "next_collection_at": null }, "balance": "0.18", "held": "0", "available": "0.18", "deposit_address": "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL", "fee_percent": 5, "min_router_fee": "0.012", "deposit_note": "Send a plain transfer (balances.transferKeepAlive or transferAllowDeath) from 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty to the deposit address. It is credited to the sending address once its block is finalized, usually within a minute.", "recent": [ { "id": 28, "kind": "refund", "amount": "0.000256", "session_id": "drill-mwu3u9tx-da232c98", "channel_id": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "block": 4494308, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow returned on chain (ack_expired)", "at": "2026-11-24T03:09:15.000Z" }, { "id": 26, "kind": "fee_debit", "amount": "-0.012", "session_id": "gen-example-0002", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": 4494294, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "router fee, the 0.012 minimum (5% of escrow 0.000256 is less)", "at": "2026-11-24T03:08:28.000Z" }, { "id": 24, "kind": "session_debit", "amount": "-0.01", "session_id": "gen-example-0002", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": null, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T03:05:43.000Z" }, { "id": 22, "kind": "session_debit", "amount": "-0.01", "session_id": "drill-mwu3u9tx-da232c98", "channel_id": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "block": null, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T02:58:17.000Z" }, { "id": 16, "kind": "fee_debit", "amount": "-0.012", "session_id": "gen-example-0004", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": 4493379, "tx": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "note": "router fee, the 0.012 minimum (5% of escrow 0.000256 is less)", "at": "2026-11-24T02:53:08.000Z" }, { "id": 12, "kind": "session_debit", "amount": "-0.01", "session_id": "gen-example-0004", "channel_id": "0x0000000000000000000000000000000000000000000000000000000000000000", "block": null, "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "note": "escrow of the channel, paid on chain by the router wallet", "at": "2026-11-24T02:51:34.000Z" } ], "finality": { "best_block": 4502990, "finalized_block": 4502985, "lag_blocks": 5, "waiting": false, "max_lag_blocks": 30 }}
{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}
Authorizations
Authorization
string
header
required
Wallet API key fr_... from POST /v1/auth/keys.
Response
OK
object
any
address
string
currency
string
network
string
balance
string
held
string
Reserved for sessions in flight.
available
string
deposit_address
string | null
fee_percent
number
min_router_fee
string
Smallest router fee per billed request in FLOP. The fee is the larger of fee_percent of the escrow or this.
deposit_note
string
recent
object[]
Hide child attributes
recent.id
integer
recent.kind
enum<string>
Available options:
deposit,
session_debit,
refund,
fee_debit,
fee_accrued,
fee_collected,
fee_deposit_reserved,
fee_deposit_paid,
withdrawal,
withdrawal_fee
recent.amount
string
Signed decimal FLOP.
recent.session_id
string | null
recent.channel_id
string | null
recent.block
integer | null
recent.tx
string | null
recent.note
string | null
recent.at
string
withdrawals
object
Hide child attributes
withdrawals.enabled
boolean
withdrawals.min
string | null
withdrawals.note
string
withdrawals.recent
object[]
Hide child attributes
withdrawals.recent.object
any
withdrawals.recent.id
string
withdrawals.recent.to
string
Always the wallet that owns the API key.
withdrawals.recent.status
enum<string>
pending: held, not yet signed; submitted: signed and sent to the network; sent: final; failed: nothing left the wallet; unknown: signed, outcome not yet seen (the hold stays until the chain shows it).
Available options:
pending,
submitted,
sent,
failed,
unknown
withdrawals.recent.requested
string
withdrawals.recent.sent
string | null
Requested amount minus the chain fee estimate.
withdrawals.recent.chain_fee
string | null
Fee actually paid (TransactionFeePaid).
withdrawals.recent.tx
string | null
withdrawals.recent.block
integer | null
withdrawals.recent.error
string | null
withdrawals.recent.created_at
string
withdrawals.recent.balance_after
string
withdrawals.recent.poll
string
finality
object
Hide child attributes
finality.best_block
integer | null
finality.finalized_block
integer | null
finality.lag_blocks
integer | null
finality.waiting
boolean
true while the lag is above api.maxFinalityLagBlocks
finality.max_lag_blocks
integer
finality.note
string
fees
object
The wallet's router fees. Amounts are decimal FLOP strings; accrued and collected are cumulative.
Hide child attributes
fees.mode
enum<string>
grant_accrual: the wallet has an active fee grant, fees accrue and the router collects them from the wallet. prepaid: fees are taken from the prepaid balance.
Available options:
grant_accrual,
prepaid
fees.accrued
string
Fees earned by settled sessions, in total.
fees.collected
string
Fees paid so far (collected through the fee grant or paid from a deposit).
fees.owed
string
accrued minus collected. At the router's limit (the max_owed in a 402 fees_owed) new requests are refused until the wallet signs the grant batch again or deposits.
fees.last_collection
object | null
The most recent collection from the wallet; null before the first.
Hide child attributes
fees.last_collection.tx
string
Transaction hash of the transfer.
fees.last_collection.block
integer
fees.last_collection.amount
string
fees.next_collection_at
string | null
Owed amount at which the router collects (also earlier when the fee grant is close to expiry). null in prepaid mode.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"floprouter","description":"The floprouter API: a unified HTTP API for every GPU miner and model on FLOP Network.","colors":{"primary":"#b83a0b","light":"#ff7a3d","dark":"#b83a0b"},"logo":{"light":"https://mintcdn.com/floprouter/Yi7VGNv-2K0P3CpB/logo/light.svg?fit=max\u0026auto=format\u0026n=Yi7VGNv-2K0P3CpB\u0026q=85\u0026s=c24dd25aa0bccfb35e5c6cb753123194","dark":"https://mintcdn.com/floprouter/Yi7VGNv-2K0P3CpB/logo/dark.svg?fit=max\u0026auto=format\u0026n=Yi7VGNv-2K0P3CpB\u0026q=85\u0026s=6a1ced2dcb6162746518f7100032fa5f","href":"https://floprouter.com"},"favicon":"https://mintcdn.com/floprouter/Yi7VGNv-2K0P3CpB/favicon.svg?fit=max\u0026auto=format\u0026n=Yi7VGNv-2K0P3CpB\u0026q=85\u0026s=56c82523b26eaaf2309d85563d0d6fe5","api":{"params":{"expanded":"all"},"playground":{"display":"interactive","proxy":false},"examples":{"languages":["curl","javascript","python"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#f4f0e8","dark":"#12100c"}},"navbar":{"links":[{"href":"/for-agents#agent-prompt","label":"Agent prompt"},{"href":"https://floprouter.com/miners/","label":"Miners"},{"href":"https://floprouter.com/models/","label":"Models"},{"href":"https://floprouter.com/playground/","label":"Playground"},{"href":"https://floprouter.com/status/","label":"Status"}],"primary":{"type":"button","label":"Get an API key","href":"https://floprouter.com/account/"}},"footer":{"socials":{"x":"https://x.com/floprouter"},"links":[{"header":"Use it","items":[{"label":"Account and keys","href":"https://floprouter.com/account"},{"label":"Playground","href":"https://floprouter.com/playground"},{"label":"Agent skill","href":"https://floprouter.com/skill.md"}]},{"header":"Network","items":[{"label":"Miners","href":"https://floprouter.com/miners"},{"label":"Models","href":"https://floprouter.com/models"},{"label":"Status","href":"https://floprouter.com/status"}]}]},"search":{"prompt":"Search the docs, for example grant, 402, streaming"},"seo":{"metatags":{"og:site_name":"floprouter"}},"fonts":{"heading":{"family":"Bricolage Grotesque","weight":640,"source":"fonts/bricolage.woff2","format":"woff2"},"body":{"family":"Geist","source":"fonts/geist.woff2","format":"woff2"}},"errors":{"404":{"redirect":false,"title":"Nothing here","description":"This page does not exist. Start from the [overview](/)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"floprouter","hasAudioNarration":false,"actualSubdomain":"floprouter","customDomains":["docs.floprouter.com"],"gitSource":{"type":"github","owner":"floprouter","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b052bed7acd176e4dd46f76"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b06b786f577b43f21eb52eb","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Endpoints","count":31},{"language":"default","tag":"Docs","count":17},{"language":"default","tag":"Models","count":6},{"language":"default","tag":"Auth","count":6},{"language":"default","tag":"Directory","count":6},{"language":"default","tag":"SDKs and tools","count":5},{"language":"default","tag":"Payments","count":4},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Balance","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--fr-accent: #b83a0b;--fr-accent-soft: #f6e2d4;--fr-line: #ddd5c6;--fr-surface: #fbf9f4;--fr-surface-2: #f1ece3;--fr-ink: #16130e;--fr-muted: #5f574b}.dark{--fr-accent: #ff7a3d;--fr-accent-soft: #3a1f12;--fr-line: #2e2a23;--fr-surface: #1a1713;--fr-surface-2: #221e19;--fr-ink: #f2ede4;--fr-muted: #a69e90}@font-face{font-family:'Geist Mono';src:url('/fonts/geist-mono.woff2') format('woff2');font-weight:100 900;font-display:swap}code,pre,kbd{font-family:'Geist Mono', ui-monospace, Menlo, monospace}.fr-agent{display:grid;grid-template-columns:minmax(0, 1fr) auto;gap:10px 20px;align-items:center;margin:4px 0 24px;padding:16px 18px;border:1px solid color-mix(in srgb, var(--fr-accent) 35%, var(--fr-line));border-radius:10px;background:color-mix(in srgb, var(--fr-accent-soft) 45%, var(--fr-surface))}.fr-agent-title{margin:0;font-weight:600;color:var(--fr-ink)}.fr-agent-sub{margin:4px 0 0;font-size:14px;color:var(--fr-muted)}.fr-agent-actions{display:flex;gap:6px;flex-wrap:wrap}.fr-agent-btn,.fr-agent-ghost{height:36px;padding:0 14px;border-radius:6px;font-family:inherit;font-size:14px;font-weight:500;line-height:1;cursor:pointer}.fr-agent-btn{background:var(--fr-ink);color:var(--fr-surface);border:1px solid var(--fr-ink)}.fr-agent-ghost{background:transparent;color:var(--fr-ink);border:1px solid transparent}.fr-agent-ghost:hover{background:var(--fr-surface-2)}.fr-agent-btn:focus-visible,.fr-agent-ghost:focus-visible{outline:2px solid var(--fr-accent);outline-offset:2px}.fr-agent-prompt{grid-column:1 / -1;margin:0;white-space:pre-wrap;font-size:12.5px;line-height:1.6;background:var(--fr-surface-2);border:1px solid var(--fr-line);border-radius:6px;padding:10px 12px;color:var(--fr-ink)}@media (max-width: 640px){.fr-agent{grid-template-columns:minmax(0, 1fr)}}.fr-tiles{--gap: 8px;--cols: 6;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--gap);margin:8px 0 22px}.fr-tile{flex:0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));height:104px;display:grid;grid-template-rows:40px 2.5em;justify-items:center;align-content:center;row-gap:8px;padding:10px 6px;border:1px solid var(--fr-line);border-radius:12px;background:var(--fr-surface);color:var(--fr-ink);font-family:inherit;font-size:13px;font-weight:500;line-height:1.2;text-align:center;cursor:pointer;transition:border-color 0.12s, background-color 0.12s, box-shadow 0.12s}.fr-tile:hover{border-color:color-mix(in srgb, var(--fr-ink) 30%, var(--fr-line))}.fr-tile[aria-selected=\"true\"]{border-color:var(--fr-accent);box-shadow:0 0 0 1px var(--fr-accent);background:color-mix(in srgb, var(--fr-accent-soft) 60%, var(--fr-surface));font-weight:600}.fr-tile:focus-visible{outline:2px solid var(--fr-accent);outline-offset:2px}.fr-mark{--k: 1;position:relative;display:block;width:40px;height:40px;color:var(--fr-ink)}.fr-mark .fr-logo{position:absolute;left:50%;top:50%;width:calc(var(--s) * var(--k) * 1px);height:calc(var(--s) * var(--k) * 1px);transform:translate(-50%, -50%);object-fit:contain;max-width:none;margin:0}.fr-mono{display:block;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.fr-tile-name{display:flex;align-items:flex-start;justify-content:center;height:2.5em}@media (max-width: 640px){.fr-tiles{--cols: 4;--gap: 6px}.fr-tile{height:92px;padding:8px 3px;font-size:11.5px;grid-template-rows:34px 2.5em;row-gap:6px}.fr-mark{--k: 0.85;width:34px;height:34px}}.fr-client{display:none}.fr-client>:first-child,.fr-client>.fr-client-name+*{margin-top:0}.fr-client-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.fr-picker[data-sel=\"claude-code\"] .fr-client[data-client=\"claude-code\"],.fr-picker[data-sel=\"claude-desktop\"] .fr-client[data-client=\"claude-desktop\"],.fr-picker[data-sel=\"cursor\"] .fr-client[data-client=\"cursor\"],.fr-picker[data-sel=\"vscode\"] .fr-client[data-client=\"vscode\"],.fr-picker[data-sel=\"windsurf\"] .fr-client[data-client=\"windsurf\"],.fr-picker[data-sel=\"codex\"] .fr-client[data-client=\"codex\"],.fr-picker[data-sel=\"cline\"] .fr-client[data-client=\"cline\"],.fr-picker[data-sel=\"zed\"] .fr-client[data-client=\"zed\"],.fr-picker[data-sel=\"gemini-cli\"] .fr-client[data-client=\"gemini-cli\"],.fr-picker[data-sel=\"continue\"] .fr-client[data-client=\"continue\"],.fr-picker[data-sel=\"other\"] .fr-client[data-client=\"other\"],.fr-picker[data-sel=\"chat\"] .fr-client[data-client=\"chat\"]{display:block}.fr-install{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;margin:4px 0 8px;border-radius:6px;border:1px solid var(--fr-ink);background:var(--fr-ink);color:var(--fr-surface)!important;font-family:inherit;font-size:14px;font-weight:500;line-height:1;text-decoration:none!important}.fr-install:hover{opacity:0.9}.fr-ilogo{display:block;width:16px;height:16px;object-fit:contain;margin:0}.fr-client>span{display:block;margin:0 0 14px}.fr-client>span+span{margin-top:0}.fr-client>.fr-install{margin:0 0 16px}"}]}
{"page":{"pagePath":"api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries","slug":"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries","pageMetadata":{"title":"Router fees, prepaid balance, deposit address, recent ledger entries","description":"`fees` shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/balance","href":"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"fees\"\n }), \" shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Router fees, prepaid balance, deposit address, recent ledger entries","description":"`fees` shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/balance","href":"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getBalance","summary":"Router fees, prepaid balance, deposit address, recent ledger entries","tags":["Balance"],"security":["e1532242-4dae-4a22-aa00-85e1b6397390"],"responses":{"200":"fea62ff8-b350-4f7b-a4df-d3a59d87e2f2","401":"103a7e17-738a-4548-8668-d0a3549f82bb"},"description":"`fees` shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.","method":"get","type":"path","servers":["a85323fb-d8f1-49e3-a624-0473f4c2b1c4"],"path":"/v1/balance","baseUrlOptions":["https://api.floprouter.com"],"title":"Router fees, prepaid balance, deposit address, recent ledger entries","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"responses":{"fea62ff8-b350-4f7b-a4df-d3a59d87e2f2":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"balance","uniqueKey":"object","typeLabel":"any"},"address":{"type":"string","uniqueKey":"address","typeLabel":"string"},"currency":{"type":"string","uniqueKey":"currency","typeLabel":"string"},"network":{"type":"string","uniqueKey":"network","typeLabel":"string"},"balance":{"type":"string","uniqueKey":"balance","typeLabel":"string"},"held":{"type":"string","description":"Reserved for sessions in flight.","uniqueKey":"held","typeLabel":"string"},"available":{"type":"string","uniqueKey":"available","typeLabel":"string"},"deposit_address":{"oneOf":[{"type":"string","uniqueKey":"deposit_address.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"deposit_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"deposit_address","typeLabel":"string | null"},"fee_percent":{"type":"number","uniqueKey":"fee_percent","typeLabel":"number"},"min_router_fee":{"type":"string","description":"Smallest router fee per billed request in FLOP. The fee is the larger of fee_percent of the escrow or this.","uniqueKey":"min_router_fee","typeLabel":"string"},"deposit_note":{"type":"string","uniqueKey":"deposit_note","typeLabel":"string"},"recent":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"recent.items.[INDEX].id","typeLabel":"integer"},"kind":{"enum":["deposit","session_debit","refund","fee_debit","fee_accrued","fee_collected","fee_deposit_reserved","fee_deposit_paid","withdrawal","withdrawal_fee"],"type":"string","uniqueKey":"recent.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","description":"Signed decimal FLOP.","uniqueKey":"recent.items.[INDEX].amount","typeLabel":"string"},"session_id":{"oneOf":[{"type":"string","uniqueKey":"recent.items.[INDEX].session_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"recent.items.[INDEX].session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"recent.items.[INDEX].session_id","typeLabel":"string | null"},"channel_id":{"oneOf":[{"type":"string","uniqueKey":"recent.items.[INDEX].channel_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"recent.items.[INDEX].channel_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"recent.items.[INDEX].channel_id","typeLabel":"string | null"},"block":{"oneOf":[{"type":"integer","uniqueKey":"recent.items.[INDEX].block.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"recent.items.[INDEX].block.oneOf.1","typeLabel":"null"}],"uniqueKey":"recent.items.[INDEX].block","typeLabel":"integer | null"},"tx":{"oneOf":[{"type":"string","uniqueKey":"recent.items.[INDEX].tx.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"recent.items.[INDEX].tx.oneOf.1","typeLabel":"null"}],"uniqueKey":"recent.items.[INDEX].tx","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","uniqueKey":"recent.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"recent.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"recent.items.[INDEX].note","typeLabel":"string | null"},"at":{"type":"string","uniqueKey":"recent.items.[INDEX].at","typeLabel":"string"}},"uniqueKey":"recent.items.[INDEX]","typeLabel":"object"},"uniqueKey":"recent","typeLabel":"object[]"},"withdrawals":{"type":"object","properties":{"enabled":{"type":"boolean","uniqueKey":"withdrawals.enabled","typeLabel":"boolean"},"min":{"oneOf":[{"type":"string","uniqueKey":"withdrawals.min.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"withdrawals.min.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.min","typeLabel":"string | null"},"note":{"type":"string","uniqueKey":"withdrawals.note","typeLabel":"string"},"recent":{"type":"array","items":{"type":"object","properties":{"object":{"const":"withdrawal","uniqueKey":"withdrawals.recent.items.[INDEX].object","typeLabel":"any"},"id":{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].id","typeLabel":"string"},"to":{"type":"string","description":"Always the wallet that owns the API key.","uniqueKey":"withdrawals.recent.items.[INDEX].to","typeLabel":"string"},"status":{"enum":["pending","submitted","sent","failed","unknown"],"description":"pending: held, not yet signed; submitted: signed and sent to the network; sent: final; failed: nothing left the wallet; unknown: signed, outcome not yet seen (the hold stays until the chain shows it).","type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"requested":{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].requested","typeLabel":"string"},"sent":{"oneOf":[{"type":"string","description":"Requested amount minus the chain fee estimate.","uniqueKey":"withdrawals.recent.items.[INDEX].sent.oneOf.0","typeLabel":"string"},{"type":"null","description":"Requested amount minus the chain fee estimate.","uniqueKey":"withdrawals.recent.items.[INDEX].sent.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.recent.items.[INDEX].sent","typeLabel":"string | null"},"chain_fee":{"oneOf":[{"type":"string","description":"Fee actually paid (TransactionFeePaid).","uniqueKey":"withdrawals.recent.items.[INDEX].chain_fee.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fee actually paid (TransactionFeePaid).","uniqueKey":"withdrawals.recent.items.[INDEX].chain_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.recent.items.[INDEX].chain_fee","typeLabel":"string | null"},"tx":{"oneOf":[{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].tx.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"withdrawals.recent.items.[INDEX].tx.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.recent.items.[INDEX].tx","typeLabel":"string | null"},"block":{"oneOf":[{"type":"integer","uniqueKey":"withdrawals.recent.items.[INDEX].block.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"withdrawals.recent.items.[INDEX].block.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.recent.items.[INDEX].block","typeLabel":"integer | null"},"error":{"oneOf":[{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].error.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"withdrawals.recent.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"uniqueKey":"withdrawals.recent.items.[INDEX].error","typeLabel":"string | null"},"created_at":{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].created_at","typeLabel":"string"},"balance_after":{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].balance_after","typeLabel":"string"},"poll":{"type":"string","uniqueKey":"withdrawals.recent.items.[INDEX].poll","typeLabel":"string"}},"uniqueKey":"withdrawals.recent.items.[INDEX]","typeLabel":"object"},"uniqueKey":"withdrawals.recent","typeLabel":"object[]"}},"uniqueKey":"withdrawals","typeLabel":"object"},"finality":{"type":"object","properties":{"best_block":{"oneOf":[{"type":"integer","uniqueKey":"finality.best_block.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"finality.best_block.oneOf.1","typeLabel":"null"}],"uniqueKey":"finality.best_block","typeLabel":"integer | null"},"finalized_block":{"oneOf":[{"type":"integer","uniqueKey":"finality.finalized_block.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"finality.finalized_block.oneOf.1","typeLabel":"null"}],"uniqueKey":"finality.finalized_block","typeLabel":"integer | null"},"lag_blocks":{"oneOf":[{"type":"integer","uniqueKey":"finality.lag_blocks.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"finality.lag_blocks.oneOf.1","typeLabel":"null"}],"uniqueKey":"finality.lag_blocks","typeLabel":"integer | null"},"waiting":{"type":"boolean","description":"true while the lag is above api.maxFinalityLagBlocks","uniqueKey":"finality.waiting","typeLabel":"boolean"},"max_lag_blocks":{"type":"integer","uniqueKey":"finality.max_lag_blocks","typeLabel":"integer"},"note":{"type":"string","uniqueKey":"finality.note","typeLabel":"string"}},"uniqueKey":"finality","typeLabel":"object"},"fees":{"type":"object","description":"The wallet's router fees. Amounts are decimal FLOP strings; `accrued` and `collected` are cumulative.","properties":{"mode":{"enum":["grant_accrual","prepaid"],"description":"`grant_accrual`: the wallet has an active fee grant, fees accrue and the router collects them from the wallet. `prepaid`: fees are taken from the prepaid balance.","type":"string","uniqueKey":"fees.mode","typeLabel":"enum\u003cstring>"},"accrued":{"type":"string","description":"Fees earned by settled sessions, in total.","uniqueKey":"fees.accrued","typeLabel":"string"},"collected":{"type":"string","description":"Fees paid so far (collected through the fee grant or paid from a deposit).","uniqueKey":"fees.collected","typeLabel":"string"},"owed":{"type":"string","description":"accrued minus collected. At the router's limit (the `max_owed` in a 402 `fees_owed`) new requests are refused until the wallet signs the grant batch again or deposits.","uniqueKey":"fees.owed","typeLabel":"string"},"last_collection":{"oneOf":[{"type":"object","description":"The most recent collection from the wallet; null before the first.","properties":{"tx":{"type":"string","description":"Transaction hash of the transfer.","uniqueKey":"fees.last_collection.oneOf.0.tx","typeLabel":"string"},"block":{"type":"integer","uniqueKey":"fees.last_collection.oneOf.0.block","typeLabel":"integer"},"amount":{"type":"string","uniqueKey":"fees.last_collection.oneOf.0.amount","typeLabel":"string"}},"uniqueKey":"fees.last_collection.oneOf.0","typeLabel":"object"},{"type":"null","description":"The most recent collection from the wallet; null before the first.","properties":{"tx":{"type":"string","description":"Transaction hash of the transfer."},"block":{"type":"integer"},"amount":{"type":"string"}},"uniqueKey":"fees.last_collection.oneOf.1","typeLabel":"null"}],"uniqueKey":"fees.last_collection","typeLabel":"object | null"},"next_collection_at":{"oneOf":[{"type":"string","description":"Owed amount at which the router collects (also earlier when the fee grant is close to expiry). null in prepaid mode.","uniqueKey":"fees.next_collection_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Owed amount at which the router collects (also earlier when the fee grant is close to expiry). null in prepaid mode.","uniqueKey":"fees.next_collection_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"fees.next_collection_at","typeLabel":"string | null"}},"uniqueKey":"fees","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"object":"balance","address":"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty","currency":"FLOP","network":"testnet","fees":{"mode":"prepaid","accrued":"0","collected":"0","owed":"0","last_collection":null,"next_collection_at":null},"balance":"0.18","held":"0","available":"0.18","deposit_address":"5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL","fee_percent":5,"min_router_fee":"0.012","deposit_note":"Send a plain transfer (balances.transferKeepAlive or transferAllowDeath) from 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty to the deposit address. It is credited to the sending address once its block is finalized, usually within a minute.","recent":[{"id":28,"kind":"refund","amount":"0.000256","session_id":"drill-mwu3u9tx-da232c98","channel_id":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","block":4494308,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow returned on chain (ack_expired)","at":"2026-11-24T03:09:15.000Z"},{"id":26,"kind":"fee_debit","amount":"-0.012","session_id":"gen-example-0002","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":4494294,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"router fee, the 0.012 minimum (5% of escrow 0.000256 is less)","at":"2026-11-24T03:08:28.000Z"},{"id":24,"kind":"session_debit","amount":"-0.01","session_id":"gen-example-0002","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":null,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T03:05:43.000Z"},{"id":22,"kind":"session_debit","amount":"-0.01","session_id":"drill-mwu3u9tx-da232c98","channel_id":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","block":null,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T02:58:17.000Z"},{"id":16,"kind":"fee_debit","amount":"-0.012","session_id":"gen-example-0004","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":4493379,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"router fee, the 0.012 minimum (5% of escrow 0.000256 is less)","at":"2026-11-24T02:53:08.000Z"},{"id":12,"kind":"session_debit","amount":"-0.01","session_id":"gen-example-0004","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":null,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T02:51:34.000Z"}],"finality":{"best_block":4502990,"finalized_block":4502985,"lag_blocks":5,"waiting":false,"max_lag_blocks":30}},"examples":{"Example":{"title":"Example","value":{"object":"balance","address":"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty","currency":"FLOP","network":"testnet","fees":{"mode":"prepaid","accrued":"0","collected":"0","owed":"0","last_collection":null,"next_collection_at":null},"balance":"0.18","held":"0","available":"0.18","deposit_address":"5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL","fee_percent":5,"min_router_fee":"0.012","deposit_note":"Send a plain transfer (balances.transferKeepAlive or transferAllowDeath) from 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty to the deposit address. It is credited to the sending address once its block is finalized, usually within a minute.","recent":[{"id":28,"kind":"refund","amount":"0.000256","session_id":"drill-mwu3u9tx-da232c98","channel_id":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","block":4494308,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow returned on chain (ack_expired)","at":"2026-11-24T03:09:15.000Z"},{"id":26,"kind":"fee_debit","amount":"-0.012","session_id":"gen-example-0002","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":4494294,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"router fee, the 0.012 minimum (5% of escrow 0.000256 is less)","at":"2026-11-24T03:08:28.000Z"},{"id":24,"kind":"session_debit","amount":"-0.01","session_id":"gen-example-0002","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":null,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T03:05:43.000Z"},{"id":22,"kind":"session_debit","amount":"-0.01","session_id":"drill-mwu3u9tx-da232c98","channel_id":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","block":null,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T02:58:17.000Z"},{"id":16,"kind":"fee_debit","amount":"-0.012","session_id":"gen-example-0004","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":4493379,"tx":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","note":"router fee, the 0.012 minimum (5% of escrow 0.000256 is less)","at":"2026-11-24T02:53:08.000Z"},{"id":12,"kind":"session_debit","amount":"-0.01","session_id":"gen-example-0004","channel_id":"0x0000000000000000000000000000000000000000000000000000000000000000","block":null,"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","note":"escrow of the channel, paid on chain by the router wallet","at":"2026-11-24T02:51:34.000Z"}],"finality":{"best_block":4502990,"finalized_block":4502985,"lag_blocks":5,"waiting":false,"max_lag_blocks":30}}}},"exampleType":"examples"}},"exampleType":"examples"},"103a7e17-738a-4548-8668-d0a3549f82bb":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"type":"object","description":"`code` is the HTTP status; `metadata.reason` is floprouter's specific reason.","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","examples":[400,401,402,403,404,408,409,413,429,502,503],"isRequired":true,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"metadata":{"type":"object","properties":{"reason":{"type":"string","examples":["insufficient_balance","fees_owed","grant_expired","all_attempts_failed","no_provider_supports_parameters","model_not_found","rate_limited","withdrawal_in_progress","invalid_tools"],"uniqueKey":"error.metadata.reason","typeLabel":"string"},"session_id":{"type":"string","uniqueKey":"error.metadata.session_id","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"error.metadata","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":401,"message":"a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge","metadata":{"reason":"unauthorized"}}},"examples":{"Example":{"title":"Example","value":{"error":{"code":401,"message":"a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge","metadata":{"reason":"unauthorized"}}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"e1532242-4dae-4a22-aa00-85e1b6397390":{"bearer":{"type":"http","scheme":"bearer","description":"Wallet API key `fr_...` from `POST /v1/auth/keys`.","scopes":[],"schemeName":"bearer"}}},"servers":{"a85323fb-d8f1-49e3-a624-0473f4c2b1c4":{"url":"https://api.floprouter.com","description":"API used by this site"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Wallet API key `fr_...` from `POST /v1/auth/keys`.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Wallet API key `fr_...` from `POST /v1/auth/keys`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"openapi.json"},"subdomain":"floprouter","siteName":"floprouter","title":"Router fees, prepaid balance, deposit address, recent ledger entries - floprouter","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T10:25:15.273Z","originalFileLocation":"api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\">\u003cmeta data-mint-head name=\"application-name\" content=\"floprouter\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Router fees, prepaid balance, deposit address, recent ledger entries - floprouter\">\u003cmeta data-mint-head property=\"og:description\" content=\"fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"floprouter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://floprouter.mintlify.site/_mintlify/api/og/v2?division=Balance\u0026amp;title=Router+fees%2C+prepaid+balance%2C+deposit+address%2C+recent+ledger+entries\u0026amp;description=%60fees%60+shows+the+router+fees+accrued%2C+collected+and+owed.+The+prepaid+balance+is+optional+in+grant+mode+%28the+fee+grant+covers+the+router+fee%29%3B+it+is+needed+for+\u0026amp;theme=2aac0c20a049ca793e9fd0b0\u0026amp;signature=a23c5b2923d683b1406ccc681b66feb8b8397abc09b775d4c9b1bf1ca8be649c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Router fees, prepaid balance, deposit address, recent ledger entries - floprouter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://floprouter.mintlify.site/_mintlify/api/og/v2?division=Balance\u0026amp;title=Router+fees%2C+prepaid+balance%2C+deposit+address%2C+recent+ledger+entries\u0026amp;description=%60fees%60+shows+the+router+fees+accrued%2C+collected+and+owed.+The+prepaid+balance+is+optional+in+grant+mode+%28the+fee+grant+covers+the+router+fee%29%3B+it+is+needed+for+\u0026amp;theme=2aac0c20a049ca793e9fd0b0\u0026amp;signature=a23c5b2923d683b1406ccc681b66feb8b8397abc09b775d4c9b1bf1ca8be649c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/floprouter/53MsXgWl2hA5le3M/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"floprouter\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#b83a0b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.floprouter.com/#organization\",\"name\":\"floprouter\",\"url\":\"https://docs.floprouter.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/floprouter/Yi7VGNv-2K0P3CpB/logo/light.svg?fit=max\u0026auto=format\u0026n=Yi7VGNv-2K0P3CpB\u0026q=85\u0026s=c24dd25aa0bccfb35e5c6cb753123194\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.floprouter.com#website\",\"name\":\"floprouter\",\"url\":\"https://docs.floprouter.com\",\"publisher\":{\"@id\":\"https://docs.floprouter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries#webpage\",\"url\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries\",\"name\":\"Router fees, prepaid balance, deposit address, recent ledger entries\",\"description\":\"fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\",\"dateModified\":\"2026-11-25T10:25:15.273Z\",\"isPartOf\":{\"@id\":\"https://docs.floprouter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.floprouter.com/api-reference/inference/chat-completion-settled-on-chain\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Router fees, prepaid balance, deposit address, recent ledger entries\",\"item\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries#apireference\",\"headline\":\"Router fees, prepaid balance, deposit address, recent ledger entries\",\"name\":\"Router fees, prepaid balance, deposit address, recent ledger entries\",\"description\":\"fees shows the router fees accrued, collected and owed. The prepaid balance is optional in grant mode (the fee grant covers the router fee); it is needed for credit mode, or to prepay fees instead of using the fee grant.\",\"url\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries\",\"mainEntityOfPage\":{\"@id\":\"https://docs.floprouter.com/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries#webpage\"},\"dateModified\":\"2026-11-25T10:25:15.273Z\",\"publisher\":{\"@id\":\"https://docs.floprouter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.floprouter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"floprouter\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"floprouter\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries.md","siteName":"floprouter","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"Inference","pages":[{"title":"Chat completion, settled on chain","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/chat/completions","href":"/api-reference/inference/chat-completion-settled-on-chain"},{"title":"Generation stats for a session","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/generation","href":"/api-reference/inference/generation-stats-for-a-session"},{"title":"The calling wallet's sessions, newest first","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions","href":"/api-reference/inference/the-calling-wallets-sessions-newest-first"},{"title":"A session's status, cost and on-chain record","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{id}","href":"/api-reference/inference/a-sessions-status-cost-and-on-chain-record"}]},{"group":"Models","pages":[{"title":"Models","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models","href":"/api-reference/models/models"},{"title":"Number of models","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models/count","href":"/api-reference/models/number-of-models"},{"title":"One model by its id","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models/{author}/{slug}","href":"/api-reference/models/one-model-by-its-id"},{"title":"One model by its id (singular path)","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/model/{author}/{slug}","href":"/api-reference/models/one-model-by-its-id-singular-path"},{"title":"Miners serving a model (its endpoints)","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models/{author}/{slug}/endpoints","href":"/api-reference/models/miners-serving-a-model-its-endpoints"}]},{"group":"Directory","pages":[{"title":"Every registered miner with score, facts, models and endpoint status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/miners","href":"/api-reference/directory/every-registered-miner-with-score-facts-models-and-endpoint-status"},{"title":"One miner in detail","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/miners/{address}","href":"/api-reference/directory/one-miner-in-detail"},{"title":"List or change a miner's session URL (the miner only)","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/miners/{address}/endpoint","href":"/api-reference/directory/list-or-change-a-miners-session-url-the-miner-only"},{"title":"A challenge for the miner account to sign, to list a URL","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/miners/{address}/endpoint/challenge","href":"/api-reference/directory/a-challenge-for-the-miner-account-to-sign-to-list-a-url"},{"title":"Network totals for the website","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/stats","href":"/api-reference/directory/network-totals-for-the-website"},{"title":"Providers: a thin alias view of /v1/miners","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/providers","href":"/api-reference/directory/providers:-a-thin-alias-view-of-v1miners"}]},{"group":"Auth","pages":[{"title":"Get a challenge for a wallet to sign","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/auth/challenge","href":"/api-reference/auth/get-a-challenge-for-a-wallet-to-sign"},{"title":"List the calling wallet's keys","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/auth/keys","href":"/api-reference/auth/list-the-calling-wallets-keys"},{"title":"Exchange a signed challenge for an API key","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/auth/keys","href":"/api-reference/auth/exchange-a-signed-challenge-for-an-api-key"},{"title":"Revoke a key of the calling wallet","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/auth/keys/{id}","href":"/api-reference/auth/revoke-a-key-of-the-calling-wallet"},{"title":"Change a key's default payer mode","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/auth/keys/{id}","href":"/api-reference/auth/change-a-keys-default-payer-mode"},{"title":"The calling key: usage in FLOP and limits","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/key","href":"/api-reference/auth/the-calling-key:-usage-in-flop-and-limits"}]},{"group":"Grants","pages":[{"title":"The grant batch to sign for grant mode","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/grants/params","href":"/api-reference/grants/the-grant-batch-to-sign-for-grant-mode"},{"title":"Re-read the calling wallet's grant from the chain","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/grants/sync","href":"/api-reference/grants/re-read-the-calling-wallets-grant-from-the-chain"},{"title":"The calling wallet's grant state","description":"Every grant this wallet has made to the router, by `kind` (`compute` and `fee`): lifetime and daily room, expiry, and an estimate of sessions left. `fees` shows the router fees accrued, collected and owed. Grants expire after at most `max_session_duration_blocks` (10 days on testnet); sign a new batch before then (`GET /v1/grants/params`). A grant cannot be renewed by the router: the chain does not let a session call the session-key pallet.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/grants","href":"/api-reference/grants/the-calling-wallets-grant-state"}]},{"group":"Balance","pages":[{"title":"Router fees, prepaid balance, deposit address, recent ledger entries","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/balance","href":"/api-reference/balance/router-fees-prepaid-balance-deposit-address-recent-ledger-entries"},{"title":"Withdraw prepaid balance to the owning wallet","description":"Sends FLOP from the deposit wallet to the wallet that owns the API key, and nowhere else. The amount is held first, so it cannot race a session or another withdrawal (one withdrawal per wallet in flight). The chain fee is estimated and taken out of the amount sent; the ledger books `withdrawal` (what left) and `withdrawal_fee` (fee actually paid). It answers 202 once the transfer is signed and submitted; poll `GET /v1/balance/withdrawals/{id}`. A withdrawal whose outcome is unknown keeps its hold until the chain shows it. At most 10 withdrawals per wallet per hour.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/balance/withdraw","href":"/api-reference/balance/withdraw-prepaid-balance-to-the-owning-wallet"},{"title":"The calling wallet's withdrawals","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/balance/withdrawals","href":"/api-reference/balance/the-calling-wallets-withdrawals"},{"title":"State of one withdrawal","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/balance/withdrawals/{id}","href":"/api-reference/balance/state-of-one-withdrawal"}]},{"group":"Service","pages":[{"title":"Service state, network and how to reach the chain","deprecated":null,"version":null,"openapi":"/openapi.json get /health","href":"/api-reference/service/service-state-network-and-how-to-reach-the-chain"},{"title":"Server-sent events with the best and finalized block","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/blocks/stream","href":"/api-reference/service/server-sent-events-with-the-best-and-finalized-block"},{"title":"This document","deprecated":null,"version":null,"openapi":"/openapi.json get /openapi.json","href":"/api-reference/service/this-document"}]}]}]},{"tab":"SDKs and tools","pages":[{"title":"SDKs and tools","href":"/for-agents"}]},{"tab":"Miners and operators","pages":[{"title":"Miners and operators","href":"/miner-operators"}]}]},"basePath":"","title":"Router fees, prepaid balance, deposit address, recent ledger entries - floprouter","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}