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

All guides: integration guides · methods and limits · docs.