Logo
新用户订阅 RPC,首月享 6.5 折优惠查看优惠
Avalanche logo

Avalanche RPC 端点与 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.

链 ID43114
货币AVAX
注册免费计划,可将速率提升至 40 req/s,并获得 API 使用量与性能洞察。 立即开始

公共接口速率限制为 5 req/sec

快速开始
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

升级 Growth Plan

  • 高性能
  • 强大的 RPC 分析
  • 最高 500 rps
  • 无每日响应限制
  • 优先支持
  • 去中心化服务器
立即开始

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.

附加信息

永远不用担心基础设施

OnFinality 消除了 DevOps 的繁重工作,让您能够更聪明、更快地构建。

开始