context

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 13 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

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