pub struct SimplexProvider {
pub esplora: EsploraProvider,
pub elements: ElementsRpc,
}Fields§
§esplora: EsploraProvider§elements: ElementsRpcImplementations§
Source§impl SimplexProvider
impl SimplexProvider
pub fn new( esplora_url: String, elements_url: String, auth: Auth, network: SimplicityNetwork, ) -> Result<SimplexProvider, ProviderError>
Trait Implementations§
Source§impl ProviderTrait for SimplexProvider
impl ProviderTrait for SimplexProvider
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 SimplexProvider
impl !RefUnwindSafe for SimplexProvider
impl Send for SimplexProvider
impl Sync for SimplexProvider
impl Unpin for SimplexProvider
impl UnsafeUnpin for SimplexProvider
impl !UnwindSafe for SimplexProvider
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