client

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockchainInfo

func BlockchainInfo(client rpcclient.Client, minHeight,
	maxHeight int) (*rpc_types.ResultBlockchainInfo, error)

func BroadcastTx

func BroadcastTx(client rpcclient.Client,
	tx txs.Tx) (txs.Receipt, error)

func Call

func Call(client rpcclient.Client, fromAddress, toAddress,
	data []byte) (*rpc_types.ResultCall, error)

func CallCode

func CallCode(client rpcclient.Client, fromAddress, code,
	data []byte) (*rpc_types.ResultCall, error)

func ChainId

func ChainId(client rpcclient.Client) (*rpc_types.ResultChainId, error)

func DumpConsensusState

func DumpConsensusState(client rpcclient.Client) (*rpc_types.ResultDumpConsensusState, error)

func DumpStorage

func DumpStorage(client rpcclient.Client,
	address []byte) (*rpc_types.ResultDumpStorage, error)

func GenPrivAccount

func GenPrivAccount(client rpcclient.Client) (*acm.PrivAccount, error)

func GetAccount

func GetAccount(client rpcclient.Client, address []byte) (*acm.Account, error)

func GetBlock

func GetBlock(client rpcclient.Client, height int) (*rpc_types.ResultGetBlock, error)

func GetName

func GetName(client rpcclient.Client, name string) (*core_types.NameRegEntry, error)

func GetStorage

func GetStorage(client rpcclient.Client, address, key []byte) ([]byte, error)

func ListUnconfirmedTxs

func ListUnconfirmedTxs(client rpcclient.Client) (*rpc_types.ResultListUnconfirmedTxs, error)

func ListValidators

func ListValidators(client rpcclient.Client) (*rpc_types.ResultListValidators, error)

func SignTx

func SignTx(client rpcclient.Client, tx txs.Tx,
	privAccounts []*acm.PrivAccount) (txs.Tx, error)

func Status

func Status(client rpcclient.Client) (*rpc_types.ResultStatus, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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