Logo

Avalanche RPC Endpoints & API

Ava Labs

Blazingly Fast, Low Cost, and Eco-Friendly.

通过 OnFinality 的弹性 API 几秒钟内连接到 Avalanche,每年提供 99.99% 的高可用性。

Blazingly Fast, Low Cost, and Eco-Friendly.

连接到公共端点

以下示例使用的是公共 API 接口*。该接口仅适用于测试。为避免限速和服务中断, 立即注册 来获取您专属的API key。
示例 CURL
curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "platform.getHeight"}' 'https://avalanche.api.onfinality.io/public/ext/bc/P'
curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "platform.getHeight"}' 'https://avalanche.api.onfinality.io/public/ext/bc/P'
HTTPs
https://avalanche.api.onfinality.io/public/ext/bc/P
https://avalanche.api.onfinality.io/public/ext/bc/P
Websocket
https://avalanche.api.onfinality.io/public/ext/bc/P
https://avalanche.api.onfinality.io/public/ext/bc/P

* 公共接口有速率限制

API 服务

API 功能

ArchiveTrace

价格

计算您的费用

按需付费,无隐藏成本。

Million Standard Requests
0100M200M300M400M
Total Cost
$49/ month

Recommended Plan: GROWTH

Continue with this plan

Avalanche RPC Endpoints on OnFinality

Avalanche is a high-performance Layer 1 blockchain platform known for its sub-second finality, low transaction fees, and eco-friendly consensus mechanism. It features a multi-chain architecture with three built-in blockchains: the Exchange Chain (X-Chain) for asset transfers, the Platform Chain (P-Chain) for validator coordination and subnet management, and the Contract Chain (C-Chain) which is fully EVM-compatible for smart contracts. This design enables developers to build scalable dApps, DeFi protocols, and custom subnets while benefiting from Avalanche's speed and security.

Why Use an Avalanche RPC Endpoint?

An RPC (Remote Procedure Call) endpoint is the gateway for applications to interact with the Avalanche blockchain. Developers use RPC endpoints to read on-chain data, submit transactions, deploy smart contracts, and connect backend services. Whether you are building a wallet, a DeFi dashboard, an NFT marketplace, or an analytics tool, a reliable RPC endpoint is essential for production-grade performance.

Avalanche RPC on OnFinality

OnFinality provides managed Avalanche RPC endpoints designed for production workloads. Our infrastructure supports HTTP and WebSocket transports, archive and trace capabilities, and offers request analytics to help you monitor usage. With OnFinality, you can focus on building your application without the overhead of running and maintaining your own Avalanche node.

Key Features

  • Network: Avalanche Mainnet (C-Chain, X-Chain, P-Chain)
  • Protocol: JSON-RPC over HTTP and WebSocket
  • Advanced Access: Archive and trace support for historical data and debugging
  • Observability: Request analytics and usage visibility
  • Scalability: Path from shared API endpoints to higher-capacity plans

How to Connect to Avalanche with OnFinality

  1. Create or sign in to your OnFinality account.
  2. Select Avalanche from the supported networks list.
  3. Create an API endpoint (or deploy a dedicated node if needed).
  4. Test the endpoint using a method like platform.getHeight or eth_blockNumber.
  5. Monitor request usage, errors, and limits before moving critical traffic.

Use Cases

  • dApps: Connect your frontend to Avalanche via a reliable RPC provider.
  • Wallets: Ensure stable access for transaction signing and balance queries.
  • DeFi: Access historical data with archive nodes for analytics and backtesting.
  • Backend Services: Integrate Avalanche data pipelines with scalable endpoints.

Comparison: Public vs OnFinality Avalanche RPC

Public endpoints are suitable for lightweight testing but often lack reliability and visibility for production use. OnFinality offers authenticated endpoints with clearer limits, request analytics, and a clear scaling path for growing projects.

Avalanche RPC and developer resources

Most teams looking for Avalanche RPC need to answer a practical question: can this endpoint support the app, wallet, analytics job, or backend service they are building?

Best fit: mainnet production workflows for Avalanche apps, data pipelines, and APIs.

What builders usually check first:

  • Connect app, wallet, dashboard, or backend services to network data.
  • Validate the methods your product depends on before moving more traffic.
  • Plan an upgrade path if request volume, monitoring, or isolation requirements increase.

Supported capability notes:

  • Authenticated Avalanche RPC/API access for Avalanche apps, data pipelines, and APIs.
  • HTTP plus WebSocket connectivity for app, backend, and integration workflows.
  • Historical data access for analytics, audits, and state lookups.
  • Debug-friendly trace access for transaction analysis and incident review.

Decision notes:

  • Environment: mainnet. Protocol family: Avalanche RPC.
  • HTTP plus WebSocket connectivity is listed for supported app and backend workflows.
  • Archive support is available for historical state or older chain-data queries.
  • Trace support is available for transaction debugging and execution analysis.

A quick connection check usually starts with platform.getHeight, then moves into the exact methods your wallet, dashboard, bot, indexer, or backend service needs.

Planning the next step:

  • Shared RPC is a practical starting point for integration, prototypes, dashboards, and many app backends.
  • If your product becomes traffic-heavy or operationally sensitive, review the available upgrade path before relying on a single access pattern.

Next steps:

API 服务
无限请求,高速速率限制
强大的 API 分析功能
99.99% 在线率
通过 HTTPS 或 websocket 连接
全球去中心化服务器托管
全archive节点访问不另收费

永远不用担心基础设施

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

开始