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 Names

func Names(client RPCClient, regex 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)
}

Source Files