client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	CallMethod(result interface{}, method string, params []string) error
	Close()
}

Agent defines a RPC agent interface

func New

func New(url string) (Agent, error)

New returns an Ethereum rpc client

type GethAgent

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

GethAgent wraps ethereum rpc client

func (*GethAgent) CallMethod

func (ga *GethAgent) CallMethod(result interface{}, method string, params []string) error

CallMethod calls RPC method with params

func (*GethAgent) Close

func (ga *GethAgent) Close()

Close closes RPC client

Jump to

Keyboard shortcuts

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