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

Function is_confirmed

bridge/src/graphs/base.rs:90–93  ·  view source on GitHub ↗
(client: &AsyncClient, txid: Txid)

Source from the content-addressed store, hash-verified

88}
89
90pub async fn is_confirmed(client: &AsyncClient, txid: Txid) -> Result<bool, esplora_client::Error> {
91 let tx_status = client.get_tx_status(&txid).await;
92 tx_status.map(|x| x.confirmed)
93}
94
95pub async fn broadcast_and_verify(
96 client: &AsyncClient,

Callers 2

verify_if_not_minedFunction · 0.85
broadcast_and_verifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected