electrum

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 6 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 struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options onchain.ElectrumOptions) (*Client, error)

func (*Client) BroadcastTransaction

func (c *Client) BroadcastTransaction(txHex string) (string, error)

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) EstimateFee

func (c *Client) EstimateFee() (float64, error)

func (*Client) GetBlockHeight

func (c *Client) GetBlockHeight() (uint32, error)

func (*Client) GetRawTransaction

func (c *Client) GetRawTransaction(txId string) (string, error)

func (*Client) GetUnspentOutputs

func (c *Client) GetUnspentOutputs(address string) ([]*onchain.Output, error)

func (*Client) IsTransactionConfirmed

func (c *Client) IsTransactionConfirmed(txId string) (bool, error)

func (*Client) RegisterBlockListener

func (c *Client) RegisterBlockListener(ctx context.Context, channel chan<- *onchain.BlockEpoch) error

Jump to

Keyboard shortcuts

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