Chainbase meters paid API usage with credits. Every successful request to a metered API consumes a fixed number of credits, and your monthly plan grants a credit allowance that resets on a regular cycle.Documentation Index
Fetch the complete documentation index at: https://docs.chainbase.com/llms.txt
Use this file to discover all available pages before exploring further.
Which APIs consume credits
| Product | How it’s metered |
|---|---|
| Web3 API | Per request, varying by method. See Credit Cost. |
| SQL API | Flat 100 credits per query execution. |
Plans & monthly allowance
| Plan | Monthly credits | Billing cycle |
|---|---|---|
| Free | 200,000 | Calendar month — resets on the 1st of each month (UTC). |
| Developer | 10,000,000 | Anchored to your subscription day — resets on the same day-of-month each cycle. If your anchor day exceeds the days in a given month (e.g. day 31 in February), the cycle ends on that month’s last day. |
| Enterprise | Custom | Custom billing cycle, agreed in your contract. Contact sales for details. |
Cost example
A workload running 5,000 native balance lookups, 1,000 NFT metadata calls, and 100 SQL queries per day:| Calls / day | Method | Unit cost | Daily credits |
|---|---|---|---|
| 5,000 | Get Native Token Balance | 1 | 5,000 |
| 1,000 | Get NFT Metadata | 1 | 1,000 |
| 100 | SQL Query Execution | 100 | 10,000 |
| Total | 16,000 / day ≈ 480,000 / month |
Extra Credits Usage
When your monthly plan allowance is fully consumed, requests can continue to be served by extra credits purchased on top of your plan. Extra credits give you a one-off, non-expiring buffer for traffic spikes without forcing a plan upgrade.How they’re priced
The base rate is $1 = 100,000 credits, with volume bonuses applied automatically at checkout:| Single purchase amount | Bonus | Effective credits |
|---|---|---|
| 49 | — | 100,000 / $ |
| 249 | +5% | 105,000 / $ |
| 999 | +10% | 110,000 / $ |
| 10,000 | +20% | 120,000 / $ |
How they’re consumed
- Every billable request is charged to your plan allowance first.
- Once the plan allowance for the current cycle is exhausted, additional requests draw from your extra credit balance — provided extra credit consumption is enabled for your account.
- If extra credit consumption is disabled, requests are rejected after the plan allowance is used up, even if you have unused extra credits. This lets you hard-cap your monthly spend.
- Extra credits do not expire and are not reset when the plan cycle resets. Multiple purchases stack into a single balance.
- Unused plan allowance never converts into extra credits.
Monitoring usage
Track your live credit consumption, current cycle window, and remaining balance in the console: console.chainbase.com/settings/billing?tab=credit The dashboard breaks usage down by product (Web3 API, SQL API) and by day, so you can identify which methods drive your spend.How a request is charged
- The gateway authenticates the request and looks up the method’s credit cost.
- Web3 API — credits are recorded only on a successful response. Failed requests (4xx/5xx returned by Chainbase) are not charged.
- SQL API — credits are deducted immediately on submission, as soon as the query is accepted for execution. The 100-credit cost is charged regardless of whether the query ultimately succeeds, fails at runtime, or is cancelled, because the underlying compute resources are committed at submission time.
- When your plan allowance is exhausted, requests fall back to extra credits (if enabled). Without extra credits — or once the extra credit balance is also depleted — further requests are rejected with HTTP 429 Too Many Requests until the cycle resets or additional extra credits are purchased.
Rate limits
The monthly credit allowance governs total volume. Independently, Web3 API traffic is also subject to a per-second rate limit measured in credits per second. During the current rollout period, both controls may apply to your Web3 API traffic and are evaluated independently — exceeding either one will result in an HTTP 429 response.| Plan | Web3 API per-second rate limit |
|---|---|
| Free | 3 credits / second |
| Developer | 30 credits / second |
| Enterprise | Custom |
FAQ
Do all my API keys share the same monthly credit quota?
Do all my API keys share the same monthly credit quota?
My request timed out / failed with a network error. Was I charged?
My request timed out / failed with a network error. Was I charged?
Web3 API charges only on a successful response. Network timeouts and 4xx/5xx responses returned by Chainbase are not charged. If your client retries the request, each retry that reaches Chainbase and succeeds is billed independently.SQL API charges at submission. Once a query has been accepted by the gateway, the 100 credits are final — including for client-side timeouts that result in a retry, since each accepted submission is billed.
Are batch endpoints (returning many records) charged per record?
Are batch endpoints (returning many records) charged per record?
No. Each Web3 API call is one request and consumes the listed credits for that method, regardless of how many records the response contains.
Are paginated calls charged per page?
Are paginated calls charged per page?
Yes. Each page request is a separate billable call.
What HTTP response do I get when I'm rate-limited?
What HTTP response do I get when I'm rate-limited?
Both limit types return HTTP 429 Too Many Requests:
- Monthly credits exhausted — your plan allowance (and any extra credits, if enabled) is depleted for the current cycle.
- Per-second credit limit exceeded (Web3 API only) — momentary Web3 API burst exceeds your plan’s per-second credit limit (3 on Free, 30 on Developer).
What happens to my credit balance when I upgrade or downgrade my plan?
What happens to my credit balance when I upgrade or downgrade my plan?
Your current cycle window and the new plan’s allowance take effect according to the rules in the Plans & monthly allowance section. The console always shows your live cycle window and remaining balance — refer to it after any plan change.
Can I disable extra credits to hard-cap my spend?
Can I disable extra credits to hard-cap my spend?
Yes. Toggle off extra credit consumption in the console. With it off, requests are rejected with HTTP 429 once your plan allowance is used up, even if you have unused extra credits.