btcx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetRawTransaction(txHash *chainhash.Hash) (*wire.MsgTx, error)

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

	ListUnspent(address btcutil.Address) ([]*UnspentOutput, error)
}

type Net

type Net string
const (
	MainNet Net = "mainnet"
	TestNet Net = "testnet3"
	SigNet  Net = "signet"
	Regtest Net = "regtest"
)

func (Net) Params

func (n Net) Params() *chaincfg.Params

type RpcClient

type RpcClient struct {
}

func (*RpcClient) BroadcastTx

func (r *RpcClient) BroadcastTx(tx *wire.MsgTx) (*chainhash.Hash, error)

func (*RpcClient) GetRawTransaction

func (r *RpcClient) GetRawTransaction(txHash *chainhash.Hash) (*wire.MsgTx, error)

func (*RpcClient) ListUnspent

func (r *RpcClient) ListUnspent(address btcutil.Address) ([]*UnspentOutput, error)

type UnspentOutput

type UnspentOutput struct {
	Outpoint *wire.OutPoint
	Output   *wire.TxOut
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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