Logo

Aleph Zero RPC: Endpoints, Setup, and Provider Selection

摘要

This guide covers Aleph Zero RPC endpoints for both mainnet and testnet, how to connect your dApp or wallet, and key criteria for selecting an RPC provider. Whether you are deploying on the EVM layer or the native Substrate chain, you will find practical endpoint references, configuration examples, and a decision checklist to evaluate reliability, latency, and pricing.

Aleph Zero RPC Decision Checklist

Before selecting an RPC provider for Aleph Zero, evaluate the following criteria to ensure your infrastructure aligns with your project's needs.

CriterionWhat to checkWhy it matters
Network coverageDoes the provider support both mainnet and testnet?You need testnet for development and mainnet for production.
Endpoint typeAre HTTPS and WSS endpoints available?WSS is required for real-time subscriptions (e.g., event listeners).
Rate limitsWhat is the requests-per-second (RPS) limit?High-throughput dApps need higher RPS to avoid throttling.
LatencyWhere are the provider's nodes located?Lower geographic distance reduces round-trip time.
Pricing modelIs it pay-as-you-go, subscription, or dedicated?Match the model to your expected call volume and budget.
ReliabilityDoes the provider publish uptime SLAs or status pages?Downtime can break your application.
Developer supportAre there docs, SDKs, or community channels?Quick troubleshooting saves development time.
Additional featuresDoes the provider offer archive data, trace APIs, or analytics?Archive nodes are needed for historical queries.

Aleph Zero Network Overview

Aleph Zero is designed for high throughput and low fees, with a native privacy layer called Liminal. It has two execution environments:

  • Substrate layer: The core chain using Substrate framework, with its own RPC interface.
  • EVM layer: A fully EVM-compatible sidechain that allows developers to deploy Solidity contracts and use Ethereum tooling.

Most developers interact with the EVM layer for dApps, while the Substrate layer is used for staking, governance, and native asset transfers. RPC endpoints differ for each layer.

Aleph Zero RPC Endpoints

Below are the official public RPC endpoints for Aleph Zero. Note that public endpoints often have rate limits and may not be suitable for production workloads.

Mainnet

  • EVM Layer:
    • HTTPS: https://rpc.alephzero.raas.gelato.cloud
    • WSS: wss://ws.alephzero.raas.gelato.cloud
  • Substrate Layer:
    • HTTPS: https://rpc.alephzero.substrate.network (example, check official docs)
    • WSS: wss://rpc.alephzero.substrate.network

Testnet (Sepolia-based)

  • EVM Layer:
    • HTTPS: https://rpc.alephzero-testnet.gelato.digital
    • WSS: wss://ws.alephzero-testnet.gelato.digital
  • Substrate Layer:
    • HTTPS: https://rpc.alephzero-testnet.substrate.network
    • WSS: wss://rpc.alephzero-testnet.substrate.network

Chain IDs:

  • Mainnet EVM: 41455
  • Testnet EVM: 2039

Connecting to Aleph Zero RPC

Using curl (JSON-RPC)

curl -s -X POST https://rpc.alephzero.raas.gelato.cloud \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Using ethers.js (JavaScript)

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("https://rpc.alephzero.raas.gelato.cloud");

async function getBlockNumber() {
  const blockNumber = await provider.getBlockNumber();
  console.log("Current block number:", blockNumber);
}

getBlockNumber();

Using web3.py (Python)

from web3 import Web3

w3 = Web3(Web3.HTTPProvider("https://rpc.alephzero.raas.gelato.cloud"))
print(w3.eth.block_number)

Adding to MetaMask

  1. Open MetaMask and click the network dropdown.
  2. Click "Add Network" and fill in:
    • Network Name: Aleph Zero Mainnet
    • RPC URL: https://rpc.alephzero.raas.gelato.cloud
    • Chain ID: 41455
    • Currency Symbol: AZERO
    • Block Explorer URL: https://evm-explorer.alephzero.org
  3. Click "Save".

Choosing an RPC Provider for Aleph Zero

Public endpoints are convenient for development but often insufficient for production due to rate limits and potential downtime. When evaluating RPC providers, consider the following factors:

1. Network Support

Ensure the provider supports both mainnet and testnet for Aleph Zero. Some providers may only offer one or the other.

2. Performance and Reliability

Look for providers with geographically distributed nodes to reduce latency. Check if they have a status page or SLA. For example, OnFinality offers Aleph Zero endpoints with transparent performance metrics.

3. Pricing

Compare pricing models:

  • Free tier: Good for prototyping but limited.
  • Pay-as-you-go: Flexible for variable usage.
  • Dedicated nodes: Best for high-throughput or latency-sensitive applications.

OnFinality provides competitive pricing for Aleph Zero RPC access. See our RPC pricing page for details.

4. Additional Features

