context

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	HomeDir        string
	NodeURI        string
	InputAddresses []common.Address
	Client         rpclient.Client
	Verbose        bool
}

func (*Context) BroadcastTx

func (ctx *Context) BroadcastTx(tx []byte) (*ctypes.ResultBroadcastTxCommit, error)

Broadcast the transaction bytes to Tendermint

func (*Context) GetBalanceByAddress

func (ctx *Context) GetBalanceByAddress(addr common.Address) (uint64, error)

func (*Context) GetInputAddresses

func (ctx *Context) GetInputAddresses() ([]common.Address, error)

Get the from address from the name flag

func (*Context) GetNode

func (ctx *Context) GetNode() (rpclient.Client, error)

Prepares a simple rpc.Client

func (*Context) GetPassphrase

func (ctx *Context) GetPassphrase(addr common.Address) (string, error)

func (*Context) Sign

func (ctx *Context) Sign(msg []byte, addr common.Address) ([]byte, error)

func (*Context) SignAndBroadcastTx

func (ctx *Context) SignAndBroadcastTx(tx transaction.Transaction, addr common.Address) error

func (*Context) SignAndSimulateTx

func (ctx *Context) SignAndSimulateTx(tx transaction.Transaction, addr common.Address) ([]byte, error)

Jump to

Keyboard shortcuts

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