Why doesn't my AVAX endpoint work?

Last updated: April 4, 2025

The Avalanche Chain is more than an EVM-compatible ecosystem as it has different chains built-in. This means that you'll need to specify the chain you want to be accessing.

 

Chain Name

URI

Platform Chain (P-Chain)

/ext/bc/P

Contract Chain (C-Chain) HTTPS

/ext/bc/C/rpc

Contract Chain (C-Chain) WSS

/ext/bc/C/ws

Exchange Chain (X-Chain)

/ext/bc/X

 

If you would like to call EVM methods then you'll need to add the C-Chain URI at the end of your endpoint URL like so https://{your-node-name}.quiknode.pro/{your-token}/ext/bc/C/rpc

 

Here's a cURL example

curl -X POST \
'RPC_URL_HERE' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'