Documentation ¶
Index ¶
- Constants
- func RequestGet[T any](client *Client, endpoint string) (T, error)
- func RequestPost[T any](client *Client, endpoint string, payload interface{}) (T, error)
- type Client
- func (c *Client) BestBlockHash() (string, error)
- func (c *Client) BestBlockHeight() (uint64, error)
- func (c *Client) BroadcastTx(rawTx string) (string, error)
- func (t *Client) Close()
- func (c *Client) FeeEstimate() (types.FeeEstimate, error)
- func (c *Client) GetBlock(hash string) (*types.Block, error)
- func (c *Client) GetBlockTx(hash string, offset int) ([]*types.Transaction, error)
- func (c *Client) GetRawTx(txid string) (string, error)
- func (c *Client) GetTx(txid string) (*types.Transaction, error)
- func (c *Client) GetUTXO(address string) ([]*types.Utxo, error)
Constants ¶
View Source
const (
// https://github.com/blockstream/esplora/blob/master/API.md
ClientURL = "https://blockstream.info"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BestBlockHash ¶
func (*Client) BestBlockHeight ¶
func (*Client) FeeEstimate ¶
func (c *Client) FeeEstimate() (types.FeeEstimate, error)
func (*Client) GetBlockTx ¶
Click to show internal directories.
Click to hide internal directories.