status-go/rpc
Andrea Maria Piana 9e5fa3f22c feat_: Cache GetWalletToken method and split circuits
This commits does a few things:

1) Adds cache of token amount to the GetWalletToken endpoint, used by
   mobile, in case the user is offline.

2) Split circuits by chain-id (when available) and by host+index when
   not

3) It makes GetWalletToken always refresh, as that's directed from an
   user action and we want to respect that. A cool down of 10s should be
   added in the future to avoid spamming.
2024-08-16 14:02:29 +01:00
..
chain feat_: Cache GetWalletToken method and split circuits 2024-08-16 14:02:29 +01:00
mock/client feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
network feat(wallet)_: add status proxy RPC urls for blockchain providers 2024-08-01 08:19:20 +02:00
README.md
call_raw.go
call_raw_test.go
client.go feat_: Cache GetWalletToken method and split circuits 2024-08-16 14:02:29 +01:00
client_test.go feat(rpc_user_agent)_: Added application version to the RPC user client 2024-08-15 13:18:18 +01:00
doc.go synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
route.go synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
route_test.go Revert "test: bump go-libp2p" 2024-01-18 20:29:33 +00:00
verif_proxy.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01:00
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.


Automatically generated by autoreadme on 2017.09.18