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