Versions in this module Expand all Collapse all v0 v0.0.1 Oct 29, 2024 Changes in this version + func Request(method, baseURL, subPath string, requestBody io.Reader) ([]byte, error) + type BTCAPIClient interface + BroadcastTx func(tx *wire.MsgTx) (*chainhash.Hash, error) + GetRawTransaction func(txHash *chainhash.Hash) (*wire.MsgTx, error) + ListUnspent func(address btcutil.Address) ([]*UnspentOutput, error) + type MempoolClient struct + func NewClient(netParams *chaincfg.Params) *MempoolClient + func (c *MempoolClient) BroadcastTx(tx *wire.MsgTx) (*chainhash.Hash, error) + func (c *MempoolClient) GetRawTransaction(txHash *chainhash.Hash) (*wire.MsgTx, error) + func (c *MempoolClient) GetUtxos(address string) ([]*Utxo, error) + func (c *MempoolClient) ListUnspent(address btcutil.Address) ([]*UnspentOutput, error) + type UTXO struct + Status struct{ ... } + Txid string + Value int64 + Vout int + type UTXOs []UTXO + type UnspentOutput struct + Outpoint *wire.OutPoint + Output *wire.TxOut + type Utxo struct + Index uint32 + PkScript []byte + TxHash common.Hash + Value int64