mempool

package
v0.0.0-...-15be4ae Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: CC0-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fee

type Fee struct {
	FastestFee  int64 `json:"fastestFee"`
	HalfHourFee int64 `json:"halfHourFee"`
	HourFee     int64 `json:"hourFee"`
	EconomyFee  int64 `json:"economyFee"`
	MinimumFee  int64 `json:"minimumFee"`
}

type MempoolClient

type MempoolClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(netParams *chaincfg.Params) *MempoolClient

func (*MempoolClient) BroadcastTx

func (c *MempoolClient) BroadcastTx(tx *wire.MsgTx) (*chainhash.Hash, error)

func (*MempoolClient) GetFeeRate

func (c *MempoolClient) GetFeeRate() (*int64, error)

func (*MempoolClient) GetRawTransaction

func (c *MempoolClient) GetRawTransaction(txHash *chainhash.Hash) (*wire.MsgTx, error)

func (*MempoolClient) ListUnspent

func (c *MempoolClient) ListUnspent(address btcutil.Address) ([]*btcapi.UnspentOutput, error)

type UTXO

type UTXO struct {
	Txid   string `json:"txid"`
	Vout   int    `json:"vout"`
	Status struct {
		Confirmed   bool   `json:"confirmed"`
		BlockHeight int    `json:"block_height"`
		BlockHash   string `json:"block_hash"`
		BlockTime   int64  `json:"block_time"`
	} `json:"status"`
	Value int64 `json:"value"`
}

type UTXOs

type UTXOs []UTXO

UTXOs is a slice of UTXO

Jump to

Keyboard shortcuts

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