Collection of JSON-RPC APIs provided by Ethereum execution engines
Go to file
Danny Ryan 68cf607f01
Merge pull request #173 from mkalinin/patch-2
Engine API: fix forkchoiceUpdated INVALID response
2022-02-08 21:35:34 -07:00
.github/workflows Fixed deploy 2022-01-10 15:00:23 -08:00
scripts Fixed build where refs were still dereffed 2022-01-10 15:21:56 -08:00
src Engine API: fix fcU INVALID response 2022-02-09 10:31:29 +06:00
.editorconfig remove js indent size 2021-08-23 22:47:48 +02:00
.gitignore Fixed build where refs were still dereffed 2022-01-10 15:21:56 -08:00
LICENSE add license and readme 2021-06-15 22:31:43 -06:00
README.md improve wording 2021-08-26 04:06:02 +02:00
package-lock.json Fix parameters to eth_submitWork in mining.json 2021-11-12 19:24:26 -08:00
package.json update package.json links 2021-11-15 11:05:49 -08:00
spellcheck.yaml fix spelling errors 2021-09-22 19:22:48 +02:00
wordlist.txt Merge pull request #167 from holiman/auth 2022-02-08 11:19:38 -07:00

README.md

Ethereum JSON-RPC Specification

View the spec

The Ethereum JSON-RPC is a collection of methods that all clients implement. This interface allows downstream tooling and infrastructure to treat different Ethereum clients as modules that can be swapped at will.

Building

The specification is split into multiple files to improve readability. It can be compiled the spec into a single document as follows:

$ npm install
$ npm run build
Build successful.

This will output the file openrpc.json in the root of the project. This file will have all schema #refs resolved.

Contributing

The specification is written in OpenRPC. Refer to the OpenRPC specification and the JSON schema specification to get started.

Testing

There are currently three tools for testing contributions. The main two that run as GitHub actions are an OpenRPC validator and a spellchecker:

$ npm install
$ npm run lint
OpenRPC spec validated successfully.

$ pip install pyspelling
$ pyspelling -c spellcheck.yaml
Spelling check passed :)

The third tool can validate a live JSON-RPC provider hosted at http://localhost:8545 against the specification:

$ ./scripts/debug.sh eth_getBlockByNumber \"0xc7d772\",false
data.json valid

License

This repository is licensed under CC0.