Trait breez_sdk_liquid::lightning::routing::utxo::UtxoLookup
pub trait UtxoLookup {
// Required method
fn get_utxo(
&self,
genesis_hash: &BlockHash,
short_channel_id: u64,
) -> UtxoResult;
}
Expand description
The UtxoLookup
trait defines behavior for accessing on-chain UTXOs.
Required Methods§
fn get_utxo(
&self,
genesis_hash: &BlockHash,
short_channel_id: u64,
) -> UtxoResult
fn get_utxo( &self, genesis_hash: &BlockHash, short_channel_id: u64, ) -> UtxoResult
Returns the transaction output of a funding transaction encoded by short_channel_id
.
Returns an error if genesis_hash
is for a different chain or if such a transaction output
is unknown.