区块链支持
通过 256 Blocks 支持的 EVM 链及其访问方式
256 Blocks 通过统一的 API 提供对多个 EVM 兼容区块链的访问。所有链都支持主网和测试网环境。
支持的链
| 链 | 主网 | 测试网 |
|---|---|---|
| Ethereum | /ethereum | /ethereum-testnet (sepolia) |
| Base | /base | /base-testnet (sepolia) |
| Arbitrum One | /arbitrum | /arbitrum-testnet (sepolia) |
| Optimism | /optimism | /optimism-testnet (sepolia) |
| Polygon PoS | /polygon | /polygon-testnet (amoy) |
| BNB Smart Chain | /bsc | /bsc-testnet |
RPC URLs
为您创建的每个端点生成完整的 RPC URL。要查看您的 RPC URL:
- 转到端点页面
- 选择一个端点
- RPC URLs 部分显示每个链的完整 URL
URL 遵循以下格式:
https://rpc.256blocks.com/{endpoint-key}/{chain-path}
例如,要访问 Ethereum 主网:
https://rpc.256blocks.com/abc123/ethereum
与 SDK 集成
256 Blocks RPC 端点适用于任何与 Ethereum 兼容的 SDK。请参阅集成以获取以下详细指南:
- ethers.js
- viem
- web3.js
- wagmi
- MCP clients