[{"data":1,"prerenderedAt":336},["ShallowReactive",2],{"navigation_docs":3,"-blockchains-base":84,"-blockchains-base-surround":331},[4,32],{"title":5,"path":6,"stem":7,"children":8,"icon":31},"Guide","\u002Fguide","1.guide\u002F1.index",[9,11,15,19,23,27],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Working with Keys","\u002Fguide\u002Fkeys","1.guide\u002F2.keys",{"title":16,"path":17,"stem":18},"Working with Addresses","\u002Fguide\u002Faddresses","1.guide\u002F3.addresses",{"title":20,"path":21,"stem":22},"Generating Wallets","\u002Fguide\u002Fwallets","1.guide\u002F4.wallets",{"title":24,"path":25,"stem":26},"Working with EVM Chains","\u002Fguide\u002Fevm","1.guide\u002F5.evm",{"title":28,"path":29,"stem":30},"Creating Custom Blockchains","\u002Fguide\u002Fcustom","1.guide\u002F6.custom","i-lucide-book-open",{"title":33,"path":34,"stem":35,"children":36,"icon":83},"Blockchains","\u002Fblockchains","2.blockchains\u002F0.index",[37,39,43,47,51,55,59,63,67,71,75,79],{"title":38,"path":34,"stem":35},"Overview",{"title":40,"path":41,"stem":42},"Aptos","\u002Fblockchains\u002Faptos","2.blockchains\u002Faptos",{"title":44,"path":45,"stem":46},"Base","\u002Fblockchains\u002Fbase","2.blockchains\u002Fbase",{"title":48,"path":49,"stem":50},"Bitcoin","\u002Fblockchains\u002Fbitcoin","2.blockchains\u002Fbitcoin",{"title":52,"path":53,"stem":54},"Cardano","\u002Fblockchains\u002Fcardano","2.blockchains\u002Fcardano",{"title":56,"path":57,"stem":58},"Decred","\u002Fblockchains\u002Fdecred","2.blockchains\u002Fdecred",{"title":60,"path":61,"stem":62},"Ethereum","\u002Fblockchains\u002Fethereum","2.blockchains\u002Fethereum",{"title":64,"path":65,"stem":66},"Litecoin","\u002Fblockchains\u002Flitecoin","2.blockchains\u002Flitecoin",{"title":68,"path":69,"stem":70},"Solana","\u002Fblockchains\u002Fsolana","2.blockchains\u002Fsolana",{"title":72,"path":73,"stem":74},"Stellar","\u002Fblockchains\u002Fstellar","2.blockchains\u002Fstellar",{"title":76,"path":77,"stem":78},"Sui","\u002Fblockchains\u002Fsui","2.blockchains\u002Fsui",{"title":80,"path":81,"stem":82},"TRON","\u002Fblockchains\u002Ftron","2.blockchains\u002Ftron","i-lucide-boxes",{"id":85,"title":44,"body":86,"description":324,"extension":325,"links":326,"meta":327,"navigation":160,"path":45,"seo":329,"stem":46,"__hash__":330},"docs\u002F2.blockchains\u002Fbase.md",{"type":87,"value":88,"toc":319},"minimark",[89,96,101,197,201,213,271,287,291,309,315],[90,91],"chain-facts",{"coin":92,"curve":93,"driver":94,"formats":95},"60","secp256k1","base","EIP-55 hex",[97,98,100],"h2",{"id":99},"load-it","Load it",[102,103,108],"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-js shiki shiki-themes github-light github-light poimandres","import { useBlockchain, blockchains } from \"@agntn\u002Fkeys\";\n\nconst baseChain = useBlockchain(await blockchains.base()());\n","js","",[109,110,111,155,162],"code",{"__ignoreMap":107},[112,113,116,120,124,128,131,134,137,141,145,149,152],"span",{"class":114,"line":115},"line",1,[112,117,119],{"class":118},"sP0CR","import",[112,121,123],{"class":122},"sKlNE"," {",[112,125,127],{"class":126},"snHMy"," useBlockchain",[112,129,130],{"class":122},",",[112,132,133],{"class":126}," blockchains",[112,135,136],{"class":122}," }",[112,138,140],{"class":139},"stCPd"," from",[112,142,144],{"class":143},"scVjq"," \"",[112,146,148],{"class":147},"sQ7BG","@agntn\u002Fkeys",[112,150,151],{"class":143},"\"",[112,153,154],{"class":122},";\n",[112,156,158],{"class":114,"line":157},2,[112,159,161],{"emptyLinePlaceholder":160},true,"\n",[112,163,165,169,173,176,179,182,186,189,192,194],{"class":114,"line":164},3,[112,166,168],{"class":167},"s1TYA","const",[112,170,172],{"class":171},"saoiD"," baseChain",[112,174,175],{"class":167}," =",[112,177,127],{"class":178},"sULi6",[112,180,181],{"class":122},"(",[112,183,185],{"class":184},"sZW6a","await",[112,187,133],{"class":188},"spVlQ",[112,190,191],{"class":122},".",[112,193,94],{"class":178},[112,195,196],{"class":122},"()());\n",[97,198,200],{"id":199},"there-is-nothing-base-specific-here","There is nothing Base specific here",[202,203,204,205,208,209,212],"p",{},"Base is an Ethereum L2, and for keys and addresses that means it's Ethereum. The driver is ",[109,206,207],{},"AbstractEVMBlockchain"," with ",[109,210,211],{},"name = \"base\""," and coin type 60, because wallets don't give L2s their own coin type.",[102,214,216],{"className":104,"code":215,"language":106,"meta":107,"style":107},"const privateKey = \"0000000000000000000000000000000000000000000000000000000000000001\";\n\nbaseChain.getAddress(baseChain.getKeyPublic(privateKey)); \u002F\u002F 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf\n",[109,217,218,236,240],{"__ignoreMap":107},[112,219,220,222,225,227,229,232,234],{"class":114,"line":115},[112,221,168],{"class":167},[112,223,224],{"class":171}," privateKey",[112,226,175],{"class":167},[112,228,144],{"class":143},[112,230,231],{"class":147},"0000000000000000000000000000000000000000000000000000000000000001",[112,233,151],{"class":143},[112,235,154],{"class":122},[112,237,238],{"class":114,"line":157},[112,239,161],{"emptyLinePlaceholder":160},[112,241,242,245,247,250,252,254,256,259,261,264,267],{"class":114,"line":164},[112,243,244],{"class":188},"baseChain",[112,246,191],{"class":122},[112,248,249],{"class":178},"getAddress",[112,251,181],{"class":122},[112,253,244],{"class":188},[112,255,191],{"class":122},[112,257,258],{"class":178},"getKeyPublic",[112,260,181],{"class":122},[112,262,263],{"class":188},"privateKey",[112,265,266],{"class":122},")); ",[112,268,270],{"class":269},"sjhu3","\u002F\u002F 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf\n",[202,272,273,274,277,278,281,282,286],{},"Same address as Ethereum for the same key, same EIP-55 checksum, same ",[109,275,276],{},"personal_sign"," preamble on ",[109,279,280],{},"signMessage",". Everything on the ",[283,284,285],"a",{"href":61},"Ethereum page"," applies verbatim.",[97,288,290],{"id":289},"so-why-a-separate-driver","So why a separate driver",[202,292,293,294,297,298,300,301,304,305,308],{},"Two reasons. ",[109,295,296],{},"name"," is what the MCP tools and the lazy loader key on, so an agent can say ",[109,299,94],{}," and mean it. And ",[109,302,303],{},"deriveHDWallet"," on Base still uses ",[109,306,307],{},"m\u002F44'\u002F60'\u002F...",", which is what every wallet does, but having the driver state it keeps that decision visible instead of implied.",[202,310,311,312,314],{},"If you only ever call ",[109,313,249],{},", using the Ethereum driver for Base is fine and you won't be able to tell the difference. The funds won't either, which is the part to be careful about: an address is the same on both chains, the balance isn't.",[316,317,318],"style",{},"html pre.shiki code .sP0CR, html code.shiki .sP0CR{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7}html pre.shiki code .sKlNE, html code.shiki .sKlNE{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#A6ACCD}html pre.shiki code .snHMy, html code.shiki .snHMy{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#ADD7FF}html pre.shiki code .stCPd, html code.shiki .stCPd{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#A6ACCD}html pre.shiki code .scVjq, html code.shiki .scVjq{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#A6ACCD}html pre.shiki code .sQ7BG, html code.shiki .sQ7BG{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#5DE4C7}html pre.shiki code .s1TYA, html code.shiki .s1TYA{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#91B4D5}html pre.shiki code .saoiD, html code.shiki .saoiD{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#E4F0FB}html pre.shiki code .sULi6, html code.shiki .sULi6{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#E4F0FBD0}html pre.shiki code .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}html pre.shiki code .spVlQ, html code.shiki .spVlQ{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E4F0FB}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);}html pre.shiki code .sjhu3, html code.shiki .sjhu3{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}",{"title":107,"searchDepth":157,"depth":157,"links":320},[321,322,323],{"id":99,"depth":157,"text":100},{"id":199,"depth":157,"text":200},{"id":289,"depth":157,"text":290},"Ethereum's driver under another name. Same key. Same address. Same signatures.","md",null,{"icon":328},"i-token-base",{"title":44,"description":324},"vn73o1cYWWDeRGcbQXq4H-XpBviyNY7OqI3btH0DVeg",[332,334],{"title":40,"path":41,"stem":42,"description":333,"children":-1},"ed25519 with addresses from SHA3-256 over the public key and a scheme byte.",{"title":48,"path":49,"stem":50,"description":335,"children":-1},"secp256k1 with five address formats from legacy to taproot on mainnet and testnet.",1789887182966]