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

Method broadcast_take_2

bridge/src/client/client.rs:1271–1277  ·  view source on GitHub ↗
(&mut self, peg_out_graph_id: &String)

Source from the content-addressed store, hash-verified

1269 }
1270
1271 pub async fn broadcast_take_2(&mut self, peg_out_graph_id: &String) -> Result<Txid, Error> {
1272 let graph = Self::find_peg_out_or_fail(&mut self.data, peg_out_graph_id)?;
1273 let tx = graph
1274 .take_2(&self.esplora, self.operator_context.as_ref().unwrap())
1275 .await?;
1276 self.broadcast_tx(&tx).await
1277 }
1278
1279 pub async fn get_initial_utxo(&self, address: Address, amount: Amount) -> Option<Utxo> {
1280 let utxos = self.esplora.get_address_utxo(address).await.unwrap();

Callers 3

process_peg_outsMethod · 0.80

Calls 3

take_2Method · 0.80
as_refMethod · 0.80
broadcast_txMethod · 0.80

Tested by 1