package
0.0.0-20230803065340-eb934a0893fc
Repository: https://github.com/sliceledger-blockchain/slice-ledger.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewInstrumentedClient creates a new instrumented client.
NewInstrumentedRPC creates a new instrumented RPC client.
NewPollingClient returns a new PollingClient.
NewRateLimitingClient implements a global rate-limit for all RPC requests.
NewRPC returns the correct client.RPC instance for a given RPC url.
WithDialBackoff configures the number of attempts for the initial dial to the RPC, attempts are executed with an exponential backoff strategy.
WithGethRPCOptions passes the list of go-ethereum RPC options to the internal RPC instance.
WithHttpPollInterval configures the RPC to poll at the given rate, in case RPC subscriptions are not available.
WithPollRate specifies the rate at which the PollingClient will poll for new heads.
WithRateLimit configures the RPC to target the given rate limit (in requests / second).

# Variables

No description provided by the author

# Structs

BaseRPCClient is a wrapper around a concrete *rpc.Client instance to make it compliant with the client.RPC interface.
InstrumentedClient is an Ethereum client that tracks Prometheus metrics for each call.
InstrumentedRPCClient is an RPC client that tracks Prometheus metrics for each call.
PollingClient is an RPC client that provides newHeads subscriptions via a polling loop.
RateLimitingClient is a wrapper around a pure RPC that implements a global rate-limit on requests.

# Interfaces

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

# Type aliases

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