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 伺服器相同。