Oracles API
Retrieve a list of supported oracles by chain and their associated metadata.
The Blocknative Gas Oracles API provides metadata on supported chains, including their chain ID, label, architecture, RPC url, block explorer url and oracle addresses keyed by version. This allows developers to dynamically identify which networks have live supported gas estimation oracles.
Authentication
A valid Blocknative API key is OPTIONAL in the Authorization
Header of every request. Request an API key here.
A free API key is recommended for more generous rate limits and future features.
API Endpoint
GET
https://api.blocknative.com/oracles
Returns a list of supported gas oracles per chain along with their chain ID, label, architecture (e.g., evm
), RPC url, block explorer url and oracle addresses keyed by version (e.g. "2":"0x1c51B22954af03FE11183aaDF43F6415907a9287"
). This allows users to identify networks that have supported oracles where Blocknative provides onchain gas price estimation. The list and available fields are subject to change as new chains or parameters are added or updated.
Rate Limits
Each endpoint is limited to provide updated results once per second for paid tier API keys, or every 5 seconds for free tier API keys. Polling faster than these rates may deliver stale data.
Example Request
Headers
Authorization
String
OPTIONAL
if used, must contain a valid apikey
Response Codes
200
Success
401
API key invalid or not provided
429
Rate limit exceeded. Refer to headers for retry
Example Response
Response Fields
arch
String
The blockchain architecture (e.g., "evm"
).
chainId
Integer
The unique identifier for the blockchain (e.g., 1
for Ethereum).
label
String
The human-readable name of the blockchain (e.g., "Polygon zkEVM"
).
icon
String
URL to the blockchain's icon.
system
String
The human-readable name of the ecosystem, (e.g. "ethereum"
or "bitcoin"
)
network
String
addressByVersion
Object<String, String>
An objects with the inner keys representing the contract version of the oracle and the value of given key being the gas oracle address (e.g. <oracleVersion> : <contractAddress>
|| "2": "0x152bB09cE15f1149dBE46EB9E4D4e1B572513453"
rpcUrl
String
A public RPC Url for the given chain (e.g. "https://optimism.llamarpc.com"
)
blockExplorerUrl
String
A public Block Explorer Url for the given chain (e.g. "https://optimistic.etherscan.io/"
)
Notes
The list of supported blockchains and available features may change as new networks are integrated.
Last updated
Was this helpful?