esplora

package
v1.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 10 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 InitClient

func InitClient(endpoint string) *Client

InitClient creates a new Esplora API client

func (*Client) BroadcastTransaction

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

func (*Client) Disconnect

func (c *Client) Disconnect()

Disconnect closes any resources held by the client For HTTP client, there's no persistent connection to close

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)

Jump to

Keyboard shortcuts

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