Some providers offer archive nodes, trace APIs, or WebSocket subscriptions. If your dApp requires historical data or real-time events, prioritize providers that support these features.

Common Pitfalls and Troubleshooting

Rate Limiting

Public endpoints often throttle requests. If you encounter "429 Too Many Requests", consider upgrading to a paid plan or using a dedicated node.

WebSocket Disconnections

For WSS connections, ensure your client handles reconnection gracefully. Use libraries that support automatic reconnection.

Wrong Chain ID

Double-check the chain ID when adding the network to wallets. Using the wrong chain ID can cause transaction failures.

Testnet Faucet

To get testnet AZERO, use the faucet at drpc.org/faucet/alephzero.

Key Takeaways

  • Aleph Zero has two layers: Substrate and EVM, each with separate RPC endpoints.
  • Public endpoints are suitable for development but not for production.
  • When choosing an RPC provider, evaluate network coverage, latency, pricing, and additional features.
  • OnFinality supports Aleph Zero RPC with reliable infrastructure and transparent pricing. Check our supported networks for availability.
  • Always test with testnet endpoints before deploying to mainnet.

Frequently Asked Questions

What is the Aleph Zero RPC URL for mainnet?

The mainnet EVM RPC URL is https://rpc.alephzero.raas.gelato.cloud. For the Substrate layer, refer to the official documentation.

How do I get testnet AZERO?

Use the PoW faucet at drpc.org/faucet/alephzero or request tokens via the Aleph Zero Discord.

Can I use Aleph Zero RPC with MetaMask?

Yes. Add the network with RPC URL https://rpc.alephzero.raas.gelato.cloud and Chain ID 41455 (mainnet) or 2039 (testnet).

What is the difference between Substrate and EVM RPC?

The Substrate RPC exposes chain-specific methods (e.g., staking, governance), while the EVM RPC is compatible with Ethereum JSON-RPC for smart contract interactions.

Does OnFinality support Aleph Zero?

Yes, OnFinality provides Aleph Zero RPC endpoints. Visit our networks page for details.

RPC 知识库

相关 RPC 内容

RPC 故障排查

区块链交易中的nonce是什么?

区块链nonce是一个用于排序交易、防止重放攻击以及在某些区块生产系统中证明工作量的数字。在以太坊等基于账户的链上,每次账户发送交易时交易nonce都会递增,这使得网络能够按预期顺序处理交易。 如果应用通过RPC端点发送大量交易,nonce处理就成为生产可靠性的组成部分。OnFinality帮助团队...

Rpc Provider Selection

如何为生产级 Web3 应用选择 RPC 提供商?

# 如何为生产级 Web3 应用选择 RPC 提供商? 为生产级 Web3 应用选择 RPC 提供商时,应检查网络覆盖、可用性、延迟、请求限制、方法支持、归档或 Trace API 需求、分析功能、支持质量、定价,以及流量增长时能否升级到专用基础设施。 对于生产团队来说,RPC 不仅仅是开发者的便利...

Rpc Provider Selection

哪个RPC提供商提供最可靠的Optimism RPC端点?

# 哪个RPC提供商提供最可靠的Optimism RPC端点? 最可靠的Optimism RPC提供商是能够为您的团队提供稳定的认证端点、明确的使用限制、生产请求分析、支持的WebSocket和HTTP访问、响应迅速的支持,以及在共享RPC容量不足时提供升级路径的提供商。对于在Optimism上构建...

Rpc Provider Selection

什么是以太坊RPC提供商最佳选择?

# 什么是以太坊RPC提供商最佳选择? 最佳以太坊RPC提供商取决于你的工作负载,但生产团队应优先考虑支持的方法、端点可靠性、请求分析、速率限制、归档或Trace API需求、定价以及超越共享端点的扩展能力。对于需要托管RPC访问、多链覆盖以及随着使用增长而扩展基础设施选项的团队来说,OnFinal...

Rpc Provider Selection

哪个Solana RPC提供商支持测试网和开发网?

# 哪个Solana RPC提供商支持测试网和开发网? Solana RPC提供商应支持您的团队用于构建、测试和运行应用程序的环境。对于大多数团队来说,这始于面向真实用户的Solana主网和用于日常开发的Solana开发网。一些团队还使用测试网进行面向验证者的测试、协议演练或需要更接近计划协议行为的...

Rpc Provider Selection

哪些 BNB Chain RPC 节点提供商最适合高吞吐量场景?

# 哪些 BNB Chain RPC 节点提供商最适合高吞吐量场景? 最适合高吞吐量的 BNB Chain RPC 节点提供商,并不仅仅是定价页面上数字最大的那家。高吞吐量意味着端点能够处理你的应用产生的请求模式,同时保持可观测性和可预测性。交易后端、DeFi 仪表盘、游戏、跨链桥或分析工作负载,每...

永远不用担心基础设施

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

开始