BlockFrostHttpTrait

Trait BlockFrostHttpTrait 

Source
pub trait BlockFrostHttpTrait {
    // Required methods
    fn genesis<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Genesis>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn latest_block_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<BlockInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn protocol_params<'life0, 'async_trait>(
        &'life0 self,
        epoch: u32,
    ) -> Pin<Box<dyn Future<Output = Result<ProtocolParams>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn address_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<AddressInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn utxos<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 str,
        maybe_count: Option<usize>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<UTxO>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn datum<'life0, 'life1, 'async_trait>(
        &'life0 self,
        datum_hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn assoc_addresses<'life0, 'life1, 'async_trait>(
        &'life0 self,
        stake_address: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Address>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn account_associated_addresses_total<'life0, 'life1, 'async_trait>(
        &'life0 self,
        base_addr: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Address>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn execution_units<'life0, 'life1, 'async_trait>(
        &'life0 self,
        bytes: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<EvaluateTxResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn submit_tx<'life0, 'life1, 'async_trait>(
        &'life0 self,
        bytes: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<TxSubmitResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn genesis<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Genesis>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn latest_block_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<BlockInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn protocol_params<'life0, 'async_trait>( &'life0 self, epoch: u32, ) -> Pin<Box<dyn Future<Output = Result<ProtocolParams>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn address_info<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<AddressInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn utxos<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, maybe_count: Option<usize>, ) -> Pin<Box<dyn Future<Output = Result<Vec<UTxO>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn datum<'life0, 'life1, 'async_trait>( &'life0 self, datum_hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn assoc_addresses<'life0, 'life1, 'async_trait>( &'life0 self, stake_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Address>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn account_associated_addresses_total<'life0, 'life1, 'async_trait>( &'life0 self, base_addr: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Address>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn execution_units<'life0, 'life1, 'async_trait>( &'life0 self, bytes: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<EvaluateTxResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn submit_tx<'life0, 'life1, 'async_trait>( &'life0 self, bytes: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<TxSubmitResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§