1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[114],{4699:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bitcoin-core",function(){return n(5566)}])},5566:function(e,t,n){"use strict";n.r(t),n.d(t,{__toc:function(){return l}});var i=n(5893),a=n(4882),o=n(3598),r=n(9340);n(9128);var s=n(2643);let l=[{depth:2,value:"Install",id:"install"},{depth:2,value:"Capabilities",id:"capabilities"},{depth:2,value:"Quick start",id:"quick-start"},{depth:2,value:"Used by Auth Modal",id:"used-by-auth-modal"},{depth:2,value:"Related",id:"related"}];function _createMdxContent(e){let t=Object.assign({h1:"h1",p:"p",strong:"strong",code:"code",a:"a",h2:"h2",pre:"pre",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",ul:"ul",li:"li"},(0,s.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{children:"Bitcoin Core"}),"\n",(0,i.jsx)(t.p,{children:"Browser-safe Bitcoin utilities: derive Taproot and SegWit addresses from an EVM secp256k1 private key, plus Ordinals, BRC-20, and Runes helpers."}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"SDK_Files:"})," ",(0,i.jsx)(t.code,{children:"base-sdk/packages/bitcoin-checksum"})," \xb7 npm ",(0,i.jsx)(t.a,{href:"https://www.npmjs.com/package/@web5nexus/bitcoin-core",children:(0,i.jsx)(t.code,{children:"@web5nexus/bitcoin-core"})})]}),"\n",(0,i.jsx)(t.p,{children:"No WASM â works in Vite, Next.js, and Node."}),"\n",(0,i.jsx)(t.h2,{id:"install",children:"Install"}),"\n",(0,i.jsx)(t.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(t.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"install"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"@web5nexus/bitcoin-core"})]})})}),"\n",(0,i.jsx)(t.h2,{id:"capabilities",children:"Capabilities"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Capability"}),(0,i.jsx)(t.th,{children:"Entry"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Address derivation (P2TR, P2WPKH, P2PKH, P2SH)"}),(0,i.jsxs)(t.td,{children:[(0,i.jsx)(t.code,{children:"@web5nexus/bitcoin-core"})," / ",(0,i.jsx)(t.code,{children:"/addresses"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Wallet utilities"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"bitcoinUtils"})})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Ordinals / BRC-20 / Runes"}),(0,i.jsxs)(t.td,{children:[(0,i.jsx)(t.code,{children:"ordinals"}),", ",(0,i.jsx)(t.code,{children:"brc20"}),", ",(0,i.jsx)(t.code,{children:"runes"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Testnet faucet (Puppeteer)"}),(0,i.jsxs)(t.td,{children:[(0,i.jsx)(t.code,{children:"@web5nexus/bitcoin-core/faucet"})," (Node only)"]})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"quick-start",children:"Quick start"}),"\n",(0,i.jsx)(t.pre,{"data-language":"ts","data-theme":"default",children:(0,i.jsxs)(t.code,{"data-language":"ts","data-theme":"default",children:[(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" { exportAllBitcoinAddresses } "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'@web5nexus/bitcoin-core/addresses'"})]}),"\n",(0,i.jsx)(t.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"addrs"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"exportAllBitcoinAddresses"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'0x11â¦'"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'mainnet'"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"addrs"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".p2tr) "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-comment)"},children:"// bc1pâ¦"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"addrs"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:".p2wpkh) "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-comment)"},children:"// bc1qâ¦"})]})]})}),"\n",(0,i.jsx)(t.h2,{id:"used-by-auth-modal",children:"Used by Auth Modal"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["Connect Modal optional BTC derive (",(0,i.jsx)(t.code,{children:"bitcoin: { enabled: true }"}),")"]}),"\n",(0,i.jsxs)(t.li,{children:["Solo package ",(0,i.jsx)(t.a,{href:"/auth-modal/bitcoin",children:(0,i.jsx)(t.code,{children:"@web5nexus/authmodal-bitcoin"})})," builds on this library for social â address types â PSBT"]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"related",children:"Related"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.a,{href:"/auth-modal/bitcoin",children:"Auth Modal \xb7 Bitcoin Wallet"})}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"/address-validator",children:"Address Validator"})," â validate BTC / testnet strings"]}),"\n"]})]})}let c={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,s.a)(),e.components);return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/bitcoin-core/index.mdx",route:"/bitcoin-core",frontMatter:{title:"Bitcoin Core",description:"@web5nexus/bitcoin-core â Taproot / SegWit derivation from secp256k1, Ordinals, BRC-20, and Runes helpers for browser and Node."},timestamp:1786186764e3,pageMap:[{kind:"Meta",data:{index:"Overview","auth-modal":"Auth Modal",chainrouter:"ChainRouter","bitcoin-core":"Bitcoin Core",web5js:"Web5js","address-validator":"Address Validator",about:{title:"About",type:"page"},contact:{title:"Contact â",type:"page",href:"https://web5.nexus",newWindow:!0}}},{kind:"MdxPage",name:"about",route:"/about",frontMatter:{title:"About",description:"About Web5 Nexus â social wallets, multi-chain RP
1C, Bitcoin utilities, and developer SDKs."}},{kind:"Folder",name:"address-validator",route:"/address-validator",children:[{kind:"Meta",data:{index:"Overview"}},{kind:"MdxPage",name:"index",route:"/address-validator",frontMatter:{title:"Address Validator",description:"@web5nexus/crypto-address-validator â validate Bitcoin, Ethereum, and altcoin addresses in Node.js and the browser."}}]},{kind:"Folder",name:"auth-modal",route:"/auth-modal",children:[{kind:"Meta",data:{getstartedsocial:"Get Started",authmodal:"Connect Modal",headless:"Headless / custom UI",marketing:"Marketing Hub (B2B)",adapters:"Adapters",bitcoin:"Bitcoin Wallet",playground:"Playground"}},{kind:"MdxPage",name:"adapters",route:"/auth-modal/adapters",frontMatter:{title:"Adapters",description:"BYOK social providers for Auth Modal â capabilities, methods, and install"}},{kind:"MdxPage",name:"authmodal",route:"/auth-modal/authmodal",frontMatter:{title:"Auth Modal",description:"Social-only Connect Modal â Web3Auth, Magic, Privy, Particle, Para"}},{kind:"MdxPage",name:"bitcoin",route:"/auth-modal/bitcoin",frontMatter:{title:"Bitcoin Wallet",description:"Solo Bitcoin social wallet â Taproot, SegWit, PSBT, Ordinals"}},{kind:"MdxPage",name:"getstartedsocial",route:"/auth-modal/getstartedsocial",frontMatter:{title:"Get Started",description:"Choose Auth Modal (EVM) or Bitcoin-first solo wallet"}},{kind:"MdxPage",name:"headless",route:"/auth-modal/headless",frontMatter:{title:"Headless / custom UI",description:"Connect without ConnectModal â core client, React hooks, per provider and social"}},{kind:"MdxPage",name:"marketing",route:"/auth-modal/marketing",frontMatter:{title:"Marketing Hub (B2B)",description:"Ship Auth Modal with a Marketing App pk_ â end-user email and wallets in your workspace"}},{kind:"MdxPage",name:"playground",route:"/auth-modal/playground",frontMatter:{title:"Playground",description:"Interactive Connect Modal and Bitcoin modal theme labs"}}]},{kind:"Folder",name:"bitcoin-core",route:"/bitcoin-core",children:[{kind:"Meta",data:{index:"Overview"}},{kind:"MdxPage",name:"index",route:"/bitcoin-core",frontMatter:{title:"Bitcoin Core",description:"@web5nexus/bitcoin-core â Taproot / SegWit derivation from secp256k1, Ordinals, BRC-20, and Runes helpers for browser and Node."}}]},{kind:"Folder",name:"chainrouter",route:"/chainrouter",children:[{kind:"Meta",data:{index:"Overview"}},{kind:"MdxPage",name:"index",route:"/chainrouter",frontMatter:{title:"ChainRouter",description:"Managed multi-chain EVM JSON-RPC client (@web5nexus/chainrouter) with health-aware routing and Auth Modal transport support."}}]},{kind:"MdxPage",name:"index",route:"/",frontMatter:{title:"Web5 Nexus SDK Docs",description:"Official Web5 Nexus SDK documentation â Auth Modal social login, Bitcoin wallet, ChainRouter RPC, bitcoin-core, Web5js, and address validation."}},{kind:"Folder",name:"web5js",route:"/web5js",children:[{kind:"Meta",data:{index:"Overview"}},{kind:"MdxPage",name:"index",route:"/web5js",frontMatter:{title:"Web5js",description:"@web5nexus/web5js â multi-chain RPC, wallet balances and transactions, NFT queries, and address monitoring."}}]}],flexsearch:{codeblocks:!0},title:"Bitcoin Core",headings:l},pageNextRoute:"/bitcoin-core",nextraLayout:o.ZP,themeConfig:r.Z};t.default=(0,a.j)(c)},2488:function(e,t,n){"use strict";n.d(t,{Fu:function(){return a},Z$:function(){return i},wU:function(){return logoForTheme}});let i="https://i.ibb.co/yShkFGZ/w5BlueT.png",a="https://crossdex.web5.nexus/whiteLogoCircle.png";function logoForTheme(e){return"light"===e?i:a}},9340:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(5893);n(7294);var a=n(2488),o=n(3598),r=n(1163);let s={name:"Web5 Nexus Docs",shortName:"Web5 Nexus",titleDefault:"Web5 Nexus SDK Docs",description:"Official Web5 Nexus SDK documentation â Auth Modal social login, Bitcoin wallet, ChainRouter RPC, bitcoin-core, Web5js, and address validation.",url:"https://docs.web5.nexus",orgUrl:"https://web5.nexus",github:"https://github.com/web5nexus",docsRepo:"https://github.com/web5nexus/docs",email:"[email protected]",twitter:"@web5nexus",locale:"en_US",themeColorLight:"#12b886",themeColorDark:"#0e1218"};function absoluteUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";if(!e||"/"===e)return s.url;let t=e.startsWith("/")?e:"/".concat(e),n=t.split("?")[0].split("#")[0].replace(/\/$/,"")||"";return"".concat(s.url).concat(n)}function JsonLd(e){let{data:t}=e;return(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}let l={logo:(0,i.jsx)(function(){return(0,i.jsxs)("span",{className:"w5-brand",children:[(0,i.jsx)("img",{className:"w5-brand-logo w5-brand-logo--light",src:a.Z$,alt:"Web5 Nexus",width:40,height:40}),(0,i.jsx)("img",{className:"w5-brand-logo w5-brand-logo--dark",src:a.Fu,alt:"Web5 Nexus",width:40,height:40}),(0,i.jsx)("span",{className:"w5-brand-text",children:"Web5 Nexus"})]})},{}),project:{link:s.github},chat:{link:s.orgUrl},docsRepositoryBase:"".concat(s.docsRepo,"/blob/main/"),footer:{text:(0,i.jsxs)("span",{children:["MIT ",new Date().getFullYear()," \xa9"," ",(0,i.jsx)("a",{href:s.orgUrl,target:"_blank",rel:"noreferrer",children:s.shortName})," \xb7 ",(0,i.jsx)("a",{href:"".concat(s.url,"/llms.txt"),rel:"noreferrer",children:"llms.txt"}),"."]})},navigation:{prev:!0,next:!0},head:()=>{let{asPath:e,defaultLocale:t,locale:n}=(0,r.useRouter)(),{frontMatter:a,title:l}=(0,o.ZR)(),c=t===n?e:"/".concat(n).concat(e),d=absoluteUrl(c.split("?")[0]||"/"),h=a.title||l||s.titleDefault,p=a.description||s.description,x=a.image||"".concat(s.url,"/og-default.png"),u="/"===c||""===c?s.titleDefault:"".concat(h," â ").concat(s.short
1Name," Docs"),m={"@context":"https://schema.org","@type":"Organization",name:s.shortName,url:s.orgUrl,logo:"".concat(s.url,"/icon-512.png"),email:s.email,sameAs:[s.github,s.orgUrl]},j={"@context":"https://schema.org","@type":"WebSite",name:s.name,url:s.url,description:s.description,publisher:{"@type":"Organization",name:s.shortName,url:s.orgUrl},inLanguage:"en"},g={"@context":"https://schema.org","@type":"WebPage",name:u,description:p,url:d,isPartOf:{"@type":"WebSite",url:s.url,name:s.name},about:{"@type":"SoftwareApplication",name:s.shortName,applicationCategory:"DeveloperApplication"}},b=[{name:"Docs",path:"/"},...c.split("/").filter(Boolean).map((e,t,n)=>({name:e.replace(/-/g," "),path:"/"+n.slice(0,t+1).join("/")}))],k={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:b.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:absoluteUrl(e.path)}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("meta",{name:"description",content:p}),(0,i.jsx)("meta",{name:"application-name",content:s.name}),(0,i.jsx)("meta",{name:"author",content:s.shortName}),(0,i.jsx)("meta",{name:"creator",content:s.shortName}),(0,i.jsx)("meta",{name:"publisher",content:s.shortName}),(0,i.jsx)("meta",{name:"theme-color",content:s.themeColorDark,media:"(prefers-color-scheme: dark)"}),(0,i.jsx)("meta",{name:"theme-color",content:s.themeColorLight,media:"(prefers-color-scheme: light)"}),(0,i.jsx)("meta",{name:"color-scheme",content:"dark light"}),(0,i.jsx)("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),(0,i.jsx)("meta",{name:"googlebot",content:"index, follow"}),(0,i.jsx)("meta",{name:"bingbot",content:"index, follow"}),(0,i.jsx)("link",{rel:"canonical",href:d}),(0,i.jsx)("link",{rel:"alternate",type:"text/plain",href:"".concat(s.url,"/llms.txt"),title:"llms.txt"}),(0,i.jsx)("link",{rel:"alternate",type:"text/plain",href:"".concat(s.url,"/llms-full.txt"),title:"llms-full.txt"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.png",type:"image/png",sizes:"1640x1640"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon-32.png",type:"image/png",sizes:"32x32"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon-16.png",type:"image/png",sizes:"16x16"}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png",sizes:"180x180"}),(0,i.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:site_name",content:s.name}),(0,i.jsx)("meta",{property:"og:locale",content:s.locale}),(0,i.jsx)("meta",{property:"og:url",content:d}),(0,i.jsx)("meta",{property:"og:title",content:u}),(0,i.jsx)("meta",{property:"og:description",content:p}),(0,i.jsx)("meta",{property:"og:image",content:x}),(0,i.jsx)("meta",{property:"og:image:alt",content:"".concat(s.shortName," SDK documentation")}),(0,i.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,i.jsx)("meta",{property:"og:image:height",content:"630"}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:site",content:s.twitter}),(0,i.jsx)("meta",{name:"twitter:creator",content:s.twitter}),(0,i.jsx)("meta",{name:"twitter:title",content:u}),(0,i.jsx)("meta",{name:"twitter:description",content:p}),(0,i.jsx)("meta",{name:"twitter:image",content:x}),(0,i.jsx)(JsonLd,{data:m}),(0,i.jsx)(JsonLd,{data:j}),(0,i.jsx)(JsonLd,{data:g}),(0,i.jsx)(JsonLd,{data:k})]})},useNextSeoProps(){let{asPath:e}=(0,r.useRouter)(),{frontMatter:t,title:n}=(0,o.ZR)(),i=t.description||s.description,a=t.title||n;return"/"===e?{title:s.titleDefault,description:i,titleTemplate:"%s"}:{title:a,description:i,titleTemplate:"%s â ".concat(s.shortName," Docs")}}};var c=l},5789:function(){}},function(e){e.O(0,[719,774,888,179],function(){return e(e.s=4699)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.