pub struct BroadcastVerifier { /* private fields */ }Expand description
Verifies that a broadcast tx actually reached the network.
Cheap to clone (shares the reqwest connection pool). Built once and shared via an axum extension on the served path, or per-command on the CLI path.
Implementations§
Source§impl BroadcastVerifier
impl BroadcastVerifier
Sourcepub fn from_env(chain: Chain) -> Self
pub fn from_env(chain: Chain) -> Self
Build a verifier for chain, reading optional overrides from the env:
BSV_WALLET_SKIP_BROADCAST_VERIFY=1disables verification entirely.BSV_WALLET_BROADCAST_VERIFY_ATTEMPTSoverrides the probe-round count.BSV_WALLET_BROADCAST_VERIFY_DELAY_MSoverrides the inter-round delay.TAAL_API_KEY/MAIN_TAAL_API_KEYauthenticate the TAAL ARC probe.
Sourcepub async fn verify(&self, txid: &str) -> BroadcastVerification
pub async fn verify(&self, txid: &str) -> BroadcastVerification
Probe the network for txid, returning as soon as any source confirms it
present, otherwise after the full probe window.
Trait Implementations§
Source§impl Clone for BroadcastVerifier
impl Clone for BroadcastVerifier
Source§fn clone(&self) -> BroadcastVerifier
fn clone(&self) -> BroadcastVerifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BroadcastVerifier
impl !UnwindSafe for BroadcastVerifier
impl Freeze for BroadcastVerifier
impl Send for BroadcastVerifier
impl Sync for BroadcastVerifier
impl Unpin for BroadcastVerifier
impl UnsafeUnpin for BroadcastVerifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more