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

Method handle_get_depositor_utxos

bridge/src/client/cli/client_command.rs:205–225  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

203 }
204
205 pub async fn handle_get_depositor_utxos(&mut self) -> io::Result<()> {
206 let utxos = self.client.get_depositor_utxos().await;
207 match utxos.len() {
208 0 => println!("No depositor UTXOs found."),
209 utxo_count => {
210 println!(
211 "{} operator UTXO{} found (<TXID>:<VOUT> <AMOUNT> <CONFIRMED>):",
212 utxo_count,
213 if utxo_count == 1 { "" } else { "s" }
214 );
215 for utxo in utxos {
216 println!(
217 "{}:{} {} {}",
218 utxo.txid, utxo.vout, utxo.value, utxo.status.confirmed
219 );
220 }
221 }
222 }
223
224 Ok(())
225 }
226
227 pub fn get_initiate_peg_in_command() -> Command {
228 Command::new("initiate-peg-in")

Callers 2

mainFunction · 0.80

Calls 2

get_depositor_utxosMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected