[{"data":1,"prerenderedAt":529},["ShallowReactive",2],{"navigation_docs":3,"-chains-near":204,"-chains-near-surround":524},[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":203},"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,195,199],{"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",{"title":196,"path":197,"stem":198},"NEAR Protocol","\u002Fchains\u002Fnear","2.chains\u002F37.near",{"title":200,"path":201,"stem":202},"Waves","\u002Fchains\u002Fwaves","2.chains\u002F38.waves","i-lucide-link",{"id":205,"title":196,"body":206,"description":517,"extension":518,"links":519,"meta":520,"navigation":348,"path":197,"seo":522,"stem":198,"__hash__":523},"docs\u002F2.chains\u002F37.near.md",{"type":207,"value":208,"toc":511},"minimark",[209,213,218,242,267,270,298,301,311,431,434,441,445,452,469,475,479,490,494,507],[210,211],"chain-facts",{"chain":212},"near",[214,215,217],"h2",{"id":216},"address-format","Address format",[219,220,221,222,226,227,230,231,233,234,237,238,241],"p",{},"A NEAR address is an account ID. Named accounts read like domains: ",[223,224,225],"code",{},"wrap.near",", ",[223,228,229],{},"usdt.tether-token.near",". Only ",[223,232,212],{}," can create ",[223,235,236],{},"alice.near",". Top-level names like ",[223,239,240],{},"aurora"," exist too.",[219,243,244,245,248,249,252,253,256,257,226,260,252,263,266],{},"The library follows ",[223,246,247],{},"validate"," in near-account-id-rs. An ID has 2 to 64 characters. It uses lowercase ",[223,250,251],{},"a-z"," and ",[223,254,255],{},"0-9",". Separators ",[223,258,259],{},"-",[223,261,262],{},"_",[223,264,265],{},"."," go between parts. They can't appear at either end or next to another separator. Uppercase fails.",[219,268,269],{},"Typed accounts carry a key instead of a name:",[271,272,273,277,284,291],"ul",{},[274,275,276],"li",{},"NEAR-implicit: 64 hex digits, an Ed25519 public key.",[274,278,279,280,283],{},"ETH-implicit: ",[223,281,282],{},"0x"," and 40 lowercase hex digits.",[274,285,286,287,290],{},"Deterministic: ",[223,288,289],{},"0s"," and 40 hex digits.",[274,292,293,294,297],{},"Universal: ",[223,295,296],{},"0u"," and 52 Crockford base32 digits.",[219,299,300],{},"They pass the same grammar. Nothing extra is decoded.",[219,302,303,304,306,307,310],{},"There's no checksum. Mistype ",[223,305,225],{}," as ",[223,308,309],{},"wrap.neat"," and the grammar is perfectly happy.",[312,313,318],"pre",{"className":314,"code":315,"language":316,"meta":317,"style":317},"language-ts shiki shiki-themes chains chains chains","import { getChain } from \"@agntn\u002Fchains\";\n\nconst chain = getChain(\"near\");\nchain.assertAddress(\"wrap.near\"); \u002F\u002F returned unchanged\nchain.assertAddress(\"aurora\"); \u002F\u002F a top-level name, returned unchanged\nchain.type; \u002F\u002F \"near\"\nchain.caip2; \u002F\u002F \"near:mainnet\"\n","ts","",[223,319,320,343,350,375,396,413,422],{"__ignoreMap":317},[321,322,325,329,333,336,340],"span",{"class":323,"line":324},"line",1,[321,326,328],{"class":327},"skH_V","import",[321,330,332],{"class":331},"s38Sx"," { getChain } ",[321,334,335],{"class":327},"from",[321,337,339],{"class":338},"shU9J"," \"@agntn\u002Fchains\"",[321,341,342],{"class":331},";\n",[321,344,346],{"class":323,"line":345},2,[321,347,349],{"emptyLinePlaceholder":348},true,"\n",[321,351,353,356,359,362,366,369,372],{"class":323,"line":352},3,[321,354,355],{"class":327},"const",[321,357,358],{"class":331}," chain ",[321,360,361],{"class":327},"=",[321,363,365],{"class":364},"sK71F"," getChain",[321,367,368],{"class":331},"(",[321,370,371],{"class":338},"\"near\"",[321,373,374],{"class":331},");\n",[321,376,378,381,384,386,389,392],{"class":323,"line":377},4,[321,379,380],{"class":331},"chain.",[321,382,383],{"class":364},"assertAddress",[321,385,368],{"class":331},[321,387,388],{"class":338},"\"wrap.near\"",[321,390,391],{"class":331},"); ",[321,393,395],{"class":394},"scIB-","\u002F\u002F returned unchanged\n",[321,397,399,401,403,405,408,410],{"class":323,"line":398},5,[321,400,380],{"class":331},[321,402,383],{"class":364},[321,404,368],{"class":331},[321,406,407],{"class":338},"\"aurora\"",[321,409,391],{"class":331},[321,411,412],{"class":394},"\u002F\u002F a top-level name, returned unchanged\n",[321,414,416,419],{"class":323,"line":415},6,[321,417,418],{"class":331},"chain.type; ",[321,420,421],{"class":394},"\u002F\u002F \"near\"\n",[321,423,425,428],{"class":323,"line":424},7,[321,426,427],{"class":331},"chain.caip2; ",[321,429,430],{"class":394},"\u002F\u002F \"near:mainnet\"\n",[219,432,433],{},"NEAR has 24 decimals, with 10^24 yoctoNEAR per NEAR. Its SLIP-44 coin type is 397.",[219,435,436,437,440],{},"The ChainAgnostic registry has no NEAR namespace. The ",[223,438,439],{},"near:mainnet"," ID is what WalletConnect wallets pass around.",[214,442,444],{"id":443},"why-identify-is-pickier","Why identify is pickier",[219,446,447,448,451],{},"How loose is that grammar? It accepts ",[223,449,450],{},"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",", a Bitcoin SegWit address. It also accepts every lowercase Bech32 address and every bare CashAddr.",[219,453,454,455,458,459,462,463,465,466,468],{},"NEAR overrides ",[223,456,457],{},"claimsAddress"," for ",[223,460,461],{},"identify",". It claims IDs with a dot and the four typed forms. Bare words stay out of ",[223,464,461],{},", but ",[223,467,383],{}," still accepts them. That boundary makes sense.",[219,470,471,472,474],{},"A lowercase ",[223,473,282],{}," address with 40 hex digits appears on both NEAR and EVM chains. An ETH-implicit account represents the same 20 bytes.",[214,476,478],{"id":477},"transaction-hashes","Transaction hashes",[219,480,481,482,485,486,489],{},"A transaction hash is a 32-byte ",[223,483,484],{},"CryptoHash"," in base58. It's read the way ",[223,487,488],{},"CryptoHash::from_str"," reads it.",[214,491,493],{"id":492},"spellings","Spellings",[219,495,496,226,498,500,501,503,504,265],{},[223,497,212],{},[223,499,196],{},". The key is ",[223,502,212],{},", the rest resolve through ",[223,505,506],{},"getChain",[508,509,510],"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":317,"searchDepth":345,"depth":345,"links":512},[513,514,515,516],{"id":216,"depth":345,"text":217},{"id":443,"depth":345,"text":444},{"id":477,"depth":345,"text":478},{"id":492,"depth":345,"text":493},"NEAR account IDs have a loose grammar. The validator accepts it all, while identify avoids claiming Bitcoin addresses.","md",null,{"icon":521},"i-token-near",{"title":196,"description":517},"-9Dg4vsSkq1UxKyKWPxveVJs-x50ypN8gduaYnQhaMc",[525,527],{"title":192,"path":193,"stem":194,"description":526,"children":-1},"Transparent t1 and t3, Sapling zs1, TEX and Unified Addresses under ZIP-316, F4Jumble undone and every item read. Sprout stays out.",{"title":200,"path":201,"stem":202,"description":528,"children":-1},"Waves addresses decode to 26 bytes. The validator checks the mainnet byte and checksum.",1794310634144]