Skip to main content

NodeClient

Trait NodeClient 

Source
pub trait NodeClient: Send + Sync {
    // Required methods
    fn get_blockchain_info(&self) -> Result<GetBlockchainInfo, Error>;
    fn get_mempool_info(&self) -> Result<GetMempoolInfo, Error>;
    fn get_network_info(&self) -> Result<GetNetworkInfo, Error>;
    fn get_peer_info(&self) -> Result<GetPeerInfo, Error>;
    fn get_mining_info(&self) -> Result<MiningInfo, Error>;
    fn get_chain_tx_stats(&self) -> Result<ChainTxStats, Error>;
    fn get_net_totals(&self) -> Result<GetNetTotals, Error>;
    fn estimate_smart_fee(
        &self,
        conf_target: u32,
    ) -> Result<EstimateSmartFee, Error>;
    fn get_chain_tips(&self) -> Result<GetChainTips, Error>;
    fn uptime(&self) -> Result<u32, Error>;
    fn get_block_stats_by_height(
        &self,
        height: u32,
    ) -> Result<GetBlockStats, Error>;
}

Required Methods§

Implementors§