Type Definition vault::service::DynBitcoinCoreApi

source ·
pub type DynBitcoinCoreApi = Arc<dyn BitcoinCoreApi + Send + Sync>;

Trait Implementations§

source§

impl Backing for DynBitcoinCoreApi

source§

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

Returns the height of the longest chain
source§

fn get_block_header<'life0, 'async_trait>( &'life0 self, height: u32 ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Returns the raw header of a block in storage Read more
source§

fn get_block_hash<'life0, 'async_trait>( &'life0 self, height: u32 ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Returns the (little endian) hash of a block Read more