(&mut self, peg_out_graph_id: &String)
| 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(); |