package
10.9.0+incompatible
Repository: https://github.com/status-im/status-go.git
Documentation: pkg.go.dev

# README

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.

# Packages

No description provided by the author
No description provided by the author

# Functions

BlockedMethods returns a list of methods that are not allowed to be called.
NewClient initializes Client Client is safe for concurrent use and will automatically reconnect to the server if connection is lost.

# Constants

DefaultCallTimeout is a default timeout for an RPC call.
Full status of the blockchain (including provider statuses).

# Variables

List of RPC client errors.

# Structs

Client represents RPC client with custom routing scheme.
ClientConfig holds the configuration for initializing a new Client.

# Interfaces

No description provided by the author

# Type aliases

Handler defines handler for RPC methods.