txpool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxpoolClient

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

func NewClient

func NewClient(netParams *chaincfg.Params) *TxpoolClient

func (*TxpoolClient) BroadcastTx

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

func (*TxpoolClient) GetRawTransaction

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

func (*TxpoolClient) ListUnspent

func (c *TxpoolClient) 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