crypto

Live EVM gas oracle. Returns latest block baseFeePerGas +...

Live EVM gas oracle. Returns latest block baseFeePerGas + slow/standard/fast tiers derived from priority-fee percentiles (p25/p50/p75) over the trailing 4 blocks, plus a 21,000-gas transfer cost estimate in the chain native unit. Chains: base, ethereum, polygon, arbitrum, optimism. Real-time post-training data, ~5s freshness.

get/api/crypto/gas-oracle

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/crypto/gas-oracle
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

chain'base' | 'ethereum' | 'polygon' | 'arbitrum' | 'optimism' required

EVM chain to query: base | ethereum | polygon | arbitrum | optimism.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.