MCPcopy Create free account
hub / github.com/BitVM/BitVM / get_initial_utxos

Method get_initial_utxos

bridge/src/client/client.rs:1293–1304  ·  view source on GitHub ↗
(&self, address: Address, amount: Amount)

Source from the content-addressed store, hash-verified

1291 }
1292
1293 pub async fn get_initial_utxos(&self, address: Address, amount: Amount) -> Option<Vec<Utxo>> {
1294 let utxos: Vec<Utxo> = self.esplora.get_address_utxo(address).await.unwrap();
1295 let possible_utxos = utxos
1296 .into_iter()
1297 .filter(|utxo| utxo.value == amount)
1298 .collect::<Vec<_>>();
1299 if !possible_utxos.is_empty() {
1300 Some(possible_utxos)
1301 } else {
1302 None
1303 }
1304 }
1305
1306 pub fn get_operator_address(&self) -> Address {
1307 if let Some(ref context) = self.operator_context {

Callers 2

fund_inputsMethod · 0.80
generate_stub_outpointsFunction · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by 2

fund_inputsMethod · 0.64
generate_stub_outpointsFunction · 0.64