Japanese version: /ja/doc/integration/signing-nonce-retries.html
Signing, Nonce, Retries
TL;DR
- Always fetch nonce before submit.
- Ensure chain id matches
4801360. - After submit success, determine final result by polling receipt.
Recommended Flow
- Resolve sender address
- Fetch nonce with
eth_getTransactionCountorexpected_nonce_by_address - Set fees (consider base fee + priority)
- Submit via
eth_sendRawTransaction - Poll
eth_getTransactionReceipt
Pitfalls
- Hard-coding nonce
- Resending on receipt timeout and causing nonce conflicts
Sources
README.mdtools/rpc-gateway/README.mdcrates/ic-evm-wrapper/src/lib.rs