Request rate
One budget per API key covers every endpoint on both networks, so a key used for mainnet and testnet spends the same budget. A request without a valid key is counted against its client IP. The service index,/health, /health/deep and /health/user-path are not limited.
Every limited response reports the budget in RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset, and a rejected request is 429 rate_limited with Retry-After. The older X-RateLimit-* names carry the same values and are deprecated; see Compatibility and deprecation. The API reference describes the full behavior, including what counts against the budget.
Keys and sessions
A wallet holds at most the number of active keys above. Creating one more answers409 key_limit_reached: revoke a key first.
Signing in to the API keys page signs a one-time challenge, which must be answered within its lifetime, and gives a session that manages keys for the session lifetime above. The session token is not an API key and calls nothing else. An API key itself does not expire; revoke or rotate it on the same page.
Bodies and batches
A JSON body over the limit is refused with413 payload_too_large before it reaches a route. A close never puts more operations in one transaction than the limit above: an account with more to remove is closed over several transactions, and remaining.requiresAnotherCall says when another round is needed. close/batch-plan refuses more addresses than its limit with 400 too_many_addresses, and close/delivered refuses more hashes than its limit with 400 invalid_tx_hash.
Sponsored fees
Where sponsored fees are available (see Networks), the sponsor pays at most a fixed fee per transaction and stays within a daily budget per network, per source account, per API key and in total. A spent budget answers429 sponsorship_budget_exhausted until the next UTC day. The values are in apps/api/src/config/constants.ts, and the rule is invariant INV-39 in the invariant register.