status-go/rpc
Igor Sirotin c1dd9397f7
refactor_: remove generated files from source control (#5878)
* fix_: gitignore generated files

* chore_: delete generated files

* fix_: update go generate instructions

* feat(Makefile)_: clean-generated-files target

* feat(Makefile)_: `generate` target

* fix(Makefile)_: dependent generate target

* ci_: run generate, update docker file deps

* fix(Makefile)_: remove `clean-generated-files` target

* fix(Makefile)_: simpler GO_GENERATE_CMD arg

* fix_: temp workspace GO_GENERATE_FAST_DIR
2024-10-03 20:59:44 +01:00
..
chain refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
network refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
README.md chore_: remove rpc doc automation (#5893) 2024-09-30 17:47:29 +01:00
call_raw.go
call_raw_test.go
client.go refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
client_test.go chore_: add a status proxy to the nodefleet rpc as a primary service provider 2024-10-02 18:41:29 +07:00
route.go
route_test.go
verif_proxy.go
verif_proxy_test.go fix_: skip tests using infura (#5086) 2024-04-24 16:41:42 +02:00

README.md

rpc GoDoc

Package rpc - JSON-RPC client with custom routing.

Download:

go get github.com/status-im/status-go/rpc

Package rpc - JSON-RPC client with custom routing.

Package rpc implements status-go JSON-RPC client and handles requests to different endpoints: upstream or local node.

Every JSON-RPC request coming from either JS code or any other part of status-go should use this package to be handled and routed properly.

Routing rules are following:

  • if Upstream is disabled, everything is routed to local ethereum-go node
  • otherwise, some requests (from the list, see below) are routed to upstream, others - locally.

List of methods to be routed is currently available here: https://docs.google.com/spreadsheets/d/1N1nuzVN5tXoDmzkBLeC9_mwIlVH8DGF7YD2XwxA8BAE/edit#gid=0

Note, upon creation of a new client, it ok to be offline - client will keep trying to reconnect in background.