utils

package
v0.0.0-...-4dcd739 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInputsToCoverFee

func AddInputsToCoverFee(tx *wire.MsgTx, walletName string, fee int64) (*wire.MsgTx, int64, error)

func BroadcastBtcTransaction

func BroadcastBtcTransaction(tx *wire.MsgTx)

func BroadcastOnBtc

func BroadcastOnBtc(dbconn *sql.DB)

func BtcToSats

func BtcToSats(btc float64) int64

func CheckPinning

func CheckPinning(dbconn *sql.DB)

func ConfirmTx

func ConfirmTx(dbconn *sql.DB)

func CreateTxFromHex

func CreateTxFromHex(txHex string) (*wire.MsgTx, error)

func DecodeBtcScript

func DecodeBtcScript(script string) string

func GetBroadCastedRefundTx

func GetBroadCastedRefundTx() types.BroadcastRefundMsg

func GetBroadCastedSweepTx

func GetBroadCastedSweepTx() (types.BroadcastTxSweepMsg, error)

func GetFeeFromBtcNode

func GetFeeFromBtcNode(tx *wire.MsgTx) (int64, error)

func GetHeightFromScript

func GetHeightFromScript(script string) int64

func GetUnspentUTXOs

func GetUnspentUTXOs(walletName string) ([]btcjson.ListUnspentResult, error)

func ReplaceByFee

func ReplaceByFee(tx *wire.MsgTx, amount int32)

func SignNewFeeInputs

func SignNewFeeInputs(tx *wire.MsgTx, n int64) (*wire.MsgTx, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL