status-go/rpc
Anthony Laibe 21ddaa4b9f feat: arbitrum sepolia 2023-10-17 09:28:13 +02:00
..
chain Scanning of ERC20 tail of transfers history 2023-10-01 10:09:11 +02:00
network feat: arbitrum sepolia 2023-10-17 09:28:13 +02:00
README.md
call_raw.go
call_raw_test.go
client.go Scanning of ERC20 tail of transfers history 2023-10-01 10:09:11 +02:00
client_test.go fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00
doc.go
route.go
route_test.go
verif_proxy.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01:00
verif_proxy_test.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01: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.


Automatically generated by autoreadme on 2017.09.18