pub struct Chain {Show 17 fields
pub name: String,
pub short_name: String,
pub title: Option<String>,
pub chain: String,
pub icon: Option<String>,
pub rpc: Vec<String>,
pub faucets: Vec<String>,
pub native_currency: NativeCurrency,
pub info_url: String,
pub chain_id: u64,
pub network_id: u64,
pub slip44: Option<u64>,
pub ens: Option<Ens>,
pub explorers: Option<Vec<Explorer>>,
pub parent: Option<Parent>,
pub status: Option<String>,
pub red_flags: Option<Vec<RedFlag>>,
}Expand description
EIP-155 Chain Data.
Schema: https://github.com/ethereum-lists/chains/blob/master/tools/schema/chainSchema.json
Fields§
§name: StringThe name of the network.
short_name: StringThe short name of the network.
Matches the pattern: ^[A-Za-z0-9-_]{1,64}$
title: Option<String>An optional title for the network.
chain: StringThe name of the network.
icon: Option<String>The icon type of the network.
rpc: Vec<String>The RPCs of the network, if any.
faucets: Vec<String>The faucet URLs of the network, if any.
native_currency: NativeCurrencyThe native currency of the network.
info_url: StringThe info URL of the network.
chain_id: u64The chain ID of the network.
network_id: u64The network ID of the network.
slip44: Option<u64>The optional slip44 of the network.
ens: Option<Ens>The ENS registry address of the network, if any.
explorers: Option<Vec<Explorer>>The block explorers of the network, if any.
parent: Option<Parent>The optional parent of the network.
status: Option<String>Whether the status is deprecated, incubating or not.
red_flags: Option<Vec<RedFlag>>The red flags of the network.
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
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