pub struct ChainInfo {Show 14 fields
pub name: String,
pub chain_id: i64,
pub network: Option<String>,
pub contract_address: Option<String>,
pub rpc_url: Option<String>,
pub ws_url: Option<String>,
pub currency: Option<String>,
pub explorer_url: Option<String>,
pub pools: Vec<String>,
pub target_market_cap: Option<f64>,
pub total_supply: Option<f64>,
pub virtual_eth_amount: Option<f64>,
pub virtual_token_amount: Option<f64>,
pub start_block: Option<i64>,
}Expand description
One chain the Fyuz deployment is configured for.
The live service returns additional operational fields (RPC URL, explorer
URL, contract address); only the two documented in the OpenAPI contract are
modelled here. Unknown fields are ignored rather than rejected, so this stays
forward compatible.
Default is derived so the trading layer can build one of these from the
compile-time address book without inventing values for the operational
fields /config would have carried — they stay None, meaning unknown.
Fields§
§name: StringHuman-readable chain name, e.g. "BNB Smart Chain".
chain_id: i64EVM chain id, e.g. 56 for BNB Smart Chain mainnet.
network: Option<String>Chain slug used everywhere else in the API, e.g. "bsc".
contract_address: Option<String>The Fyuz launchpad on this chain — the to of every swap.
Read from here rather than hardcoded anywhere in this crate: it sits behind an upgradeable proxy, and a new chain should not need a release.
rpc_url: Option<String>A JSON-RPC endpoint, as configured by the API operator.
Treat it as a default, not an entitlement: it is shared by every caller
and can change without notice. Set your own with
FyuzClientBuilder::rpc_url for
anything in production.
ws_url: Option<String>WebSocket sibling of ChainInfo::rpc_url.
currency: Option<String>Native gas currency symbol, e.g. "BNB".
explorer_url: Option<String>Block explorer root, e.g. "https://bscscan.com".
pools: Vec<String>DEX venues a graduated token can end up on.
target_market_cap: Option<f64>USD market cap at which a token graduates off the curve.
total_supply: Option<f64>Tokens minted per launch.
virtual_eth_amount: Option<f64>Virtual native reserve a new curve starts with.
virtual_token_amount: Option<f64>Virtual token reserve a new curve starts with.
start_block: Option<i64>First block the indexer reads.