Logo
New RPC users get 35% off their first monthView the offer
Avalanche logo

Avalanche RPC Endpoint and API

Connect EVM applications to C-Chain; use the separate P-Chain API for validator and staking data.

Ava Labs

Use OnFinality's Avalanche C-Chain RPC at https://avalanche.api.onfinality.io/public/ext/bc/C/rpc for EVM applications on chain ID 43114. Validator and staking queries use a separate P-Chain endpoint.

Chain ID43114
CurrencyAVAX
Sign up for a Free Plan to unlock up to 40 req/sec and API Usage and Performance Insights. Get Started

Public endpoint rate limit: 5 req/sec

Quick Start
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}' 'https://avalanche.api.onfinality.io/public/ext/bc/C/rpc'
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}' 'https://avalanche.api.onfinality.io/public/ext/bc/C/rpc'
HTTPs
https://avalanche.api.onfinality.io/public/ext/bc/C/rpc
https://avalanche.api.onfinality.io/public/ext/bc/C/rpc

Go to Growth Plan

  • High Performance
  • Powerful RPC Analytics
  • Up to 500 rps
  • No daily response limit
  • Priority Support
  • Decentralized Servers
Get Started

Avalanche endpoint details

APIHTTPS endpointFirst method to check
C-Chain EVM RPChttps://avalanche.api.onfinality.io/public/ext/bc/C/rpceth_chainId, then eth_blockNumber
P-Chain APIhttps://avalanche.api.onfinality.io/public/ext/bc/Pplatform.getHeight

C-Chain mainnet uses chain ID 43114 (0xa86a) and AVAX for gas. The P-Chain URL is not an EVM wallet RPC URL; do not use it for eth_* calls or wallet network configuration.

Avalanche C-Chain RPC and P-Chain API

Check the C-Chain connection

The quick-start examples above use eth_blockNumber on C-Chain. Run eth_chainId against the same URL and confirm 0xa86a before querying contracts or submitting signed transactions.

C-Chain chain ID and block reads were verified on October 21, 2026. Endpoint availability and block height change over time.

Create an authenticated Avalanche endpoint

Create an OnFinality account, select Avalanche and copy the endpoint for the chain your application uses. Replace the anonymous public URL with your authenticated URL and keep its chain path intact. Review RPC plans for request limits and usage analytics.

Test the exact historical queries or trace methods your workload needs on your selected plan. The public connection details here describe HTTPS access; a P-Chain HTTPS address is not a WebSocket subscription URL.

Choose the right API for your workload

  • EVM wallets and dApps: C-Chain for eth_call, balances, signed transactions and receipts.
  • Validator and staking dashboards: P-Chain for platform.* methods.
  • Analytics: confirm method coverage and historical range before scheduling large backfills.

Refer to the Avalanche developer documentation for C-Chain method semantics, and the Avalanche RPC guide for provider selection.

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started