pub struct EsploraProvider {
pub esplora_url: String,
pub network: SimplicityNetwork,
pub timeout: Duration,
}Fields§
§esplora_url: String§network: SimplicityNetwork§timeout: DurationImplementations§
Source§impl EsploraProvider
impl EsploraProvider
pub fn new(url: String, network: SimplicityNetwork) -> EsploraProvider
Trait Implementations§
Source§impl ProviderTrait for EsploraProvider
impl ProviderTrait for EsploraProvider
fn get_network(&self) -> &SimplicityNetwork
fn broadcast_transaction(&self, tx: &Transaction) -> Result<Txid, ProviderError>
fn wait(&self, txid: &Txid) -> Result<(), ProviderError>
fn fetch_tip_height(&self) -> Result<u32, ProviderError>
fn fetch_tip_timestamp(&self) -> Result<u64, ProviderError>
fn fetch_transaction(&self, txid: &Txid) -> Result<Transaction, ProviderError>
fn fetch_address_utxos( &self, address: &Address, ) -> Result<Vec<(OutPoint, TxOut)>, ProviderError>
fn fetch_scripthash_utxos( &self, script: &Script, ) -> Result<Vec<(OutPoint, TxOut)>, ProviderError>
fn fetch_fee_estimates(&self) -> Result<HashMap<String, f64>, ProviderError>
fn fetch_fee_rate(&self, target_blocks: u32) -> Result<f32, ProviderError>
Auto Trait Implementations§
impl Freeze for EsploraProvider
impl RefUnwindSafe for EsploraProvider
impl Send for EsploraProvider
impl Sync for EsploraProvider
impl Unpin for EsploraProvider
impl UnsafeUnpin for EsploraProvider
impl UnwindSafe for EsploraProvider
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> 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