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

Method deposit

bridge/src/graphs/peg_in.rs:451–455  ·  view source on GitHub ↗
(&mut self, client: &AsyncClient)

Source from the content-addressed store, hash-verified

449 }
450
451 pub async fn deposit(&mut self, client: &AsyncClient) -> Result<Transaction, Error> {
452 let txid = self.peg_in_deposit_transaction.tx().compute_txid();
453 verify_if_not_mined(client, txid).await?;
454 Ok(self.peg_in_deposit_transaction.finalize())
455 }
456
457 pub async fn confirm(&mut self, client: &AsyncClient) -> Result<Transaction, Error> {
458 let txid = self.peg_in_confirm_transaction.tx().compute_txid();

Callers 2

test_peg_in_feesFunction · 0.80

Calls 3

verify_if_not_minedFunction · 0.85
txMethod · 0.45
finalizeMethod · 0.45

Tested by 1

test_peg_in_feesFunction · 0.64