Documentation ¶
Index ¶
- Constants
- func DecodePSBT(psbtStr string) (*psbt.Packet, error)
- func EstimateTxFee(feeRate float64, ins []*wire.TxIn, outs []*wire.TxOut, ...) (btcutil.Amount, error)
- func EstimateTxVirtualSize(ins []*wire.TxIn, outs []*wire.TxOut, changeAddress btcutil.Address) (vSize int, err error)
- func GetChangeScriptSize(changeAddress btcutil.Address) (int, error)
- func IsMultiSigScript(script []byte) bool
- func NewTransferTx(net types.Network, fromAddress string, toAddress map[string]int64, ...) (*psbt.Packet, error)
- func PsbtPrevOutputFetcher(packet *psbt.Packet) *txscript.MultiPrevOutFetcher
- func SelectUtxo(utxos []*types.Utxo, amount int64) (selected []*types.Utxo, totalAmount int64, err error)
- func SignTx(net types.Network, psbtRaw, privateKey []byte) (*wire.MsgTx, error)
- type TxBuilder
- type TxInputs
- type TxOutputs
Constants ¶
View Source
const (
WitnessScaleFactor = 4
)
Variables ¶
This section is empty.
Functions ¶
func EstimateTxFee ¶
func EstimateTxVirtualSize ¶
func IsMultiSigScript ¶
func NewTransferTx ¶
func PsbtPrevOutputFetcher ¶
func PsbtPrevOutputFetcher(packet *psbt.Packet) *txscript.MultiPrevOutFetcher
PsbtPrevOutputFetcher returns a txscript.PrevOutFetcher built from the UTXO information in a PSBT packet.
func SelectUtxo ¶
Types ¶
type TxBuilder ¶
type TxBuilder struct {
// contains filtered or unexported fields
}
func (*TxBuilder) FundRawTransaction ¶
func (*TxBuilder) SufficentFunds ¶
type TxInputs ¶
func (TxInputs) AddInputTransfer ¶
func (TxInputs) AmountTotal ¶
Click to show internal directories.
Click to hide internal directories.