RPC Differences Documentation and RPC Testing Toolkit (#241)

* Added RPC testing toolkit with docs

* Add documentation

* fix comments

---------

Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
This commit is contained in:
Nikita Khateev
2024-07-25 17:22:11 +04:00
committed by Gustavo Gonzalez
parent 29c6332022
commit cdba7fea87
5 changed files with 1557 additions and 0 deletions
@@ -0,0 +1,14 @@
:source-highlighter: highlight.js
:highlightjs-languages: rust
:github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
= RPC Differences
The EVM in a Substrate node has almost the same RPC calls common to all nodes. But some of them are not applicable for Frontier.
These are the calls that behave differently than would be expected by regular Ethereum nodes:
* `eth_sign` / `eth_signTransaction` -- these methods do not exist in the Frontier and this template because it, unlike Ethereum nodes, does not hold any keys.
* `eth_syncing` -- it can have additional fields `warp_chunks_amount` and `warp_chunks_processed` that describe warp syncing process.
Other calls comply to the same scheme as Ethereum nodes provide.