mempool

package
v0.0.0-...-a383f1b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 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) 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