Skip to main content

Enable API request forwarding

For Avalanche (C-Chain) JSON-RPC methods, you can request failover protection by adding the failover header to your API request using cURL, Web3.js, Ethers.js, or any other language of your choice.

For more information about this feature, including our partner and their privacy information, see Failover protection.


Avalanche (C-Chain) failover support is available on Mainnet only.


In the code tabs, the eth_blockNumber method is used as an example.

curl \
-H "Enable-Failover: true" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}'