Versions in this module Expand all Collapse all v0 v0.2.0 Jul 15, 2018 Changes in this version + type ClientContext struct + Client rpcclient.Client + Decoder UTXODecoder + Height int64 + InputAddresses string + NodeURI string + TrustNode bool + UTXOStore string + func NewClientContextFromViper() ClientContext + func (c ClientContext) WithClient(client rpcclient.Client) ClientContext + func (c ClientContext) WithDecoder(decoder UTXODecoder) ClientContext + func (c ClientContext) WithHeight(height int64) ClientContext + func (c ClientContext) WithInputAddresses(inputAddresses string) ClientContext + func (c ClientContext) WithNodeURI(nodeURI string) ClientContext + func (c ClientContext) WithTrustNode(trustNode bool) ClientContext + func (c ClientContext) WithUTXOStore(utxoStore string) ClientContext + func (ctx ClientContext) BroadcastTx(tx []byte) (*ctypes.ResultBroadcastTxCommit, error) + func (ctx ClientContext) GetInputAddresses(dir string) (from [2]common.Address, err error) + func (ctx ClientContext) GetNode() (rpcclient.Client, error) + func (ctx ClientContext) GetPassphraseFromStdin(addr common.Address) (pass string, err error) + func (ctx ClientContext) GetSignature(addr common.Address, msg types.SpendMsg, dir string) (sig []byte, err error) + func (ctx ClientContext) SignBuildBroadcast(addrs [2]common.Address, msg types.SpendMsg, dir string) (res *ctypes.ResultBroadcastTxCommit, err error) + type UTXODecoder func(utxoBytes []byte) (types.UTXO, error)