以太坊 API 方法
Blockchain RPC 為每個專案提供每秒 100 個要求的配額,以及每日 100 萬個要求的配額。部分以太坊方法會耗用大量資源,因此會計為多個要求。下表說明每種方法在配額中佔用的額度。舉例來說,debug_traceBlockByHash
呼叫的乘數為 50,表示每次呼叫會計為 50 項要求。不支援 Beacon Node API。
請注意,以太坊主網是由 Erigon 叢集支援,以太坊 Holesky 測試網則是由 Geth 叢集支援。方法支援情形類似,但如所示有所不同。此外,如果方法未列於下方,表示不支援該方法。我們會在日後推出的版本中加入更多方法。
| 方法呼叫 | 要求調節係數 | Mainnet | Testnet |
|---|---|---|---|
| eth_blockNumber | 1 | ||
| eth_call | 1 | ||
| eth_chainId | 1 | ||
| eth_estimateGas | 1 | ||
| eth_feeHistory | 1 | ||
| eth_gasPrice | 1 | ||
| eth_getBalance | 1 | ||
| eth_getBlockByHash | 1 | ||
| eth_getBlockByNumber | 1 | ||
| eth_getBlockReceipts | 1 | ||
| eth_getBlockTransactionCountByHash | 1 | ||
| eth_getBlockTransactionCountByNumber | 1 | ||
| eth_getCode | 10 | ||
| eth_getLogs | 50 | ||
| eth_getProof | 50 | ||
| eth_getStorageAt | 1 | ||
| eth_getTransactionByBlockHashAndIndex | 1 | ||
| eth_getTransactionByBlockNumberAndIndex | 1 | ||
| eth_getTransactionByHash | 1 | ||
| eth_getTransactionCount | 1 | ||
| eth_getTransactionReceipt | 1 | ||
| eth_getUncleByBlockHashAndIndex | 1 | ||
| eth_getUncleByBlockNumberAndIndex | 1 | ||
| eth_getUncleCountByBlockHash | 1 | ||
| eth_getUncleCountByBlockNumber | 1 | ||
| eth_maxPriorityFeePerGas | 1 | ||
| eth_subscribe | 1 | ||
| eth_syncing | 1 | ||
| eth_unsubscribe | 1 | ||
| eth_sendRawTransaction | 1 | ||
| net_listening | 1 | ||
| net_peerCount | 1 | ||
| net_version | 1 | ||
| txpool_inspect | 50 | ||
| txpool_status | 50 | ||
| web3_clientVersion | 1 | ||
| web3_sha3 | 1 | ||
| trace_block | 50 | ||
| trace_call | 50 | ||
| trace_replayBlockTransactions | 100 | ||
| trace_replayTransaction | 100 | ||
| trace_transaction | 50 | ||
| debug_getBadBlocks | 50 | ||
| debug_storageRangeAt | 50 | ||
| debug_traceBlock | 50 | ||
| debug_traceBlockByHash | 50 | ||
| debug_traceBlockByNumber | 50 | ||
| debug_traceCall | 50 | ||
| debug_traceTransaction | 50 |