pub trait GetBlockHash {
    // Required method
    fn get_block_hash(&self, height: u64) -> Result<BlockHash, Error>;
}
Expand description

Trait for getting block hash by block height

Required Methods§

source

fn get_block_hash(&self, height: u64) -> Result<BlockHash, Error>

fetch block hash given its height

Implementations on Foreign Types§

source§

impl<T: GetBlockHash> GetBlockHash for Arc<T>

Implementors§

source§

impl GetBlockHash for AnyBlockchain

source§

impl GetBlockHash for CompactFiltersBlockchain

Available on crate feature compact_filters only.
source§

impl GetBlockHash for ElectrumBlockchain

Available on crate feature electrum only.
source§

impl GetBlockHash for EsploraBlockchain

Available on crate feature esplora only.
source§

impl GetBlockHash for RpcBlockchain

Available on crate feature rpc only.