Trait cfx_rpc_cfx_types::traits::BlockProvider
source · pub trait BlockProvider {
// Required methods
fn get_block_epoch_number(&self, hash: &H256) -> Option<u64>;
fn get_block_hashes_by_epoch(
&self,
epoch_number: EpochNumber
) -> Result<Vec<H256>, String>;
}