[{"data":1,"prerenderedAt":382},["ShallowReactive",2],{"navigation_docs":3,"-chains-ethereum":196,"-chains-ethereum-surround":377},[4,44],{"title":5,"path":6,"stem":7,"children":8,"icon":43},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Registry and aliases","\u002Fguide\u002Fregistry","1.guide\u002F02.registry",{"title":16,"path":17,"stem":18},"Address validation","\u002Fguide\u002Fvalidation","1.guide\u002F03.validation",{"title":20,"path":21,"stem":22},"Identify","\u002Fguide\u002Fidentify","1.guide\u002F04.identify",{"title":24,"path":25,"stem":26},"Metadata","\u002Fguide\u002Fmetadata","1.guide\u002F05.metadata",{"title":28,"path":29,"stem":30},"CLI","\u002Fguide\u002Fcli","1.guide\u002F06.cli",{"title":32,"path":33,"stem":34},"Agents","\u002Fguide\u002Fagents","1.guide\u002F07.agents",{"title":36,"path":37,"stem":38},"Custom chains","\u002Fguide\u002Fcustom","1.guide\u002F08.custom",{"title":40,"path":41,"stem":42},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F09.playground","i-lucide-book-open",{"title":45,"path":46,"stem":47,"children":48,"icon":195},"Chains","\u002Fchains","2.chains\u002F00.index",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Ethereum","\u002Fchains\u002Fethereum","2.chains\u002F01.ethereum",{"title":56,"path":57,"stem":58},"Base","\u002Fchains\u002Fbase","2.chains\u002F02.base",{"title":60,"path":61,"stem":62},"Arbitrum One","\u002Fchains\u002Farbitrum","2.chains\u002F03.arbitrum",{"title":64,"path":65,"stem":66},"Optimism","\u002Fchains\u002Foptimism","2.chains\u002F04.optimism",{"title":68,"path":69,"stem":70},"Polygon PoS","\u002Fchains\u002Fpolygon","2.chains\u002F05.polygon",{"title":72,"path":73,"stem":74},"BNB Chain","\u002Fchains\u002Fbsc","2.chains\u002F06.bsc",{"title":76,"path":77,"stem":78},"Avalanche C-Chain","\u002Fchains\u002Favalanche","2.chains\u002F07.avalanche",{"title":80,"path":81,"stem":82},"Fantom Opera","\u002Fchains\u002Ffantom","2.chains\u002F08.fantom",{"title":84,"path":85,"stem":86},"Gnosis Chain","\u002Fchains\u002Fgnosis","2.chains\u002F09.gnosis",{"title":88,"path":89,"stem":90},"Linea","\u002Fchains\u002Flinea","2.chains\u002F10.linea",{"title":92,"path":93,"stem":94},"zkSync Era","\u002Fchains\u002Fzksync","2.chains\u002F11.zksync",{"title":96,"path":97,"stem":98},"Scroll","\u002Fchains\u002Fscroll","2.chains\u002F12.scroll",{"title":100,"path":101,"stem":102},"Berachain","\u002Fchains\u002Fberachain","2.chains\u002F13.berachain",{"title":104,"path":105,"stem":106},"Bitcoin","\u002Fchains\u002Fbitcoin","2.chains\u002F14.bitcoin",{"title":108,"path":109,"stem":110},"Litecoin","\u002Fchains\u002Flitecoin","2.chains\u002F15.litecoin",{"title":112,"path":113,"stem":114},"Pepecoin","\u002Fchains\u002Fpepecoin","2.chains\u002F16.pepecoin",{"title":116,"path":117,"stem":118},"eCash","\u002Fchains\u002Fecash","2.chains\u002F17.ecash",{"title":120,"path":121,"stem":122},"Cardano","\u002Fchains\u002Fcardano","2.chains\u002F18.cardano",{"title":124,"path":125,"stem":126},"Solana","\u002Fchains\u002Fsolana","2.chains\u002F19.solana",{"title":128,"path":129,"stem":130},"Stellar","\u002Fchains\u002Fstellar","2.chains\u002F20.stellar",{"title":132,"path":133,"stem":134},"XRP Ledger","\u002Fchains\u002Fxrpl","2.chains\u002F21.xrpl",{"title":136,"path":137,"stem":138},"Aptos","\u002Fchains\u002Faptos","2.chains\u002F22.aptos",{"title":140,"path":141,"stem":142},"Sui","\u002Fchains\u002Fsui","2.chains\u002F23.sui",{"title":144,"path":145,"stem":146},"TON (The Open Network)","\u002Fchains\u002Fton","2.chains\u002F24.ton",{"title":148,"path":149,"stem":150},"TRON","\u002Fchains\u002Ftron","2.chains\u002F25.tron",{"title":152,"path":153,"stem":154},"Octra","\u002Fchains\u002Foctra","2.chains\u002F26.octra",{"title":156,"path":157,"stem":158},"Arweave","\u002Fchains\u002Farweave","2.chains\u002F27.arweave",{"title":160,"path":161,"stem":162},"Monero","\u002Fchains\u002Fmonero","2.chains\u002F28.monero",{"title":164,"path":165,"stem":166},"Decred","\u002Fchains\u002Fdecred","2.chains\u002F29.decred",{"title":168,"path":169,"stem":170},"Arc","\u002Fchains\u002Farc","2.chains\u002F30.arc",{"title":172,"path":173,"stem":174},"Dogecoin","\u002Fchains\u002Fdogecoin","2.chains\u002F31.dogecoin",{"title":176,"path":177,"stem":178},"Bitcoin Cash","\u002Fchains\u002Fbitcoincash","2.chains\u002F32.bitcoincash",{"title":180,"path":181,"stem":182},"Bitcoin SV","\u002Fchains\u002Fbitcoinsv","2.chains\u002F33.bitcoinsv",{"title":184,"path":185,"stem":186},"Bitcoin Gold","\u002Fchains\u002Fbitcoingold","2.chains\u002F34.bitcoingold",{"title":188,"path":189,"stem":190},"Dash","\u002Fchains\u002Fdash","2.chains\u002F35.dash",{"title":192,"path":193,"stem":194},"Zcash","\u002Fchains\u002Fzcash","2.chains\u002F36.zcash","i-lucide-link",{"id":197,"title":52,"body":198,"description":370,"extension":371,"links":372,"meta":373,"navigation":272,"path":53,"seo":375,"stem":54,"__hash__":376},"docs\u002F2.chains\u002F01.ethereum.md",{"type":199,"value":200,"toc":366},"minimark",[201,205,218,223,235,338,342,362],[202,203],"chain-facts",{"chain":204},"ethereum",[206,207,208,209,213,214,217],"p",{},"Ethereum is what ",[210,211,212],"code",{},"getChain()"," returns when you give it nothing. ",[210,215,216],{},"mainnet"," resolves here too, because that's what a config file usually says.",[219,220,222],"h2",{"id":221},"address-format","Address format",[206,224,225,226,229,230,234],{},"The EVM format, shared by every EVM chain here: ",[210,227,228],{},"0x"," and 40 hex digits, any case. An address that fits Ethereum fits the other thirteen EVM chains too, and ",[231,232,233],"a",{"href":21},"identify"," says so rather than picking one. The EIP-55 checksum, the one carried in letter case, is verified where there is one: mixed case has to match the hash, and an address in one case throughout passes, since it carries no checksum.",[236,237,242],"pre",{"className":238,"code":239,"language":240,"meta":241,"style":241},"language-ts shiki shiki-themes chains chains chains","import { getChain } from \"@agntn\u002Fchains\";\n\nconst chain = getChain(\"eth\");\nchain.assertAddress(\"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984\"); \u002F\u002F returned unchanged\nchain.chainId; \u002F\u002F \"0x1\"\nchain.caip2; \u002F\u002F \"eip155:1\"\n","ts","",[210,243,244,267,274,299,320,329],{"__ignoreMap":241},[245,246,249,253,257,260,264],"span",{"class":247,"line":248},"line",1,[245,250,252],{"class":251},"skH_V","import",[245,254,256],{"class":255},"s38Sx"," { getChain } ",[245,258,259],{"class":251},"from",[245,261,263],{"class":262},"shU9J"," \"@agntn\u002Fchains\"",[245,265,266],{"class":255},";\n",[245,268,270],{"class":247,"line":269},2,[245,271,273],{"emptyLinePlaceholder":272},true,"\n",[245,275,277,280,283,286,290,293,296],{"class":247,"line":276},3,[245,278,279],{"class":251},"const",[245,281,282],{"class":255}," chain ",[245,284,285],{"class":251},"=",[245,287,289],{"class":288},"sK71F"," getChain",[245,291,292],{"class":255},"(",[245,294,295],{"class":262},"\"eth\"",[245,297,298],{"class":255},");\n",[245,300,302,305,308,310,313,316],{"class":247,"line":301},4,[245,303,304],{"class":255},"chain.",[245,306,307],{"class":288},"assertAddress",[245,309,292],{"class":255},[245,311,312],{"class":262},"\"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984\"",[245,314,315],{"class":255},"); ",[245,317,319],{"class":318},"scIB-","\u002F\u002F returned unchanged\n",[245,321,323,326],{"class":247,"line":322},5,[245,324,325],{"class":255},"chain.chainId; ",[245,327,328],{"class":318},"\u002F\u002F \"0x1\"\n",[245,330,332,335],{"class":247,"line":331},6,[245,333,334],{"class":255},"chain.caip2; ",[245,336,337],{"class":318},"\u002F\u002F \"eip155:1\"\n",[219,339,341],{"id":340},"spellings","Spellings",[206,343,344,346,347,346,350,346,352,354,355,357,358,361],{},[210,345,204],{},", ",[210,348,349],{},"eth",[210,351,216],{},[210,353,52],{},". The key is ",[210,356,204],{},", the rest resolve through ",[210,359,360],{},"getChain",".",[363,364,365],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":241,"searchDepth":269,"depth":269,"links":367},[368,369],{"id":221,"depth":269,"text":222},{"id":340,"depth":269,"text":341},"The default chain. getChain() with no argument lands here, and the EVM format every other EVM chain shares is defined by this family.","md",null,{"icon":374},"i-token-eth",{"title":52,"description":370},"bAOeUF804yilP3iBwt9k2DAnnBk8xaAEvFMy_96Mn-Y",[378,380],{"title":50,"path":46,"stem":47,"description":379,"children":-1},"Thirty-six chains in eleven families. Each page lists the metadata. It names the address forms the validator accepts and what it leaves alone.",{"title":56,"path":57,"stem":58,"description":381,"children":-1},"Coinbase's L2 on the OP Stack, chain 8453. coinbase resolves here because that is what people type.",1791199001600]