Documentation ¶
Index ¶
- Constants
- func FormatTransactionType(txType wallet.TransactionType) string
- func MakeBTCTxChangeSource(destAddr string, net *btccfg.Params) (*btctxauthor.ChangeSource, error)
- func MakeBTCTxOutput(address string, amountInSatoshi int64, net *btcchaincfg.Params) (output *btcWire.TxOut, err error)
- func MakeLTCTxChangeSource(destAddr string, net *ltccfg.Params) (*ltctxauthor.ChangeSource, error)
- func MakeLTCTxOutput(address string, amountInLitoshi int64, net *ltcchaincfg.Params) (output *ltcWire.TxOut, err error)
- func MakeTxOutput(address string, amountInAtom int64, net dcrutil.AddressParams) (output *wire.TxOut, err error)
- func MsgTxFeeSizeRate(transactionHex string) (msgTx *wire.MsgTx, fee dcrutil.Amount, size int, feeRate dcrutil.Amount, ...)
- func TransactionAmountAndDirection(inputTotal, outputTotal, fee int64) (amount int64, direction int32)
- func TxDirectionString(direction int32) string
- type TxChangeSource
Constants ¶
View Source
const ( TxDirectionInvalid int32 = -1 TxDirectionSent int32 = 0 TxDirectionReceived int32 = 1 TxDirectionTransferred int32 = 2 TxDirectionAll int32 = 3 TxTypeRegular = "Regular" TxTypeMixed = "Mixed" TxTypeCoinBase = "Coinbase" TxTypeTicketPurchase = "Ticket" TxTypeVote = "Vote" TxTypeRevocation = "Revocation" )
Variables ¶
This section is empty.
Functions ¶
func FormatTransactionType ¶
func FormatTransactionType(txType wallet.TransactionType) string
func MakeBTCTxChangeSource ¶
func MakeBTCTxChangeSource(destAddr string, net *btccfg.Params) (*btctxauthor.ChangeSource, error)
func MakeBTCTxOutput ¶
func MakeLTCTxChangeSource ¶
func MakeLTCTxChangeSource(destAddr string, net *ltccfg.Params) (*ltctxauthor.ChangeSource, error)
func MakeLTCTxOutput ¶
func MakeTxOutput ¶
func MsgTxFeeSizeRate ¶
func TxDirectionString ¶ added in v1.1.0
Types ¶
type TxChangeSource ¶
type TxChangeSource struct {
// contains filtered or unexported fields
}
implements Script() and ScriptSize() functions of txauthor.ChangeSource
func MakeTxChangeSource ¶
func MakeTxChangeSource(destAddr string, net dcrutil.AddressParams) (*TxChangeSource, error)
func (*TxChangeSource) ScriptSize ¶
func (src *TxChangeSource) ScriptSize() int
Click to show internal directories.
Click to hide internal directories.