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

Method handle_get_operator_utxos

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

Source from the content-addressed store, hash-verified

159 }
160
161 pub async fn handle_get_operator_utxos(&mut self) -> io::Result<()> {
162 let utxos = self.client.get_operator_utxos().await;
163 match utxos.len() {
164 0 => println!("No operator UTXOs found."),
165 utxo_count => {
166 println!(
167 "{} operator UTXO{} found (<TXID>:<VOUT> <AMOUNT> <CONFIRMED>):",
168 utxo_count,
169 if utxo_count == 1 { "" } else { "s" }
170 );
171 for utxo in utxos {
172 println!(
173 "{}:{} {} {}",
174 utxo.txid, utxo.vout, utxo.value, utxo.status.confirmed
175 );
176 }
177 }
178 }
179
180 Ok(())
181 }
182
183 pub fn get_depositor_address_command() -> Command {
184 Command::new("get-depositor-address")

Callers 2

mainFunction · 0.80

Calls 2

get_operator_utxosMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected