pub enum Chain {
Show 16 variants
Polkadot,
Kusama,
Moonbeam,
Astar,
Acala,
Phala,
Bifrost,
Westend,
Ethereum,
BinanceSmartChain,
Polygon,
Avalanche,
Arbitrum,
Optimism,
ZkSync,
Base,
}Expand description
Supported blockchain networks
Variants§
Polkadot
Polkadot relay chain
Kusama
Kusama relay chain
Moonbeam
Moonbeam (Polkadot parachain with EVM)
Astar
Astar (Polkadot parachain with EVM)
Acala
Acala DeFi Hub
Phala
Phala Privacy Cloud
Bifrost
Bifrost Liquid Staking
Westend
Westend testnet
Ethereum
Ethereum mainnet
BinanceSmartChain
Binance Smart Chain
Polygon
Polygon
Avalanche
Avalanche C-Chain
Arbitrum
Arbitrum One
Optimism
Optimism
ZkSync
zkSync Era
Base
Base (Coinbase L2)
Implementations§
Source§impl Chain
impl Chain
Sourcepub fn chain_type(&self) -> ChainType
pub fn chain_type(&self) -> ChainType
Get the chain type
Sourcepub fn default_endpoint(&self) -> &str
pub fn default_endpoint(&self) -> &str
Get default RPC endpoint for the chain
Sourcepub fn rpc_endpoints(&self) -> Vec<&str>
pub fn rpc_endpoints(&self) -> Vec<&str>
Get multiple RPC endpoints for reliability and failover
Sourcepub fn supports_smart_contracts(&self) -> bool
pub fn supports_smart_contracts(&self) -> bool
Check if chain supports smart contracts
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chain
impl<'de> Deserialize<'de> for Chain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Chain
impl StructuralPartialEq for Chain
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more