Docs · guide · any
Switching from another provider with FlexYield
Two edits: the URL and the auth header. What changes on the bill: published weights instead of compute units, no overage, a measured status page.
Install
no new dependency — keep your client library
Connect and call
# 1 · the endpoint: one URL per chain, same JSON-RPC
POST https://flexyield.io/rpc/eth_mainnet # eth_mainnet · base_mainnet · arbitrum_one · optimism_mainnet · polygon_pos · solana_mainnet
Authorization: Bearer fy_your_api_key
# 2 · the same call as before
{"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"fromBlock":"0x10","toBlock":"0x40"}]}
# 3 · what the response tells you that the old one did not
X-Quota-Remaining: 14999998 # units left this month (standard 1 · heavy 2 · data 10 · cache hit 0)
X-FlexYield-Cache: miss # identical reads inside the TTL cost 0 units
Replace fy_your_api_key with a key from your dashboard (free tier at registration). Chain slugs: eth_mainnet base_mainnet arbitrum_one optimism_mainnet polygon_pos solana_mainnet — each has its own measured page.
Notes
- Units, not compute units: eth_getLogs and traces count 2, everything else 1, cache hits 0 — the table is on /pricing and in OpenAPI x-pricing.
- Limits: eth_getLogs ranges beyond the published window are refused with the range in the body, never silently truncated; every refusal is a doorway (-32005 rate window, -32007 monthly units, -32013 x402).
- No overage, ever: at the quota you buy a pack, upgrade, or pay per call — nothing bills without a switch.
- Keys per agent with budgets, statements per key (/api/statements), tickets with the failing call attached — the reasons to bring the fleet, not only the endpoint.
- Measured, not promised: /status carries per-chain uptime and p50/p95 from continuous probes; /reliability has the weekly archive (CC BY 4.0).
All guides: integration guides · methods and limits · docs.