http

package
v0.34.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(chainID, remote string) (provider.Provider, error)

New creates a HTTP provider, which is using the rpchttp.HTTP client under the hood. If no scheme is provided in the remote URL, http will be used by default. The 5s timeout is used for all requests.

func NewWithClient

func NewWithClient(chainID string, client rpcclient.RemoteClient) provider.Provider

NewWithClient allows you to provide a custom client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL