http

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0, Apache-2.0 Imports: 8 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.

func NewWithClient

func NewWithClient(chainID string, client SignStatusClient) provider.Provider

NewWithClient allows you to provide custom SignStatusClient.

Types

type SignStatusClient

type SignStatusClient interface {
	rpcclient.SignClient
	rpcclient.StatusClient
	// Remote returns the remote network address in a string form.
	Remote() string
}

SignStatusClient combines a SignClient and StatusClient.

Jump to

Keyboard shortcuts

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