[{"data":1,"prerenderedAt":410},["ShallowReactive",2],{"navigation_docs":3,"-chains-bitcoincash":196,"-chains-bitcoincash-surround":405},[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":176,"body":198,"description":398,"extension":399,"links":400,"meta":401,"navigation":299,"path":177,"seo":403,"stem":178,"__hash__":404},"docs\u002F2.chains\u002F32.bitcoincash.md",{"type":199,"value":200,"toc":394},"minimark",[201,205,210,242,249,259,262,365,369,390],[202,203],"chain-facts",{"chain":204},"bitcoincash",[206,207,209],"h2",{"id":208},"address-format","Address format",[211,212,213,214,217,218,221,222,225,226,229,230,233,234,237,238,241],"p",{},"CashAddr, the same encoding ",[215,216,116],"a",{"href":117}," uses, with the checksum verified under the ",[219,220,204],"code",{}," prefix whether the address carries ",[219,223,224],{},"bitcoincash:"," or not. The rules are the ones Bitcoin Cash Node decodes by. ",[219,227,228],{},"q…"," is pay-to-pubkey-hash over a 20-byte hash, ",[219,231,232],{},"p…"," is pay-to-script-hash over 20 bytes or over 32, the longer P2SH32 form. ",[219,235,236],{},"z…"," and ",[219,239,240],{},"r…"," are the token-aware twins CashTokens added, same hashes, same rules. Mixed case fails, all lowercase or all uppercase passes.",[211,243,244,245,248],{},"A bare eCash address fails here, and a bare Bitcoin Cash address fails on eCash. The two differ in the checksum alone, and the checksum is exactly what gets verified, so ",[215,246,247],{"href":21},"identify"," names one chain and not both.",[211,250,251,252,237,255,258],{},"Legacy ",[219,253,254],{},"1…",[219,256,257],{},"3…"," addresses aren't accepted. Wallets still read them, but the bytes are Bitcoin's, so a legacy address says nothing about which chain it's for. Convert it to CashAddr first.",[211,260,261],{},"The CAIP-2 reference isn't Bitcoin's genesis. Bitcoin Cash shares that block, so BIP-122 keys the chain by block 478559, the first one after the split.",[263,264,269],"pre",{"className":265,"code":266,"language":267,"meta":268,"style":268},"language-ts shiki shiki-themes chains chains chains","import { getChain } from \"@agntn\u002Fchains\";\n\nconst chain = getChain(\"bch\");\nchain.assertAddress(\"bitcoincash:qz3yjg59ypg6jqpwhaxgvjj44jm4hdx0w5wsxw2qez\"); \u002F\u002F returned unchanged\nchain.bip44; \u002F\u002F 145\nchain.caip2; \u002F\u002F \"bip122:000000000000000000651ef99cb9fcbe\"\n","ts","",[219,270,271,294,301,326,347,356],{"__ignoreMap":268},[272,273,276,280,284,287,291],"span",{"class":274,"line":275},"line",1,[272,277,279],{"class":278},"skH_V","import",[272,281,283],{"class":282},"s38Sx"," { getChain } ",[272,285,286],{"class":278},"from",[272,288,290],{"class":289},"shU9J"," \"@agntn\u002Fchains\"",[272,292,293],{"class":282},";\n",[272,295,297],{"class":274,"line":296},2,[272,298,300],{"emptyLinePlaceholder":299},true,"\n",[272,302,304,307,310,313,317,320,323],{"class":274,"line":303},3,[272,305,306],{"class":278},"const",[272,308,309],{"class":282}," chain ",[272,311,312],{"class":278},"=",[272,314,316],{"class":315},"sK71F"," getChain",[272,318,319],{"class":282},"(",[272,321,322],{"class":289},"\"bch\"",[272,324,325],{"class":282},");\n",[272,327,329,332,335,337,340,343],{"class":274,"line":328},4,[272,330,331],{"class":282},"chain.",[272,333,334],{"class":315},"assertAddress",[272,336,319],{"class":282},[272,338,339],{"class":289},"\"bitcoincash:qz3yjg59ypg6jqpwhaxgvjj44jm4hdx0w5wsxw2qez\"",[272,341,342],{"class":282},"); ",[272,344,346],{"class":345},"scIB-","\u002F\u002F returned unchanged\n",[272,348,350,353],{"class":274,"line":349},5,[272,351,352],{"class":282},"chain.bip44; ",[272,354,355],{"class":345},"\u002F\u002F 145\n",[272,357,359,362],{"class":274,"line":358},6,[272,360,361],{"class":282},"chain.caip2; ",[272,363,364],{"class":345},"\u002F\u002F \"bip122:000000000000000000651ef99cb9fcbe\"\n",[206,366,368],{"id":367},"spellings","Spellings",[211,370,371,373,374,373,377,373,380,382,383,385,386,389],{},[219,372,204],{},", ",[219,375,376],{},"bch",[219,378,379],{},"bitcoin-cash",[219,381,176],{},". The key is ",[219,384,204],{},", the rest resolve through ",[219,387,388],{},"getChain",".",[391,392,393],"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":268,"searchDepth":296,"depth":296,"links":395},[396,397],{"id":208,"depth":296,"text":209},{"id":367,"depth":296,"text":368},"CashAddr with the checksum verified under the bitcoincash prefix, written or not, CashTokens and 32-byte script hashes included. Legacy base58 stays out.","md",null,{"icon":402},"i-token-bch",{"title":176,"description":398},"7NX6KYuVKtr_1ImYRkCe0miXDCxXbx4kcn3mfRbMFzw",[406,408],{"title":172,"path":173,"stem":174,"description":407,"children":-1},"Base58Check under 0x1e and 0x16, 25 bytes, no Bech32. The script version is the one Pepecoin kept, so a 9 or A address fits both chains.",{"title":180,"path":181,"stem":182,"description":409,"children":-1},"Base58Check under 0x00 only, 25 bytes. The node reads nothing else, and since Genesis a 3 address can't be paid at all.",1791251867625]