Documentation ¶
Index ¶
- type Context
- func (ctx *Context) BroadcastTx(tx []byte) (*ctypes.ResultBroadcastTxCommit, error)
- func (ctx *Context) GetBalanceByAddress(addr common.Address) (uint64, error)
- func (ctx *Context) GetInputAddresses() ([]common.Address, error)
- func (ctx *Context) GetNode() (rpclient.Client, error)
- func (ctx *Context) GetPassphrase(addr common.Address) (string, error)
- func (ctx *Context) Sign(msg []byte, addr common.Address) ([]byte, error)
- func (ctx *Context) SignAndBroadcastTx(tx transaction.Transaction, addr common.Address) error
- func (ctx *Context) SignAndSimulateTx(tx transaction.Transaction, addr common.Address) ([]byte, error)
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 (*Context) GetInputAddresses ¶
Get the from address from the name flag
func (*Context) GetPassphrase ¶
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)
Click to show internal directories.
Click to hide internal directories.