tmclient

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainId

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

func DumpConsensusState

func DumpConsensusState(client RPCClient) (*rpc.ResultDumpConsensusState, error)

func DumpStorage

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

func GenPrivAccount

func GenPrivAccount(client RPCClient) (*rpc.ResultGeneratePrivateAccount, error)

func GetAccount

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

func GetBlock

func GetBlock(client RPCClient, height int) (*rpc.ResultGetBlock, error)

func GetName

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

func GetStorage

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

func ListBlocks

func ListBlocks(client RPCClient, minHeight, maxHeight int) (*rpc.ResultListBlocks, error)

func ListUnconfirmedTxs

func ListUnconfirmedTxs(client RPCClient, maxTxs int) (*rpc.ResultListUnconfirmedTxs, error)

func ListValidators

func ListValidators(client RPCClient) (*rpc.ResultListValidators, error)

func SignTx

func SignTx(client RPCClient, tx txs.Tx, privAccounts []*acm.ConcretePrivateAccount) (*txs.Envelope, error)

func Status

func Status(client RPCClient) (*rpc.ResultStatus, 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