infoclient

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account

func Account(client RPCClient, address crypto.Address) (acm.Account, error)

func Block

func Block(client RPCClient, height int) (*rpc.ResultBlock, error)

func Blocks

func Blocks(client RPCClient, minHeight, maxHeight int) (*rpc.ResultBlocks, error)

func ChainId

func ChainId(client RPCClient) (*rpc.ResultChainId, error)

func Consensus

func Consensus(client RPCClient) (*rpc.ResultConsensusState, error)

func DumpStorage

func DumpStorage(client RPCClient, address crypto.Address) (*rpc.ResultDumpStorage, error)

func Name

func Name(client RPCClient, name string) (*names.Entry, error)

func Status

func Status(client RPCClient) (*rpc.ResultStatus, error)

func Storage

func Storage(client RPCClient, address crypto.Address, key []byte) ([]byte, error)

func UnconfirmedTxs

func UnconfirmedTxs(client RPCClient, maxTxs int) (*rpc.ResultUnconfirmedTxs, error)

func Validators

func Validators(client RPCClient) (*rpc.ResultValidators, error)

Types

type RPCClient

type RPCClient interface {
	Call(method string, params map[string]interface{}, result interface{}) (interface{}, error)
}

Jump to

Keyboard shortcuts

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