English version: /en/doc/rpc/call-estimate-send.html
Call, Estimate, Send
TL;DR
eth_call/eth_estimateGasは callObject制約あり。eth_estimateGasはgas_usedではなく、成功する最小gasを返す。eth_sendRawTransactionは canister submit API委譲。
メソッド
eth_call->rpc_eth_call_objecteth_estimateGas->rpc_eth_estimate_gas_objecteth_sendRawTransaction->rpc_eth_send_raw_transaction
callObject制約
- 対応キー:
to/from/gas/gasPrice/value/data/nonce/maxFeePerGas/maxPriorityFeePerGas/chainId/type/accessList type=0x0/0x2のみ- feeパラメータ併用ルールあり
送信時の運用
- submit成功後に receipt
statusを必ず監視
根拠
tools/rpc-gateway/README.mdtools/rpc-gateway/src/handlers.tscrates/ic-evm-rpc/src/lib.rs