github.com/status-im/status-go@v1.1.0/rpc/doc.go (about)

     1  /*
     2  Package rpc - JSON-RPC client with custom routing.
     3  
     4  Package rpc implements status-go JSON-RPC client and handles
     5  requests to different endpoints: upstream or local node.
     6  
     7  Every JSON-RPC request coming from either JS code or any other part
     8  of status-go should use this package to be handled and routed properly.
     9  
    10  Routing rules are following:
    11  
    12  - if Upstream is disabled, everything is routed to local ethereum-go node
    13  - otherwise, some requests (from the list, see below) are routed to upstream, others - locally.
    14  
    15  List of methods to be routed is currently available here: https://docs.google.com/spreadsheets/d/1N1nuzVN5tXoDmzkBLeC9_mwIlVH8DGF7YD2XwxA8BAE/edit#gid=0
    16  
    17  Note, upon creation of a new client, it ok to be offline - client will keep trying to reconnect in background.
    18  */
    19  package rpc
    20  
    21  //go:generate autoreadme -f