Docs · method · EVM

eth_chainId

Facts for eth_chainId
Units per call1 (standard)
Cachestatic — 1 week, a hit costs 0 units
Rule1 unit on a miss; per-chain constant, cached a week.
ChainsEthereum Mainnet · Base Mainnet · Arbitrum One · OP Mainnet · Polygon PoS
Specificationhttps://ethereum.github.io/execution-apis/api-documentation/

Example

curl -s https://flexyield.io/rpc/eth_mainnet \
  -H "Authorization: Bearer $FLEXYIELD_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Questions

Is eth_chainId cached?

Yes — a per-chain constant, cached 1 week; hits cost 0 units.

All methods: methods and limits · docs · AI agents: the same call is the rpc_call MCP tool.