Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressLookup ¶
type AddressLookup interface {
// AddressHasTransactions returns true if the address has any confirmed or
// unconfirmed transaction history.
AddressHasTransactions(ctx context.Context, address string) (bool, error)
// GetTransactionHex returns the raw hex of a confirmed or unconfirmed transaction.
GetTransactionHex(ctx context.Context, txId string) (string, error)
Close()
}
AddressLookup queries onchain data from the configured chain source.
func NewAddressLookup ¶
NewAddressLookup returns an AddressLookup backed by the same chain source LDK uses: esplora if LDK_ESPLORA_SERVER is set, otherwise electrum. Bitcoind has no address index, so bitcoind users also fall back to electrum.
Click to show internal directories.
Click to hide internal directories.