JSON-RPC
以下 RPC 端点可用
net_versionweb3_clientVersioneth_blockNumbereth_call- 仅支持最新区块
eth_chainIdeth_estimateGas- 仅支持最新区块
eth_feeHistoryeth_gasPrice- 返回下一个小区块的基础费用
eth_getBalance- 仅支持最新区块
eth_getBlockByHasheth_getBlockByNumbereth_getBlockReceiptseth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCode- 仅支持最新区块
eth_getLogs- 最多 4 个 topic
- 查询范围最多 50 个区块
eth_getStorageAt- 仅支持最新区块
eth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionByHasheth_getTransactionCount- 仅支持最新区块
eth_getTransactionReceipteth_maxPriorityFeePerGas- 目前始终返回零
eth_syncing- 始终返回 false
以下自定义端点可用
eth_bigBlockGasPrice- 返回下一个大区块的基础费用
eth_usingBigBlocks- 返回该地址是否正在使用大区块
-
eth_getSystemTxsByBlockHash和eth_getSystemTxsByBlockNumber -
类似于 "getTransaction" 系列方法,但返回来自 HyperCore 的系统交易
不支持的请求
- 目前默认 RPC 实现不支持需要历史状态的请求。不过,可以使用独立的归档节点实现,GitHub 仓库中提供了如何在本地开始索引历史数据的示例。注意,读取预编译合约仅针对每个区块上实际发生的调用进行记录。假设的读取预编译结果可以通过完整的 L1 重放获得。
速率限制:基于 IP 的速率限制与 API 服务器相同。