provider

package
v0.0.0-...-c10cd6e Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProvider

type HTTPProvider struct {
	// contains filtered or unexported fields
}

HTTPProvider provides basic web3 interface

func (*HTTPProvider) GetRPCMethod

func (provider *HTTPProvider) GetRPCMethod() rpc.RPC

func (*HTTPProvider) IsConnected

func (provider *HTTPProvider) IsConnected() bool

IsConnected ...

func (*HTTPProvider) Send

func (provider *HTTPProvider) Send(request rpc.Request) (response rpc.Response, err error)

Send JSON RPC request through http client

type Provider

type Provider interface {
	IsConnected() bool
	Send(rpc.Request) (rpc.Response, error)
	GetRPCMethod() rpc.RPC
}

Provider provides basic web3 interface

func NewHTTPProvider

func NewHTTPProvider(host string, method rpc.RPC) Provider

NewHTTPProvider creates a HTTP provider

Jump to

Keyboard shortcuts

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