Documentation ¶
Index ¶
Constants ¶
View Source
const ( BitcoinExplorer = "bitcoin" LiquidExplorer = "liquid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Explorer ¶
type Explorer interface { GetTxHex(txid string) (string, error) Broadcast(txHex string) (string, error) GetTxs(addr string) ([]ExplorerTx, error) GetTxOutspends(tx string) ([]SpentStatus, error) GetUtxos(addr string) ([]ExplorerUtxo, error) GetBalance(addr string) (uint64, error) GetRedeemedVtxosBalance( addr string, unilateralExitDelay common.RelativeLocktime, ) (uint64, map[int64]uint64, error) GetTxBlockTime( txid string, ) (confirmed bool, blocktime int64, err error) // GetNetwork() common.Network BaseUrl() string GetFeeRate() (float64, error) }
type ExplorerTx ¶
type ExplorerUtxo ¶
type ExplorerUtxo struct { Txid string `json:"txid"` Vout uint32 `json:"vout"` Amount uint64 `json:"value"` Asset string `json:"asset,omitempty"` Status struct { Confirmed bool `json:"confirmed"` Blocktime int64 `json:"block_time"` } `json:"status"` }
func (ExplorerUtxo) ToUtxo ¶
func (e ExplorerUtxo) ToUtxo(delay common.RelativeLocktime, tapscripts []string) types.Utxo
type SpentStatus ¶
Click to show internal directories.
Click to hide internal directories.