Trait cfx_rpc_cfx_types::traits::ChainMetaProvider
source · pub trait ChainMetaProvider {
// Required method
fn chain_id(&self) -> u32;
// Provided methods
fn network_id(&self) -> u32 { ... }
fn meta(&self) -> ChainStaticMeta { ... }
}
Required Methods§
Provided Methods§
sourcefn network_id(&self) -> u32
fn network_id(&self) -> u32
Returns the current chain network id.