Avalanche API
Avalanche C-Chain 端点通过 HTTPS 与 WSS 提供 EVM JSON-RPC Core API。
Endpoint
| Item | Value |
|---|---|
| Network | Avalanche C-Chain Mainnet |
| Protocol | EVM JSON-RPC 2.0 |
| Chain ID | 43114 (0xa86a) |
| Public HTTPS | https://avalanche-rpc.blockreq.com/v1/rpc/public |
| Private HTTPS | https://avalanche-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 |
| Public WSS | wss://avalanche-rpc.blockreq.com/v1/rpc/public |
| Private WSS | wss://avalanche-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 |
这些 URL 使用产品路径 /v1/rpc 加上 /public 或 BRQ1P0000000000000000000000000000000000000000000000000000000。
Core Methods
Avalanche C-Chain 复用共享的 EVM JSON-RPC 方法表。
| Capability | Methods |
|---|---|
| Latest state | eth_chainId, eth_blockNumber, eth_call, eth_getBalance |
| Archive | 旧区块 state reads |
| Logs | eth_getLogs, eth_newFilter, eth_getFilterChanges |
Archive 调用可能需要私有端点。BlockReq 目前不提供 Avalanche C-Chain 上 eth_getProof、debug_* 和 trace_* 的文档,也不保证其可用。