Skip to main content

parse_chain

Function parse_chain 

Source
pub fn parse_chain(s: &str) -> Result<Chain, String>
Expand description

Parse a chain string into a Chain. Accepts:

  • Friendly names: “ethereum”, “arbitrum”, “solana”, etc.
  • CAIP-2 chain IDs: “eip155:1”, “eip155:42161”, etc.
  • Legacy family names for backward compat: “evm” → resolves to ethereum