pub struct Chain {
pub id: &'static str,
pub aliases: &'static [&'static str],
pub kind: ChainKind,
pub evm_chain_id: Option<&'static str>,
pub api_key_name: Option<&'static str>,
pub native_symbol: &'static str,
pub native_decimals: u8,
pub explorer_token_base: Option<&'static str>,
pub explorer_address_base: Option<&'static str>,
pub dexscreener_id: Option<&'static str>,
pub wrapped_native: Option<&'static str>,
}Expand description
One chain.
Fields§
§id: &'static strCanonical id (ethereum).
aliases: &'static [&'static str]Other names users type (eth), lower case.
kind: ChainKind§evm_chain_id: Option<&'static str>The EVM chain id, for Etherscan v2 and Sourcify ("1").
api_key_name: Option<&'static str>The config key of the chain’s explorer API key.
native_symbol: &'static str§native_decimals: u8§explorer_token_base: Option<&'static str>Explorer base for token pages.
explorer_address_base: Option<&'static str>Explorer base for address pages.
dexscreener_id: Option<&'static str>The chain’s id at DexScreener.
wrapped_native: Option<&'static str>The wrapped native token, which prices the native token on a DEX.
Trait Implementations§
impl Copy for Chain
impl Eq for Chain
impl StructuralPartialEq for Chain
Auto Trait Implementations§
impl Forget for Chain
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.