{ "object": "grant_params", "owner": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", "delegate": "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "fee_delegate": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "fee_address": "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy", "network": "testnet", "genesis_hash": "0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800", "rpc": "wss://testnet.flop.network/", "rpc_urls": [ "wss://testnet.flop.network/" ], "explorer_url": "https://testnet.flopscan.io", "limits": { "max_session_duration_blocks": 864000, "max_sessions_per_delegate": 10, "max_sessions_per_owner": 10, "max_rotations_per_hour": 3, "epoch_blocks": 86400, "circuit_breaker": { "period_blocks": 60, "max_txs": 100, "max_spend": "250" }, "block_time_ms": 1000, "allowed_pallets": [ "ComputeChannel" ] }, "amounts": { "spending_cap": "5", "per_tx_limit": "0.5", "daily_cap": "2", "duration_blocks": 864000, "duration_hours": 240, "max_escrow_per_session": "0.5" }, "call": { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "5000000000000000000", "500000000000000000", "2000000000000000000", 864000, [ "ComputeChannel" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, "fee_call": { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "700000000000000000000", "73000000000000000", "280000000000000000000", 864000, [ "Balances" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, "calls": [ { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "5000000000000000000", "500000000000000000", "2000000000000000000", 864000, [ "ComputeChannel" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "700000000000000000000", "73000000000000000", "280000000000000000000", 864000, [ "Balances" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] } ], "renewal": false, "renewal_call": null, "call_data": "0x<scale-encoded-utility-batch-all-call>", "notes": [ "Sign this one batch with your wallet and call POST /v1/grants/sync.", "The compute grant lets the router open and fund ComputeChannel sessions from your wallet.", "The router uses the fee grant only to pay its own fees to the fee address, up to the fee cap. You can revoke it at any time or deposit instead.", "When adding a fee grant to an existing compute grant, the batch keeps the compute grant. For renewal, the batch revokes the grants being replaced." ]}
{
"error": {
"code": 400,
"message": "each message needs a role of system, developer, user or assistant (tool messages are not supported)",
"metadata": {
"reason": "invalid_message"
}
}
}
{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}
{
"error": {
"code": 429,
"message": "chat requests for this key: limit 20 per minute; retry in 41 s",
"metadata": {
"reason": "rate_limited"
}
}
}
Grants
The grant batch to sign for grant mode
The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key’s wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.
{ "object": "grant_params", "owner": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", "delegate": "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "fee_delegate": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "fee_address": "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy", "network": "testnet", "genesis_hash": "0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800", "rpc": "wss://testnet.flop.network/", "rpc_urls": [ "wss://testnet.flop.network/" ], "explorer_url": "https://testnet.flopscan.io", "limits": { "max_session_duration_blocks": 864000, "max_sessions_per_delegate": 10, "max_sessions_per_owner": 10, "max_rotations_per_hour": 3, "epoch_blocks": 86400, "circuit_breaker": { "period_blocks": 60, "max_txs": 100, "max_spend": "250" }, "block_time_ms": 1000, "allowed_pallets": [ "ComputeChannel" ] }, "amounts": { "spending_cap": "5", "per_tx_limit": "0.5", "daily_cap": "2", "duration_blocks": 864000, "duration_hours": 240, "max_escrow_per_session": "0.5" }, "call": { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "5000000000000000000", "500000000000000000", "2000000000000000000", 864000, [ "ComputeChannel" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, "fee_call": { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "700000000000000000000", "73000000000000000", "280000000000000000000", 864000, [ "Balances" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, "calls": [ { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw", "5000000000000000000", "500000000000000000", "2000000000000000000", 864000, [ "ComputeChannel" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] }, { "pallet": "flopSessionKeys", "method": "createSession", "args": [ "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y", "700000000000000000000", "73000000000000000", "280000000000000000000", 864000, [ "Balances" ] ], "args_names": [ "delegate", "spending_cap", "per_tx_limit", "daily_cap", "duration_blocks", "allowed_pallets" ] } ], "renewal": false, "renewal_call": null, "call_data": "0x<scale-encoded-utility-batch-all-call>", "notes": [ "Sign this one batch with your wallet and call POST /v1/grants/sync.", "The compute grant lets the router open and fund ComputeChannel sessions from your wallet.", "The router uses the fee grant only to pay its own fees to the fee address, up to the fee cap. You can revoke it at any time or deposit instead.", "When adding a fee grant to an existing compute grant, the batch keeps the compute grant. For renewal, the batch revokes the grants being replaced." ]}
{
"error": {
"code": 400,
"message": "each message needs a role of system, developer, user or assistant (tool messages are not supported)",
"metadata": {
"reason": "invalid_message"
}
}
}
{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}
{
"error": {
"code": 429,
"message": "chat requests for this key: limit 20 per minute; retry in 41 s",
"metadata": {
"reason": "rate_limited"
}
}
}
Authorizations
Authorization
string
header
required
Wallet API key fr_... from POST /v1/auth/keys.
Query Parameters
address
string
Wallet that will sign (when no key is sent).
Response
OK
object
any
owner
string
delegate
string
Router compute delegate to name in the compute grant. Kept per wallet.
network
string
genesis_hash
string
rpc
string
Public RPC address to connect to when signing this call (the first of rpc_urls).
rpc_urls
string[]
Every public RPC address of the chain.
explorer_url
string
Base URL of the chain explorer.
limits
object
Chain constants of the flopSessionKeys pallet. max_rotations_per_hour: grants a wallet may create per hour (3); more fails with flopSessionKeys.SessionRotationLimited. block_time_ms: milliseconds per block.
Hide child attributes
limits.max_session_duration_blocks
integer
limits.max_sessions_per_delegate
integer
limits.max_sessions_per_owner
integer
limits.max_rotations_per_hour
integer
limits.epoch_blocks
integer
limits.circuit_breaker
object
limits.block_time_ms
integer
limits.allowed_pallets
string[]
amounts
object
Suggested compute caps (decimal FLOP) and duration. The fee grant's caps are in fee_call.args.
call
object
The compute createSession call (kept for clients that build it themselves; sign call_data instead).
Hide child attributes
call.pallet
any
call.method
any
call.args
array
Raw units for amounts.
call.args_names
string[]
call_data
string
SCALE-encoded call (0x hex): sign and submit it as an extrinsic from the owner wallet. In grant fee-collection mode it is always utility.batchAll over calls, even for one call.
notes
string[]
renewal
boolean
true when the batch replaces existing grants (it starts with revokeSession calls, because the chain refuses a second grant to a delegate while one is active).
renewal_call
object | null
When renewal is true: {pallet: utility, method: batchAll, calls} (the same calls). Otherwise null.
Hide child attributes
renewal_call.pallet
string
renewal_call.method
string
renewal_call.calls
object[]
fee_delegate
string
Router fee delegate to name in the fee grant (only in grant fee-collection mode). Kept per wallet.
fee_address
string
Where the router's fee is paid to: the fee grant lets the router transfer its fee from your wallet to this address and nowhere else.
fee_call
object
The fee createSession call: allowed_pallets is ["Balances"]; the caps are raw units sized for the router's fee (5% of the escrow, at least min_router_fee) over the grant's life. Present in grant fee-collection mode.
Hide child attributes
fee_call.pallet
any
fee_call.method
any
fee_call.args
array
Raw units for amounts.
fee_call.args_names
string[]
calls
object[]
The batch body in order: revokeSession for each grant being replaced, then the compute createSession (omitted when the wallet keeps its current compute grant, so a wallet with a compute-only grant gets just the fee call), then the fee createSession. Present in grant fee-collection 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/grants/the-grant-batch-to-sign-for-grant-mode","slug":"/api-reference/grants/the-grant-batch-to-sign-for-grant-mode","pageMetadata":{"title":"The grant batch to sign for grant mode","description":"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of `min_router_fee`, from your wallet to `fee_address`, within the fee caps). `call_data` is the SCALE-encoded `utility.batchAll` over `calls`; sign and submit it, then call `POST /v1/grants/sync`. Either grant can be revoked at any time. With a key, for the key's wallet; without one, pass `address`. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (`TooManySessions`) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets `revokeSession` calls first (`renewal` is true). A wallet may create 3 grants per hour (`limits.max_rotations_per_hour`); a batch that would exceed it fails on chain with `flopSessionKeys.SessionRotationLimited`. A router without fee collection answers the older compute-only shape (no `fee_delegate`, `fee_address`, `fee_call` or `calls`; `call_data` is one `createSession` or a revoke-and-create `batchAll`) and takes its fee from the prepaid balance.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/grants/params","href":"/api-reference/grants/the-grant-batch-to-sign-for-grant-mode","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: [\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of \", _jsx(_components.code, {\n children: \"min_router_fee\"\n }), \", from your wallet to \", _jsx(_components.code, {\n children: \"fee_address\"\n }), \", within the fee caps). \", _jsx(_components.code, {\n children: \"call_data\"\n }), \" is the SCALE-encoded \", _jsx(_components.code, {\n children: \"utility.batchAll\"\n }), \" over \", _jsx(_components.code, {\n children: \"calls\"\n }), \"; sign and submit it, then call \", _jsx(_components.code, {\n children: \"POST /v1/grants/sync\"\n }), \". Either grant can be revoked at any time. With a key, for the key’s wallet; without one, pass \", _jsx(_components.code, {\n children: \"address\"\n }), \". Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (\", _jsx(_components.code, {\n children: \"TooManySessions\"\n }), \") and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets \", _jsx(_components.code, {\n children: \"revokeSession\"\n }), \" calls first (\", _jsx(_components.code, {\n children: \"renewal\"\n }), \" is true). A wallet may create 3 grants per hour (\", _jsx(_components.code, {\n children: \"limits.max_rotations_per_hour\"\n }), \"); a batch that would exceed it fails on chain with \", _jsx(_components.code, {\n children: \"flopSessionKeys.SessionRotationLimited\"\n }), \". A router without fee collection answers the older compute-only shape (no \", _jsx(_components.code, {\n children: \"fee_delegate\"\n }), \", \", _jsx(_components.code, {\n children: \"fee_address\"\n }), \", \", _jsx(_components.code, {\n children: \"fee_call\"\n }), \" or \", _jsx(_components.code, {\n children: \"calls\"\n }), \"; \", _jsx(_components.code, {\n children: \"call_data\"\n }), \" is one \", _jsx(_components.code, {\n children: \"createSession\"\n }), \" or a revoke-and-create \", _jsx(_components.code, {\n children: \"batchAll\"\n }), \") and takes its fee from the prepaid balance.\"]\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":"The grant batch to sign for grant mode","description":"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of `min_router_fee`, from your wallet to `fee_address`, within the fee caps). `call_data` is the SCALE-encoded `utility.batchAll` over `calls`; sign and submit it, then call `POST /v1/grants/sync`. Either grant can be revoked at any time. With a key, for the key's wallet; without one, pass `address`. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (`TooManySessions`) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets `revokeSession` calls first (`renewal` is true). A wallet may create 3 grants per hour (`limits.max_rotations_per_hour`); a batch that would exceed it fails on chain with `flopSessionKeys.SessionRotationLimited`. A router without fee collection answers the older compute-only shape (no `fee_delegate`, `fee_address`, `fee_call` or `calls`; `call_data` is one `createSession` or a revoke-and-create `batchAll`) and takes its fee from the prepaid balance.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/grants/params","href":"/api-reference/grants/the-grant-batch-to-sign-for-grant-mode","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getGrantParams","summary":"The grant batch to sign for grant mode","tags":["Grants"],"description":"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of `min_router_fee`, from your wallet to `fee_address`, within the fee caps). `call_data` is the SCALE-encoded `utility.batchAll` over `calls`; sign and submit it, then call `POST /v1/grants/sync`. Either grant can be revoked at any time. With a key, for the key's wallet; without one, pass `address`. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (`TooManySessions`) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets `revokeSession` calls first (`renewal` is true). A wallet may create 3 grants per hour (`limits.max_rotations_per_hour`); a batch that would exceed it fails on chain with `flopSessionKeys.SessionRotationLimited`. A router without fee collection answers the older compute-only shape (no `fee_delegate`, `fee_address`, `fee_call` or `calls`; `call_data` is one `createSession` or a revoke-and-create `batchAll`) and takes its fee from the prepaid balance.","security":["98a28a88-836b-4475-b191-7c2c7aadbbe5","6839659e-7f3c-4df7-81bd-750a347f1f35"],"parameters":["6c406d40-c862-4928-9769-98d242d7b98b"],"responses":{"200":"40cd48ea-ac1b-492a-aa7f-e189a66387e8","400":"bcd84403-55a2-4542-b762-88c2c69009a0","401":"d44a8691-12a0-4bee-80d7-7331933b5600","429":"73830249-b24a-407e-84d4-7f876bc08635"},"method":"get","type":"path","servers":["a85323fb-d8f1-49e3-a624-0473f4c2b1c4"],"path":"/v1/grants/params","baseUrlOptions":["https://api.floprouter.com"],"title":"The grant batch to sign for grant mode","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"6c406d40-c862-4928-9769-98d242d7b98b":{"name":"address","in":"query","schema":{"type":"string","description":"Wallet that will sign (when no key is sent).","uniqueKey":"","typeLabel":"string"},"description":"Wallet that will sign (when no key is sent)."}},"responses":{"40cd48ea-ac1b-492a-aa7f-e189a66387e8":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"grant_params","uniqueKey":"object","typeLabel":"any"},"owner":{"type":"string","uniqueKey":"owner","typeLabel":"string"},"delegate":{"type":"string","description":"Router compute delegate to name in the compute grant. Kept per wallet.","uniqueKey":"delegate","typeLabel":"string"},"network":{"type":"string","uniqueKey":"network","typeLabel":"string"},"genesis_hash":{"type":"string","uniqueKey":"genesis_hash","typeLabel":"string"},"rpc":{"type":"string","description":"Public RPC address to connect to when signing this call (the first of rpc_urls).","uniqueKey":"rpc","typeLabel":"string"},"rpc_urls":{"type":"array","items":{"type":"string","uniqueKey":"rpc_urls.items.[INDEX]","typeLabel":"string"},"description":"Every public RPC address of the chain.","uniqueKey":"rpc_urls","typeLabel":"string[]"},"explorer_url":{"type":"string","description":"Base URL of the chain explorer.","uniqueKey":"explorer_url","typeLabel":"string"},"limits":{"type":"object","description":"Chain constants of the flopSessionKeys pallet. `max_rotations_per_hour`: grants a wallet may create per hour (3); more fails with `flopSessionKeys.SessionRotationLimited`. `block_time_ms`: milliseconds per block.","properties":{"max_session_duration_blocks":{"type":"integer","uniqueKey":"limits.max_session_duration_blocks","typeLabel":"integer"},"max_sessions_per_delegate":{"type":"integer","uniqueKey":"limits.max_sessions_per_delegate","typeLabel":"integer"},"max_sessions_per_owner":{"type":"integer","uniqueKey":"limits.max_sessions_per_owner","typeLabel":"integer"},"max_rotations_per_hour":{"type":"integer","uniqueKey":"limits.max_rotations_per_hour","typeLabel":"integer"},"epoch_blocks":{"type":"integer","uniqueKey":"limits.epoch_blocks","typeLabel":"integer"},"circuit_breaker":{"type":"object","uniqueKey":"limits.circuit_breaker","typeLabel":"object"},"block_time_ms":{"type":"integer","uniqueKey":"limits.block_time_ms","typeLabel":"integer"},"allowed_pallets":{"type":"array","items":{"type":"string","uniqueKey":"limits.allowed_pallets.items.[INDEX]","typeLabel":"string"},"uniqueKey":"limits.allowed_pallets","typeLabel":"string[]"}},"uniqueKey":"limits","typeLabel":"object"},"amounts":{"type":"object","description":"Suggested compute caps (decimal FLOP) and duration. The fee grant's caps are in `fee_call.args`.","uniqueKey":"amounts","typeLabel":"object"},"call":{"type":"object","properties":{"pallet":{"const":"flopSessionKeys","uniqueKey":"call.pallet","typeLabel":"any"},"method":{"const":"createSession","uniqueKey":"call.method","typeLabel":"any"},"args":{"type":"array","description":"Raw units for amounts.","uniqueKey":"call.args","typeLabel":"array"},"args_names":{"type":"array","items":{"type":"string","uniqueKey":"call.args_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"call.args_names","typeLabel":"string[]"}},"description":"The compute `createSession` call (kept for clients that build it themselves; sign `call_data` instead).","uniqueKey":"call","typeLabel":"object"},"call_data":{"type":"string","description":"SCALE-encoded call (0x hex): sign and submit it as an extrinsic from the owner wallet. In grant fee-collection mode it is always `utility.batchAll` over `calls`, even for one call.","uniqueKey":"call_data","typeLabel":"string"},"notes":{"type":"array","items":{"type":"string","uniqueKey":"notes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"notes","typeLabel":"string[]"},"renewal":{"type":"boolean","description":"true when the batch replaces existing grants (it starts with `revokeSession` calls, because the chain refuses a second grant to a delegate while one is active).","uniqueKey":"renewal","typeLabel":"boolean"},"renewal_call":{"oneOf":[{"type":"object","description":"When renewal is true: {pallet: utility, method: batchAll, calls} (the same `calls`). Otherwise null.","properties":{"pallet":{"type":"string","uniqueKey":"renewal_call.oneOf.0.pallet","typeLabel":"string"},"method":{"type":"string","uniqueKey":"renewal_call.oneOf.0.method","typeLabel":"string"},"calls":{"type":"array","items":{"type":"object","uniqueKey":"renewal_call.oneOf.0.calls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"renewal_call.oneOf.0.calls","typeLabel":"object[]"}},"uniqueKey":"renewal_call.oneOf.0","typeLabel":"object"},{"type":"null","description":"When renewal is true: {pallet: utility, method: batchAll, calls} (the same `calls`). Otherwise null.","properties":{"pallet":{"type":"string"},"method":{"type":"string"},"calls":{"type":"array","items":{"type":"object"}}},"uniqueKey":"renewal_call.oneOf.1","typeLabel":"null"}],"uniqueKey":"renewal_call","typeLabel":"object | null"},"fee_delegate":{"type":"string","description":"Router fee delegate to name in the fee grant (only in grant fee-collection mode). Kept per wallet.","uniqueKey":"fee_delegate","typeLabel":"string"},"fee_address":{"type":"string","description":"Where the router's fee is paid to: the fee grant lets the router transfer its fee from your wallet to this address and nowhere else.","uniqueKey":"fee_address","typeLabel":"string"},"fee_call":{"type":"object","description":"The fee `createSession` call: allowed_pallets is [\"Balances\"]; the caps are raw units sized for the router's fee (5% of the escrow, at least `min_router_fee`) over the grant's life. Present in grant fee-collection mode.","properties":{"pallet":{"const":"flopSessionKeys","uniqueKey":"fee_call.pallet","typeLabel":"any"},"method":{"const":"createSession","uniqueKey":"fee_call.method","typeLabel":"any"},"args":{"type":"array","description":"Raw units for amounts.","uniqueKey":"fee_call.args","typeLabel":"array"},"args_names":{"type":"array","items":{"type":"string","uniqueKey":"fee_call.args_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"fee_call.args_names","typeLabel":"string[]"}},"uniqueKey":"fee_call","typeLabel":"object"},"calls":{"type":"array","items":{"type":"object","description":"One call of the grant batch. Amounts in `args` are raw units (18 decimals).","properties":{"pallet":{"type":"string","examples":["flopSessionKeys"],"uniqueKey":"calls.items.[INDEX].pallet","typeLabel":"string"},"method":{"enum":["createSession","revokeSession"],"type":"string","uniqueKey":"calls.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"args":{"type":"array","description":"createSession: delegate, spending_cap, per_tx_limit, daily_cap, duration_blocks, allowed_pallets. revokeSession: delegate.","uniqueKey":"calls.items.[INDEX].args","typeLabel":"array"},"args_names":{"type":"array","items":{"type":"string","uniqueKey":"calls.items.[INDEX].args_names.items.[INDEX]","typeLabel":"string"},"description":"Names of args (createSession only).","uniqueKey":"calls.items.[INDEX].args_names","typeLabel":"string[]"}},"uniqueKey":"calls.items.[INDEX]","typeLabel":"object"},"description":"The batch body in order: `revokeSession` for each grant being replaced, then the compute `createSession` (omitted when the wallet keeps its current compute grant, so a wallet with a compute-only grant gets just the fee call), then the fee `createSession`. Present in grant fee-collection mode.","uniqueKey":"calls","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"object":"grant_params","owner":"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty","delegate":"5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","fee_delegate":"5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","fee_address":"5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy","network":"testnet","genesis_hash":"0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800","rpc":"wss://testnet.flop.network/","rpc_urls":["wss://testnet.flop.network/"],"explorer_url":"https://testnet.flopscan.io","limits":{"max_session_duration_blocks":864000,"max_sessions_per_delegate":10,"max_sessions_per_owner":10,"max_rotations_per_hour":3,"epoch_blocks":86400,"circuit_breaker":{"period_blocks":60,"max_txs":100,"max_spend":"250"},"block_time_ms":1000,"allowed_pallets":["ComputeChannel"]},"amounts":{"spending_cap":"5","per_tx_limit":"0.5","daily_cap":"2","duration_blocks":864000,"duration_hours":240,"max_escrow_per_session":"0.5"},"call":{"pallet":"flopSessionKeys","method":"createSession","args":["5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","5000000000000000000","500000000000000000","2000000000000000000",864000,["ComputeChannel"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},"fee_call":{"pallet":"flopSessionKeys","method":"createSession","args":["5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","700000000000000000000","73000000000000000","280000000000000000000",864000,["Balances"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},"calls":[{"pallet":"flopSessionKeys","method":"createSession","args":["5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","5000000000000000000","500000000000000000","2000000000000000000",864000,["ComputeChannel"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},{"pallet":"flopSessionKeys","method":"createSession","args":["5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","700000000000000000000","73000000000000000","280000000000000000000",864000,["Balances"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]}],"renewal":false,"renewal_call":null,"call_data":"0x\u003cscale-encoded-utility-batch-all-call>","notes":["Sign this one batch with your wallet and call POST /v1/grants/sync.","The compute grant lets the router open and fund ComputeChannel sessions from your wallet.","The router uses the fee grant only to pay its own fees to the fee address, up to the fee cap. You can revoke it at any time or deposit instead.","When adding a fee grant to an existing compute grant, the batch keeps the compute grant. For renewal, the batch revokes the grants being replaced."]},"examples":{"Example":{"title":"Example","value":{"object":"grant_params","owner":"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty","delegate":"5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","fee_delegate":"5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","fee_address":"5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy","network":"testnet","genesis_hash":"0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800","rpc":"wss://testnet.flop.network/","rpc_urls":["wss://testnet.flop.network/"],"explorer_url":"https://testnet.flopscan.io","limits":{"max_session_duration_blocks":864000,"max_sessions_per_delegate":10,"max_sessions_per_owner":10,"max_rotations_per_hour":3,"epoch_blocks":86400,"circuit_breaker":{"period_blocks":60,"max_txs":100,"max_spend":"250"},"block_time_ms":1000,"allowed_pallets":["ComputeChannel"]},"amounts":{"spending_cap":"5","per_tx_limit":"0.5","daily_cap":"2","duration_blocks":864000,"duration_hours":240,"max_escrow_per_session":"0.5"},"call":{"pallet":"flopSessionKeys","method":"createSession","args":["5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","5000000000000000000","500000000000000000","2000000000000000000",864000,["ComputeChannel"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},"fee_call":{"pallet":"flopSessionKeys","method":"createSession","args":["5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","700000000000000000000","73000000000000000","280000000000000000000",864000,["Balances"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},"calls":[{"pallet":"flopSessionKeys","method":"createSession","args":["5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw","5000000000000000000","500000000000000000","2000000000000000000",864000,["ComputeChannel"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]},{"pallet":"flopSessionKeys","method":"createSession","args":["5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y","700000000000000000000","73000000000000000","280000000000000000000",864000,["Balances"]],"args_names":["delegate","spending_cap","per_tx_limit","daily_cap","duration_blocks","allowed_pallets"]}],"renewal":false,"renewal_call":null,"call_data":"0x\u003cscale-encoded-utility-batch-all-call>","notes":["Sign this one batch with your wallet and call POST /v1/grants/sync.","The compute grant lets the router open and fund ComputeChannel sessions from your wallet.","The router uses the fee grant only to pay its own fees to the fee address, up to the fee cap. You can revoke it at any time or deposit instead.","When adding a fee grant to an existing compute grant, the batch keeps the compute grant. For renewal, the batch revokes the grants being replaced."]}}},"exampleType":"examples"}},"exampleType":"examples"},"bcd84403-55a2-4542-b762-88c2c69009a0":{"description":"Invalid request","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":400,"message":"each message needs a role of system, developer, user or assistant (tool messages are not supported)","metadata":{"reason":"invalid_message"}}},"examples":{"Example":{"title":"Example","value":{"error":{"code":400,"message":"each message needs a role of system, developer, user or assistant (tool messages are not supported)","metadata":{"reason":"invalid_message"}}}}},"exampleType":"examples"}},"exampleType":"examples"},"d44a8691-12a0-4bee-80d7-7331933b5600":{"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"},"73830249-b24a-407e-84d4-7f876bc08635":{"description":"Rate limit, concurrency cap, grant daily cap or demo budget","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":429,"message":"chat requests for this key: limit 20 per minute; retry in 41 s","metadata":{"reason":"rate_limited"}}},"examples":{"Example":{"title":"Example","value":{"error":{"code":429,"message":"chat requests for this key: limit 20 per minute; retry in 41 s","metadata":{"reason":"rate_limited"}}}}},"exampleType":"examples"}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}},"exampleType":"examples"}},"security":{"98a28a88-836b-4475-b191-7c2c7aadbbe5":{"bearer":{"type":"http","scheme":"bearer","description":"Wallet API key `fr_...` from `POST /v1/auth/keys`.","scopes":[],"schemeName":"bearer"}},"6839659e-7f3c-4df7-81bd-750a347f1f35":{}},"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":"The grant batch to sign for grant mode - floprouter","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T10:25:15.190Z","originalFileLocation":"api-reference/grants/the-grant-batch-to-sign-for-grant-mode.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=\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key\u0026#x27;s wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.\">\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=\"The grant batch to sign for grant mode - floprouter\">\u003cmeta data-mint-head property=\"og:description\" content=\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key\u0026#x27;s wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"floprouter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode\">\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=Grants\u0026amp;title=The+grant+batch+to+sign+for+grant+mode\u0026amp;description=The+one+batch+a+wallet+signs+to+use+the+router+without+a+deposit%3A+a+compute+grant+%28the+router+opens+ComputeChannel+sessions+from+your+wallet+within+the+caps%29+an\u0026amp;theme=2aac0c20a049ca793e9fd0b0\u0026amp;signature=047dd250658ae0ad2f65b9abe8b870f35d3c7adfe1c6904685324d947536c578\">\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=\"The grant batch to sign for grant mode - floprouter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key\u0026#x27;s wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://floprouter.mintlify.site/_mintlify/api/og/v2?division=Grants\u0026amp;title=The+grant+batch+to+sign+for+grant+mode\u0026amp;description=The+one+batch+a+wallet+signs+to+use+the+router+without+a+deposit%3A+a+compute+grant+%28the+router+opens+ComputeChannel+sessions+from+your+wallet+within+the+caps%29+an\u0026amp;theme=2aac0c20a049ca793e9fd0b0\u0026amp;signature=047dd250658ae0ad2f65b9abe8b870f35d3c7adfe1c6904685324d947536c578\">\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/grants/the-grant-batch-to-sign-for-grant-mode\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/grants/the-grant-batch-to-sign-for-grant-mode.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/grants/the-grant-batch-to-sign-for-grant-mode#webpage\",\"url\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode\",\"name\":\"The grant batch to sign for grant mode\",\"description\":\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key's wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.\",\"dateModified\":\"2026-11-25T10:25:15.190Z\",\"isPartOf\":{\"@id\":\"https://docs.floprouter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode#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\":\"The grant batch to sign for grant mode\",\"item\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode#apireference\",\"headline\":\"The grant batch to sign for grant mode\",\"name\":\"The grant batch to sign for grant mode\",\"description\":\"The one batch a wallet signs to use the router without a deposit: a compute grant (the router opens ComputeChannel sessions from your wallet within the caps) and a fee grant (the router collects its fee, 5% of the escrow with a minimum of min_router_fee, from your wallet to fee_address, within the fee caps). call_data is the SCALE-encoded utility.batchAll over calls; sign and submit it, then call POST /v1/grants/sync. Either grant can be revoked at any time. With a key, for the key's wallet; without one, pass address. Read-only: nothing is reserved. The delegates shown are the ones this wallet already granted, else the lowest router delegates with a free slot on chain; if two wallets grant a last slot at once, the chain refuses the second grant (TooManySessions) and asking again shows the next delegate. A wallet with an active compute grant and no fee grant gets a batch with only the fee call, and keeps its compute grant. A wallet replacing grants gets revokeSession calls first (renewal is true). A wallet may create 3 grants per hour (limits.max_rotations_per_hour); a batch that would exceed it fails on chain with flopSessionKeys.SessionRotationLimited. A router without fee collection answers the older compute-only shape (no fee_delegate, fee_address, fee_call or calls; call_data is one createSession or a revoke-and-create batchAll) and takes its fee from the prepaid balance.\",\"url\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode\",\"mainEntityOfPage\":{\"@id\":\"https://docs.floprouter.com/api-reference/grants/the-grant-batch-to-sign-for-grant-mode#webpage\"},\"dateModified\":\"2026-11-25T10:25:15.190Z\",\"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/grants/the-grant-batch-to-sign-for-grant-mode.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","description":"`limit` is null: spending is bounded by the wallet's grants (`GET /v1/grants`) in grant mode, and by the prepaid balance (`GET /v1/balance`) in credit mode. Usage counts sessions paid through this key (UTC day, week from Monday, month).","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","description":"Reads the wallet's grants from finalized chain state (call it after signing the batch) and returns them with the `fees` object.","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","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","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":"The grant batch to sign for grant mode - 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"]}