Documentation ¶
Index ¶
- func BtcToSatoshi(v float64) int64
- func DecodeAddress(addr string, chainParams *chaincfg.Params) (btcutil.Address, error)
- func DecodeMsgTx(mtx *wire.MsgTx, chainParams *chaincfg.Params) *btcjson.TxRawDecodeResult
- func EstimateFee(numP2PKHIns, numP2WPKHIns, numNestedP2WPKHIns int, outputs []BtcOutput, ...) (int64, int64, error)
- func HexToHash(s string) (*chainhash.Hash, error)
- func SatoshiToBtc(v int64) float64
- type BtcClient
- type BtcOutput
- type BtcTransaction
- func (t *BtcTransaction) Decode() *btcjson.TxRawDecodeResult
- func (t *BtcTransaction) GetFee() int64
- func (t *BtcTransaction) GetFeePerKb() int64
- func (t *BtcTransaction) GetTxid() string
- func (t *BtcTransaction) HasChange() bool
- func (t *BtcTransaction) Send(client *rpcclient.Client, allowHighFees bool) (*chainhash.Hash, error)
- func (t *BtcTransaction) Serialize() (string, error)
- func (t *BtcTransaction) Sign(wallet *wallet.BtcWallet) error
- func (t *BtcTransaction) SignWithSecretsSource(secretsSource txauthor.SecretsSource) error
- type BtcUnspent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BtcToSatoshi ¶
func DecodeAddress ¶
func DecodeMsgTx ¶
func EstimateFee ¶
func SatoshiToBtc ¶
Types ¶
type BtcClient ¶
func NewBtcClient ¶
func (*BtcClient) EstimateFeePerKb ¶
type BtcTransaction ¶
type BtcTransaction struct { txauthor.AuthoredTx // contains filtered or unexported fields }
func NewBtcTransaction ¶
func NewBtcTransaction(unspents []BtcUnspent, outputs []BtcOutput, changeAddress btcutil.Address, feePerKb int64, chainCfg *chaincfg.Params) (*BtcTransaction, error)
func (*BtcTransaction) Decode ¶
func (t *BtcTransaction) Decode() *btcjson.TxRawDecodeResult
func (*BtcTransaction) GetFee ¶
func (t *BtcTransaction) GetFee() int64
func (*BtcTransaction) GetFeePerKb ¶
func (t *BtcTransaction) GetFeePerKb() int64
func (*BtcTransaction) GetTxid ¶
func (t *BtcTransaction) GetTxid() string
func (*BtcTransaction) HasChange ¶
func (t *BtcTransaction) HasChange() bool
func (*BtcTransaction) Serialize ¶
func (t *BtcTransaction) Serialize() (string, error)
func (*BtcTransaction) SignWithSecretsSource ¶
func (t *BtcTransaction) SignWithSecretsSource(secretsSource txauthor.SecretsSource) error
Click to show internal directories.
Click to hide internal directories.