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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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