Base API
Base 端点使用 EVM JSON-RPC。
Endpoint
| Item | Value |
|---|---|
| Network | Base Mainnet |
| Protocol | EVM JSON-RPC 2.0 |
| Chain ID | 8453 (0x2105) |
| Public HTTPS | https://base-rpc.blockreq.com/v1/rpc/public |
| Private HTTPS | https://base-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 |
| WSS | wss://base-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000,启用时可用 |
Core Methods
Base 使用共享的 EVM JSON-RPC 方法表。
| Capability | Methods |
|---|---|
| Latest state | eth_chainId, eth_blockNumber, eth_call, eth_getBalance |
| Archive/proof | eth_getProof, 旧区块 eth_getCode, 旧区块 eth_getStorageAt |
| Logs | eth_getLogs, eth_getFilterLogs |
| Trace/debug | trace_block, trace_filter, trace_transaction, debug_traceCall, debug_traceTransaction |
Archive 和 trace 方法需要具备对应 provider capability 的 route。