Trait bdk::blockchain::GetHeight
source · pub trait GetHeight {
fn get_height(&self) -> Result<u32, Error>;
}
Expand description
Trait for getting the current height of the blockchain.
Required Methods
sourcefn get_height(&self) -> Result<u32, Error>
fn get_height(&self) -> Result<u32, Error>
Return the current height
Implementations on Foreign Types
Implementors
impl GetHeight for AnyBlockchain
impl GetHeight for CompactFiltersBlockchain
Available on crate feature
compact_filters
only.impl GetHeight for ElectrumBlockchain
Available on crate feature
electrum
only.impl GetHeight for EsploraBlockchain
Available on crate feature
esplora
only.impl GetHeight for RpcBlockchain
Available on crate feature
rpc
only.