[{"data":1,"prerenderedAt":425},["ShallowReactive",2],{"navigation_docs":3,"-chains-bitcoingold":196,"-chains-bitcoingold-surround":420},[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":184,"body":198,"description":413,"extension":414,"links":415,"meta":416,"navigation":315,"path":185,"seo":418,"stem":186,"__hash__":419},"docs\u002F2.chains\u002F34.bitcoingold.md",{"type":199,"value":200,"toc":409},"minimark",[201,205,210,218,258,275,278,381,385,405],[202,203],"chain-facts",{"chain":204},"bitcoingold",[206,207,209],"h2",{"id":208},"address-format","Address format",[211,212,213,214,217],"p",{},"The same two branches as ",[215,216,104],"a",{"href":105},", with Bitcoin Gold's constants.",[211,219,220,224,225,229,230,233,234,237,238,241,242,245,246,249,250,253,254,257],{},[221,222,223],"strong",{},"Legacy"," ",[226,227,228],"code",{},"G…"," is version ",[226,231,232],{},"0x26"," and ",[226,235,236],{},"A…"," is ",[226,239,240],{},"0x17",", 25 Base58Check bytes each with the checksum verified. The fork at block 491407 moved both version bytes off Bitcoin's, so a ",[226,243,244],{},"1…"," or ",[226,247,248],{},"3…"," address isn't a Bitcoin Gold address, even though the chains share the history before it. A Dogecoin script address starts with ",[226,251,252],{},"A"," too, but its byte is ",[226,255,256],{},"0x16",", one lower, and it fails here.",[211,259,260,224,263,266,267,270,271,274],{},[221,261,262],{},"SegWit",[226,264,265],{},"btg1…"," runs the BIP-173 and BIP-350 check under the ",[226,268,269],{},"btg"," prefix: Bech32 for v0, Bech32m for v1 and up, program length, padding, checksum. That's what the node does as well. Its ",[226,272,273],{},"DecodeDestination"," is Bitcoin Core 0.21's with the prefix swapped.",[211,276,277],{},"There's no CAIP-2 reference. The genesis block is Bitcoin's, and the BIP-122 namespace lists no fork block for Bitcoin Gold, so the field stays empty.",[279,280,285],"pre",{"className":281,"code":282,"language":283,"meta":284,"style":284},"language-ts shiki shiki-themes chains chains chains","import { getChain } from \"@agntn\u002Fchains\";\n\nconst chain = getChain(\"btg\");\nchain.assertAddress(\"btg1qufmped88t65gh7vn9ftzjwlx9tf5a3en692wvq\"); \u002F\u002F returned unchanged\nchain.bip44; \u002F\u002F 156\nchain.caip2; \u002F\u002F undefined\n","ts","",[226,286,287,310,317,342,363,372],{"__ignoreMap":284},[288,289,292,296,300,303,307],"span",{"class":290,"line":291},"line",1,[288,293,295],{"class":294},"skH_V","import",[288,297,299],{"class":298},"s38Sx"," { getChain } ",[288,301,302],{"class":294},"from",[288,304,306],{"class":305},"shU9J"," \"@agntn\u002Fchains\"",[288,308,309],{"class":298},";\n",[288,311,313],{"class":290,"line":312},2,[288,314,316],{"emptyLinePlaceholder":315},true,"\n",[288,318,320,323,326,329,333,336,339],{"class":290,"line":319},3,[288,321,322],{"class":294},"const",[288,324,325],{"class":298}," chain ",[288,327,328],{"class":294},"=",[288,330,332],{"class":331},"sK71F"," getChain",[288,334,335],{"class":298},"(",[288,337,338],{"class":305},"\"btg\"",[288,340,341],{"class":298},");\n",[288,343,345,348,351,353,356,359],{"class":290,"line":344},4,[288,346,347],{"class":298},"chain.",[288,349,350],{"class":331},"assertAddress",[288,352,335],{"class":298},[288,354,355],{"class":305},"\"btg1qufmped88t65gh7vn9ftzjwlx9tf5a3en692wvq\"",[288,357,358],{"class":298},"); ",[288,360,362],{"class":361},"scIB-","\u002F\u002F returned unchanged\n",[288,364,366,369],{"class":290,"line":365},5,[288,367,368],{"class":298},"chain.bip44; ",[288,370,371],{"class":361},"\u002F\u002F 156\n",[288,373,375,378],{"class":290,"line":374},6,[288,376,377],{"class":298},"chain.caip2; ",[288,379,380],{"class":361},"\u002F\u002F undefined\n",[206,382,384],{"id":383},"spellings","Spellings",[211,386,387,389,390,389,392,389,395,397,398,400,401,404],{},[226,388,204],{},", ",[226,391,269],{},[226,393,394],{},"bitcoin-gold",[226,396,184],{},". The key is ",[226,399,204],{},", the rest resolve through ",[226,402,403],{},"getChain",".",[406,407,408],"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":284,"searchDepth":312,"depth":312,"links":410},[411,412],{"id":208,"depth":312,"text":209},{"id":383,"depth":312,"text":384},"Bitcoin's two branches under new version bytes and the btg prefix. Unlike Bitcoin SV, the fork moved its legacy bytes, so no address reads on both chains.","md",null,{"icon":417},"i-token-btg",{"title":184,"description":413},"LK3PYzoExKOcKNdDqRRTca4qz6FihjQfZ9ulVoAP_EI",[421,423],{"title":180,"path":181,"stem":182,"description":422,"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.",{"title":188,"path":189,"stem":190,"description":424,"children":-1},"Base58Check under 0x4c and 0x10, 25 bytes, no Bech32. Its own genesis, so unlike the Bitcoin forks it gets a CAIP-2 reference.",1791199049085]