[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aptos-ts-sdk-account":3,"mdc--i30836-key":38,"related-org-aptos-ts-sdk-account":3052,"related-repo-aptos-ts-sdk-account":3206},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":33,"sourceUrl":36,"mdContent":37},"ts-sdk-account","manage Aptos accounts with TS SDK","How to create and use Account (signer) in @aptos-labs\u002Fts-sdk. Covers Account.generate(), fromPrivateKey(), fromDerivationPath(), Ed25519 vs SingleKey vs MultiKey vs Keyless, serialization (fromHex\u002FtoHex). Triggers on: 'Account.generate', 'Account.fromPrivateKey', 'Ed25519PrivateKey', 'SDK account', 'mnemonic', 'SingleKeyAccount', 'KeylessAccount'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"aptos","Aptos Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faptos.png","aptos-labs",[13,17,20,23],{"name":14,"slug":15,"type":16},"Blockchain","blockchain","tag",{"name":18,"slug":19,"type":16},"Auth","auth",{"name":21,"slug":22,"type":16},"TypeScript","typescript",{"name":24,"slug":25,"type":16},"SDK","sdk",18,"https:\u002F\u002Fgithub.com\u002Faptos-labs\u002Faptos-agent-skills","2026-07-12T08:07:29.297415","MIT",8,[32,15],"agent-skills",{"repoUrl":27,"stars":26,"forks":30,"topics":34,"description":35},[32,15],"AI skills for building secure, modern Aptos dApps — Move contracts, TypeScript SDK, and frontend integration for Claude Code, Cursor, and Copilot.","https:\u002F\u002Fgithub.com\u002Faptos-labs\u002Faptos-agent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fsdk\u002Ftypescript\u002Fts-sdk-account","---\nname: ts-sdk-account\ndescription:\n  \"How to create and use Account (signer) in @aptos-labs\u002Fts-sdk. Covers Account.generate(), fromPrivateKey(),\n  fromDerivationPath(), Ed25519 vs SingleKey vs MultiKey vs Keyless, serialization (fromHex\u002FtoHex). Triggers on:\n  'Account.generate', 'Account.fromPrivateKey', 'Ed25519PrivateKey', 'SDK account', 'mnemonic', 'SingleKeyAccount',\n  'KeylessAccount'.\"\nlicense: MIT\nmetadata:\n  author: aptos-labs\n  version: \"1.0\"\n  category: sdk\n  tags: [\"typescript\", \"sdk\", \"account\", \"signer\", \"private-key\", \"ed25519\", \"keyless\"]\n  priority: high\n---\n\n# TypeScript SDK: Account (Signer)\n\n## Purpose\n\nGuide creation and use of **Account** (signer) in `@aptos-labs\u002Fts-sdk`. An Account holds address + key material and can\nsign transactions and messages. **Creating an Account does NOT create the account on-chain**; use faucet or transfer to\nfund it.\n\n## ALWAYS\n\n1. **Use `Account.generate()` or `Account.fromPrivateKey()` only in server\u002Fscript** – never in frontend; use wallet\n   adapter for end users.\n2. **Load private keys from env (e.g. `process.env.PRIVATE_KEY`) on server** – never hardcode.\n3. **Use `account.accountAddress` when building transactions** – pass as sender\u002Fsecondary signers.\n4. **Use `aptos.signAndSubmitTransaction({ signer: account, transaction })`** with the same Account instance that holds\n   the key.\n\n## NEVER\n\n1. **Do not use `Account.generate()` or raw private keys in browser\u002Ffrontend** – use wallet adapter.\n2. **Do not hardcode private keys** in source or commit to git.\n3. **Do not confuse `Account` (API namespace) with `Account` (signer class)** – API is `aptos.account.*`; signer is the\n   class from `Account` module (e.g. `Account.fromPrivateKey`).\n\n---\n\n## Account types (signing schemes)\n\n| Type              | Class                     | Use case                           |\n| ----------------- | ------------------------- | ---------------------------------- |\n| Ed25519 (legacy)  | `Ed25519Account`          | Single Ed25519 key, legacy auth    |\n| SingleKey         | `SingleKeyAccount`        | Ed25519 or Secp256k1, unified auth |\n| MultiKey          | `MultiKeyAccount`         | Multi-sig                          |\n| Keyless           | `KeylessAccount`          | Keyless (e.g. OIDC)                |\n| Federated Keyless | `FederatedKeylessAccount` | Federated keyless                  |\n\n---\n\n## Generate new account (server\u002Fscript only)\n\n```typescript\nimport { Account, SigningSchemeInput } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Default: Ed25519 legacy\nconst ed25519Account = Account.generate();\n\n\u002F\u002F SingleKey (unified) with Ed25519\nconst singleKeyAccount = Account.generate({ scheme: SigningSchemeInput.Ed25519, legacy: false });\n\n\u002F\u002F SingleKey with Secp256k1\nconst secpAccount = Account.generate({ scheme: SigningSchemeInput.Secp256k1 });\n\n\u002F\u002F Access address and public key\nconst address = ed25519Account.accountAddress;\nconst pubKey = ed25519Account.publicKey;\n```\n\n---\n\n## From private key\n\n```typescript\nimport { Account, Ed25519PrivateKey, Secp256k1PrivateKey } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Ed25519 legacy (default)\nconst privateKeyHex = process.env.PRIVATE_KEY!; \u002F\u002F e.g. \"0x...\" or AIP-80 prefixed\nconst privateKey = new Ed25519PrivateKey(privateKeyHex);\nconst account = Account.fromPrivateKey({ privateKey });\n\n\u002F\u002F Ed25519 SingleKey (unified)\nconst accountSingle = Account.fromPrivateKey({\n  privateKey: new Ed25519PrivateKey(privateKeyHex),\n  legacy: false\n});\n\n\u002F\u002F Secp256k1 (always SingleKey)\nconst secpKey = new Secp256k1PrivateKey(process.env.SECP_KEY!);\nconst accountSecp = Account.fromPrivateKey({ privateKey: secpKey });\n\n\u002F\u002F Optional: fixed address (e.g. after key rotation)\nconst accountWithAddr = Account.fromPrivateKey({\n  privateKey,\n  address: \"0x...\"\n});\n```\n\n---\n\n## From mnemonic (derivation path)\n\n```typescript\nimport { Account } from \"@aptos-labs\u002Fts-sdk\";\n\nconst mnemonic = \"word1 word2 ... word12\";\nconst path = \"m\u002F44'\u002F637'\u002F0'\u002F0'\u002F0'\"; \u002F\u002F Aptos BIP-44 path\n\n\u002F\u002F Ed25519 legacy\nconst acc = Account.fromDerivationPath({ mnemonic, path });\n\n\u002F\u002F Ed25519 SingleKey\nconst accSingle = Account.fromDerivationPath({ mnemonic, path, legacy: false });\n\n\u002F\u002F Secp256k1\nconst accSecp = Account.fromDerivationPath({\n  scheme: SigningSchemeInput.Secp256k1,\n  mnemonic,\n  path\n});\n```\n\n---\n\n## Auth key (for rotation \u002F lookup)\n\n```typescript\nconst authKey = Account.authKey({ publicKey: account.publicKey });\n\u002F\u002F Use authKey.derivedAddress() for address derivation; useful for multi-account lookup\n```\n\n---\n\n## Serialization (toHex \u002F fromHex)\n\nUse when persisting or sending account (e.g. server-only, never expose private key to frontend):\n\n```typescript\nimport { Account, AccountUtils } from \"@aptos-labs\u002Fts-sdk\";\n\nconst account = Account.generate();\n\n\u002F\u002F Serialize to hex (includes private key – treat as secret)\nconst hex = AccountUtils.toHexString(account);\n\n\u002F\u002F Deserialize back\nconst restored = AccountUtils.fromHex(hex);\n\n\u002F\u002F Typed deserialize\nconst edAccount = AccountUtils.ed25519AccountFromHex(hex);\nconst singleAccount = AccountUtils.singleKeyAccountFromHex(hex);\nconst multiAccount = AccountUtils.multiKeyAccountFromHex(hex);\nconst keylessAccount = AccountUtils.keylessAccountFromHex(hex);\n```\n\n---\n\n## Signing\n\n```typescript\n\u002F\u002F Sign message (returns Signature)\nconst sig = account.sign(messageHex);\n\n\u002F\u002F Sign transaction (returns Signature; for submit use aptos.transaction.sign + submit)\nconst txSig = account.signTransaction(rawTransaction);\n\n\u002F\u002F With authenticator (used by SDK internally for submit)\nconst auth = account.signWithAuthenticator(messageHex);\n```\n\n---\n\n## Verify signature\n\n```typescript\nconst ok = account.verifySignature({ message: messageHex, signature: sig });\n\n\u002F\u002F Async (if key type needs on-chain state)\nconst okAsync = await account.verifySignatureAsync({\n  aptosConfig: aptos.config,\n  message: messageHex,\n  signature: sig\n});\n```\n\n---\n\n## Derive account from private key (on-chain lookup)\n\nWhen the same key may have multiple on-chain accounts (e.g. after rotation), use internal derivation + lookup:\n\n```typescript\n\u002F\u002F Returns list of accounts owned by this key on chain\nconst accounts = await aptos.deriveOwnedAccountsFromSigner({\n  signer: account\n});\n\u002F\u002F Prefer wallet or explicit address for production; this is for scripts\u002Ftooling\n```\n\n---\n\n## Common mistakes\n\n| Mistake                                            | Correct approach                                                                              |\n| -------------------------------------------------- | --------------------------------------------------------------------------------------------- |\n| Using `Account.generate()` in frontend             | Use wallet adapter; generate only in server\u002Fscript                                            |\n| Hardcoding private key                             | Load from `process.env` (server) and never commit                                             |\n| Using `aptos.account` as signer                    | `aptos.account` is API namespace; signer is `Account.fromPrivateKey()` \u002F `Account.generate()` |\n| Expecting account to exist on-chain after generate | Fund with faucet or transfer first                                                            |\n\n---\n\n## References\n\n- SDK: `src\u002Faccount\u002FAccount.ts`, `src\u002Faccount\u002FEd25519Account.ts`, `src\u002Faccount\u002FAccountUtils.ts`, `src\u002Fapi\u002Faccount.ts`\n- Pattern: [TYPESCRIPT_SDK.md](..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md)\n- Related: [ts-sdk-client](..\u002Fts-sdk-client\u002FSKILL.md), [ts-sdk-transactions](..\u002Fts-sdk-transactions\u002FSKILL.md),\n  [use-ts-sdk](..\u002Fuse-ts-sdk\u002FSKILL.md)\n",{"data":39,"body":49},{"name":4,"description":6,"license":29,"metadata":40},{"author":11,"version":41,"category":25,"tags":42,"priority":48},"1.0",[22,25,43,44,45,46,47],"account","signer","private-key","ed25519","keyless","high",{"type":50,"children":51},"root",[52,61,68,98,104,185,191,268,272,278,421,424,430,853,856,862,1435,1438,1444,1853,1856,1862,1949,1952,1958,1963,2329,2332,2338,2496,2499,2505,2731,2734,2740,2745,2841,2844,2850,2963,2966,2972,3046],{"type":53,"tag":54,"props":55,"children":57},"element","h1",{"id":56},"typescript-sdk-account-signer",[58],{"type":59,"value":60},"text","TypeScript SDK: Account (Signer)",{"type":53,"tag":62,"props":63,"children":65},"h2",{"id":64},"purpose",[66],{"type":59,"value":67},"Purpose",{"type":53,"tag":69,"props":70,"children":71},"p",{},[72,74,80,82,89,91,96],{"type":59,"value":73},"Guide creation and use of ",{"type":53,"tag":75,"props":76,"children":77},"strong",{},[78],{"type":59,"value":79},"Account",{"type":59,"value":81}," (signer) in ",{"type":53,"tag":83,"props":84,"children":86},"code",{"className":85},[],[87],{"type":59,"value":88},"@aptos-labs\u002Fts-sdk",{"type":59,"value":90},". An Account holds address + key material and can\nsign transactions and messages. ",{"type":53,"tag":75,"props":92,"children":93},{},[94],{"type":59,"value":95},"Creating an Account does NOT create the account on-chain",{"type":59,"value":97},"; use faucet or transfer to\nfund it.",{"type":53,"tag":62,"props":99,"children":101},{"id":100},"always",[102],{"type":59,"value":103},"ALWAYS",{"type":53,"tag":105,"props":106,"children":107},"ol",{},[108,135,153,170],{"type":53,"tag":109,"props":110,"children":111},"li",{},[112,133],{"type":53,"tag":75,"props":113,"children":114},{},[115,117,123,125,131],{"type":59,"value":116},"Use ",{"type":53,"tag":83,"props":118,"children":120},{"className":119},[],[121],{"type":59,"value":122},"Account.generate()",{"type":59,"value":124}," or ",{"type":53,"tag":83,"props":126,"children":128},{"className":127},[],[129],{"type":59,"value":130},"Account.fromPrivateKey()",{"type":59,"value":132}," only in server\u002Fscript",{"type":59,"value":134}," – never in frontend; use wallet\nadapter for end users.",{"type":53,"tag":109,"props":136,"children":137},{},[138,151],{"type":53,"tag":75,"props":139,"children":140},{},[141,143,149],{"type":59,"value":142},"Load private keys from env (e.g. ",{"type":53,"tag":83,"props":144,"children":146},{"className":145},[],[147],{"type":59,"value":148},"process.env.PRIVATE_KEY",{"type":59,"value":150},") on server",{"type":59,"value":152}," – never hardcode.",{"type":53,"tag":109,"props":154,"children":155},{},[156,168],{"type":53,"tag":75,"props":157,"children":158},{},[159,160,166],{"type":59,"value":116},{"type":53,"tag":83,"props":161,"children":163},{"className":162},[],[164],{"type":59,"value":165},"account.accountAddress",{"type":59,"value":167}," when building transactions",{"type":59,"value":169}," – pass as sender\u002Fsecondary signers.",{"type":53,"tag":109,"props":171,"children":172},{},[173,183],{"type":53,"tag":75,"props":174,"children":175},{},[176,177],{"type":59,"value":116},{"type":53,"tag":83,"props":178,"children":180},{"className":179},[],[181],{"type":59,"value":182},"aptos.signAndSubmitTransaction({ signer: account, transaction })",{"type":59,"value":184}," with the same Account instance that holds\nthe key.",{"type":53,"tag":62,"props":186,"children":188},{"id":187},"never",[189],{"type":59,"value":190},"NEVER",{"type":53,"tag":105,"props":192,"children":193},{},[194,211,221],{"type":53,"tag":109,"props":195,"children":196},{},[197,209],{"type":53,"tag":75,"props":198,"children":199},{},[200,202,207],{"type":59,"value":201},"Do not use ",{"type":53,"tag":83,"props":203,"children":205},{"className":204},[],[206],{"type":59,"value":122},{"type":59,"value":208}," or raw private keys in browser\u002Ffrontend",{"type":59,"value":210}," – use wallet adapter.",{"type":53,"tag":109,"props":212,"children":213},{},[214,219],{"type":53,"tag":75,"props":215,"children":216},{},[217],{"type":59,"value":218},"Do not hardcode private keys",{"type":59,"value":220}," in source or commit to git.",{"type":53,"tag":109,"props":222,"children":223},{},[224,243,245,251,253,258,260,266],{"type":53,"tag":75,"props":225,"children":226},{},[227,229,234,236,241],{"type":59,"value":228},"Do not confuse ",{"type":53,"tag":83,"props":230,"children":232},{"className":231},[],[233],{"type":59,"value":79},{"type":59,"value":235}," (API namespace) with ",{"type":53,"tag":83,"props":237,"children":239},{"className":238},[],[240],{"type":59,"value":79},{"type":59,"value":242}," (signer class)",{"type":59,"value":244}," – API is ",{"type":53,"tag":83,"props":246,"children":248},{"className":247},[],[249],{"type":59,"value":250},"aptos.account.*",{"type":59,"value":252},"; signer is the\nclass from ",{"type":53,"tag":83,"props":254,"children":256},{"className":255},[],[257],{"type":59,"value":79},{"type":59,"value":259}," module (e.g. ",{"type":53,"tag":83,"props":261,"children":263},{"className":262},[],[264],{"type":59,"value":265},"Account.fromPrivateKey",{"type":59,"value":267},").",{"type":53,"tag":269,"props":270,"children":271},"hr",{},[],{"type":53,"tag":62,"props":273,"children":275},{"id":274},"account-types-signing-schemes",[276],{"type":59,"value":277},"Account types (signing schemes)",{"type":53,"tag":279,"props":280,"children":281},"table",{},[282,306],{"type":53,"tag":283,"props":284,"children":285},"thead",{},[286],{"type":53,"tag":287,"props":288,"children":289},"tr",{},[290,296,301],{"type":53,"tag":291,"props":292,"children":293},"th",{},[294],{"type":59,"value":295},"Type",{"type":53,"tag":291,"props":297,"children":298},{},[299],{"type":59,"value":300},"Class",{"type":53,"tag":291,"props":302,"children":303},{},[304],{"type":59,"value":305},"Use case",{"type":53,"tag":307,"props":308,"children":309},"tbody",{},[310,333,355,377,399],{"type":53,"tag":287,"props":311,"children":312},{},[313,319,328],{"type":53,"tag":314,"props":315,"children":316},"td",{},[317],{"type":59,"value":318},"Ed25519 (legacy)",{"type":53,"tag":314,"props":320,"children":321},{},[322],{"type":53,"tag":83,"props":323,"children":325},{"className":324},[],[326],{"type":59,"value":327},"Ed25519Account",{"type":53,"tag":314,"props":329,"children":330},{},[331],{"type":59,"value":332},"Single Ed25519 key, legacy auth",{"type":53,"tag":287,"props":334,"children":335},{},[336,341,350],{"type":53,"tag":314,"props":337,"children":338},{},[339],{"type":59,"value":340},"SingleKey",{"type":53,"tag":314,"props":342,"children":343},{},[344],{"type":53,"tag":83,"props":345,"children":347},{"className":346},[],[348],{"type":59,"value":349},"SingleKeyAccount",{"type":53,"tag":314,"props":351,"children":352},{},[353],{"type":59,"value":354},"Ed25519 or Secp256k1, unified auth",{"type":53,"tag":287,"props":356,"children":357},{},[358,363,372],{"type":53,"tag":314,"props":359,"children":360},{},[361],{"type":59,"value":362},"MultiKey",{"type":53,"tag":314,"props":364,"children":365},{},[366],{"type":53,"tag":83,"props":367,"children":369},{"className":368},[],[370],{"type":59,"value":371},"MultiKeyAccount",{"type":53,"tag":314,"props":373,"children":374},{},[375],{"type":59,"value":376},"Multi-sig",{"type":53,"tag":287,"props":378,"children":379},{},[380,385,394],{"type":53,"tag":314,"props":381,"children":382},{},[383],{"type":59,"value":384},"Keyless",{"type":53,"tag":314,"props":386,"children":387},{},[388],{"type":53,"tag":83,"props":389,"children":391},{"className":390},[],[392],{"type":59,"value":393},"KeylessAccount",{"type":53,"tag":314,"props":395,"children":396},{},[397],{"type":59,"value":398},"Keyless (e.g. OIDC)",{"type":53,"tag":287,"props":400,"children":401},{},[402,407,416],{"type":53,"tag":314,"props":403,"children":404},{},[405],{"type":59,"value":406},"Federated Keyless",{"type":53,"tag":314,"props":408,"children":409},{},[410],{"type":53,"tag":83,"props":411,"children":413},{"className":412},[],[414],{"type":59,"value":415},"FederatedKeylessAccount",{"type":53,"tag":314,"props":417,"children":418},{},[419],{"type":59,"value":420},"Federated keyless",{"type":53,"tag":269,"props":422,"children":423},{},[],{"type":53,"tag":62,"props":425,"children":427},{"id":426},"generate-new-account-serverscript-only",[428],{"type":59,"value":429},"Generate new account (server\u002Fscript only)",{"type":53,"tag":431,"props":432,"children":436},"pre",{"className":433,"code":434,"language":22,"meta":435,"style":435},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Account, SigningSchemeInput } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Default: Ed25519 legacy\nconst ed25519Account = Account.generate();\n\n\u002F\u002F SingleKey (unified) with Ed25519\nconst singleKeyAccount = Account.generate({ scheme: SigningSchemeInput.Ed25519, legacy: false });\n\n\u002F\u002F SingleKey with Secp256k1\nconst secpAccount = Account.generate({ scheme: SigningSchemeInput.Secp256k1 });\n\n\u002F\u002F Access address and public key\nconst address = ed25519Account.accountAddress;\nconst pubKey = ed25519Account.publicKey;\n","",[437],{"type":53,"tag":83,"props":438,"children":439},{"__ignoreMap":435},[440,504,514,524,568,576,585,680,687,696,767,775,784,819],{"type":53,"tag":441,"props":442,"children":445},"span",{"class":443,"line":444},"line",1,[446,452,458,464,469,474,479,484,489,494,499],{"type":53,"tag":441,"props":447,"children":449},{"style":448},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[450],{"type":59,"value":451},"import",{"type":53,"tag":441,"props":453,"children":455},{"style":454},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[456],{"type":59,"value":457}," {",{"type":53,"tag":441,"props":459,"children":461},{"style":460},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[462],{"type":59,"value":463}," Account",{"type":53,"tag":441,"props":465,"children":466},{"style":454},[467],{"type":59,"value":468},",",{"type":53,"tag":441,"props":470,"children":471},{"style":460},[472],{"type":59,"value":473}," SigningSchemeInput",{"type":53,"tag":441,"props":475,"children":476},{"style":454},[477],{"type":59,"value":478}," }",{"type":53,"tag":441,"props":480,"children":481},{"style":448},[482],{"type":59,"value":483}," from",{"type":53,"tag":441,"props":485,"children":486},{"style":454},[487],{"type":59,"value":488}," \"",{"type":53,"tag":441,"props":490,"children":492},{"style":491},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[493],{"type":59,"value":88},{"type":53,"tag":441,"props":495,"children":496},{"style":454},[497],{"type":59,"value":498},"\"",{"type":53,"tag":441,"props":500,"children":501},{"style":454},[502],{"type":59,"value":503},";\n",{"type":53,"tag":441,"props":505,"children":507},{"class":443,"line":506},2,[508],{"type":53,"tag":441,"props":509,"children":511},{"emptyLinePlaceholder":510},true,[512],{"type":59,"value":513},"\n",{"type":53,"tag":441,"props":515,"children":517},{"class":443,"line":516},3,[518],{"type":53,"tag":441,"props":519,"children":521},{"style":520},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[522],{"type":59,"value":523},"\u002F\u002F Default: Ed25519 legacy\n",{"type":53,"tag":441,"props":525,"children":527},{"class":443,"line":526},4,[528,534,539,544,548,553,559,564],{"type":53,"tag":441,"props":529,"children":531},{"style":530},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[532],{"type":59,"value":533},"const",{"type":53,"tag":441,"props":535,"children":536},{"style":460},[537],{"type":59,"value":538}," ed25519Account ",{"type":53,"tag":441,"props":540,"children":541},{"style":454},[542],{"type":59,"value":543},"=",{"type":53,"tag":441,"props":545,"children":546},{"style":460},[547],{"type":59,"value":463},{"type":53,"tag":441,"props":549,"children":550},{"style":454},[551],{"type":59,"value":552},".",{"type":53,"tag":441,"props":554,"children":556},{"style":555},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[557],{"type":59,"value":558},"generate",{"type":53,"tag":441,"props":560,"children":561},{"style":460},[562],{"type":59,"value":563},"()",{"type":53,"tag":441,"props":565,"children":566},{"style":454},[567],{"type":59,"value":503},{"type":53,"tag":441,"props":569,"children":571},{"class":443,"line":570},5,[572],{"type":53,"tag":441,"props":573,"children":574},{"emptyLinePlaceholder":510},[575],{"type":59,"value":513},{"type":53,"tag":441,"props":577,"children":579},{"class":443,"line":578},6,[580],{"type":53,"tag":441,"props":581,"children":582},{"style":520},[583],{"type":59,"value":584},"\u002F\u002F SingleKey (unified) with Ed25519\n",{"type":53,"tag":441,"props":586,"children":588},{"class":443,"line":587},7,[589,593,598,602,606,610,614,619,624,630,635,639,643,648,652,657,661,667,671,676],{"type":53,"tag":441,"props":590,"children":591},{"style":530},[592],{"type":59,"value":533},{"type":53,"tag":441,"props":594,"children":595},{"style":460},[596],{"type":59,"value":597}," singleKeyAccount ",{"type":53,"tag":441,"props":599,"children":600},{"style":454},[601],{"type":59,"value":543},{"type":53,"tag":441,"props":603,"children":604},{"style":460},[605],{"type":59,"value":463},{"type":53,"tag":441,"props":607,"children":608},{"style":454},[609],{"type":59,"value":552},{"type":53,"tag":441,"props":611,"children":612},{"style":555},[613],{"type":59,"value":558},{"type":53,"tag":441,"props":615,"children":616},{"style":460},[617],{"type":59,"value":618},"(",{"type":53,"tag":441,"props":620,"children":621},{"style":454},[622],{"type":59,"value":623},"{",{"type":53,"tag":441,"props":625,"children":627},{"style":626},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[628],{"type":59,"value":629}," scheme",{"type":53,"tag":441,"props":631,"children":632},{"style":454},[633],{"type":59,"value":634},":",{"type":53,"tag":441,"props":636,"children":637},{"style":460},[638],{"type":59,"value":473},{"type":53,"tag":441,"props":640,"children":641},{"style":454},[642],{"type":59,"value":552},{"type":53,"tag":441,"props":644,"children":645},{"style":460},[646],{"type":59,"value":647},"Ed25519",{"type":53,"tag":441,"props":649,"children":650},{"style":454},[651],{"type":59,"value":468},{"type":53,"tag":441,"props":653,"children":654},{"style":626},[655],{"type":59,"value":656}," legacy",{"type":53,"tag":441,"props":658,"children":659},{"style":454},[660],{"type":59,"value":634},{"type":53,"tag":441,"props":662,"children":664},{"style":663},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[665],{"type":59,"value":666}," false",{"type":53,"tag":441,"props":668,"children":669},{"style":454},[670],{"type":59,"value":478},{"type":53,"tag":441,"props":672,"children":673},{"style":460},[674],{"type":59,"value":675},")",{"type":53,"tag":441,"props":677,"children":678},{"style":454},[679],{"type":59,"value":503},{"type":53,"tag":441,"props":681,"children":682},{"class":443,"line":30},[683],{"type":53,"tag":441,"props":684,"children":685},{"emptyLinePlaceholder":510},[686],{"type":59,"value":513},{"type":53,"tag":441,"props":688,"children":690},{"class":443,"line":689},9,[691],{"type":53,"tag":441,"props":692,"children":693},{"style":520},[694],{"type":59,"value":695},"\u002F\u002F SingleKey with Secp256k1\n",{"type":53,"tag":441,"props":697,"children":699},{"class":443,"line":698},10,[700,704,709,713,717,721,725,729,733,737,741,745,749,754,759,763],{"type":53,"tag":441,"props":701,"children":702},{"style":530},[703],{"type":59,"value":533},{"type":53,"tag":441,"props":705,"children":706},{"style":460},[707],{"type":59,"value":708}," secpAccount ",{"type":53,"tag":441,"props":710,"children":711},{"style":454},[712],{"type":59,"value":543},{"type":53,"tag":441,"props":714,"children":715},{"style":460},[716],{"type":59,"value":463},{"type":53,"tag":441,"props":718,"children":719},{"style":454},[720],{"type":59,"value":552},{"type":53,"tag":441,"props":722,"children":723},{"style":555},[724],{"type":59,"value":558},{"type":53,"tag":441,"props":726,"children":727},{"style":460},[728],{"type":59,"value":618},{"type":53,"tag":441,"props":730,"children":731},{"style":454},[732],{"type":59,"value":623},{"type":53,"tag":441,"props":734,"children":735},{"style":626},[736],{"type":59,"value":629},{"type":53,"tag":441,"props":738,"children":739},{"style":454},[740],{"type":59,"value":634},{"type":53,"tag":441,"props":742,"children":743},{"style":460},[744],{"type":59,"value":473},{"type":53,"tag":441,"props":746,"children":747},{"style":454},[748],{"type":59,"value":552},{"type":53,"tag":441,"props":750,"children":751},{"style":460},[752],{"type":59,"value":753},"Secp256k1 ",{"type":53,"tag":441,"props":755,"children":756},{"style":454},[757],{"type":59,"value":758},"}",{"type":53,"tag":441,"props":760,"children":761},{"style":460},[762],{"type":59,"value":675},{"type":53,"tag":441,"props":764,"children":765},{"style":454},[766],{"type":59,"value":503},{"type":53,"tag":441,"props":768,"children":770},{"class":443,"line":769},11,[771],{"type":53,"tag":441,"props":772,"children":773},{"emptyLinePlaceholder":510},[774],{"type":59,"value":513},{"type":53,"tag":441,"props":776,"children":778},{"class":443,"line":777},12,[779],{"type":53,"tag":441,"props":780,"children":781},{"style":520},[782],{"type":59,"value":783},"\u002F\u002F Access address and public key\n",{"type":53,"tag":441,"props":785,"children":787},{"class":443,"line":786},13,[788,792,797,801,806,810,815],{"type":53,"tag":441,"props":789,"children":790},{"style":530},[791],{"type":59,"value":533},{"type":53,"tag":441,"props":793,"children":794},{"style":460},[795],{"type":59,"value":796}," address ",{"type":53,"tag":441,"props":798,"children":799},{"style":454},[800],{"type":59,"value":543},{"type":53,"tag":441,"props":802,"children":803},{"style":460},[804],{"type":59,"value":805}," ed25519Account",{"type":53,"tag":441,"props":807,"children":808},{"style":454},[809],{"type":59,"value":552},{"type":53,"tag":441,"props":811,"children":812},{"style":460},[813],{"type":59,"value":814},"accountAddress",{"type":53,"tag":441,"props":816,"children":817},{"style":454},[818],{"type":59,"value":503},{"type":53,"tag":441,"props":820,"children":822},{"class":443,"line":821},14,[823,827,832,836,840,844,849],{"type":53,"tag":441,"props":824,"children":825},{"style":530},[826],{"type":59,"value":533},{"type":53,"tag":441,"props":828,"children":829},{"style":460},[830],{"type":59,"value":831}," pubKey ",{"type":53,"tag":441,"props":833,"children":834},{"style":454},[835],{"type":59,"value":543},{"type":53,"tag":441,"props":837,"children":838},{"style":460},[839],{"type":59,"value":805},{"type":53,"tag":441,"props":841,"children":842},{"style":454},[843],{"type":59,"value":552},{"type":53,"tag":441,"props":845,"children":846},{"style":460},[847],{"type":59,"value":848},"publicKey",{"type":53,"tag":441,"props":850,"children":851},{"style":454},[852],{"type":59,"value":503},{"type":53,"tag":269,"props":854,"children":855},{},[],{"type":53,"tag":62,"props":857,"children":859},{"id":858},"from-private-key",[860],{"type":59,"value":861},"From private key",{"type":53,"tag":431,"props":863,"children":865},{"className":433,"code":864,"language":22,"meta":435,"style":435},"import { Account, Ed25519PrivateKey, Secp256k1PrivateKey } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Ed25519 legacy (default)\nconst privateKeyHex = process.env.PRIVATE_KEY!; \u002F\u002F e.g. \"0x...\" or AIP-80 prefixed\nconst privateKey = new Ed25519PrivateKey(privateKeyHex);\nconst account = Account.fromPrivateKey({ privateKey });\n\n\u002F\u002F Ed25519 SingleKey (unified)\nconst accountSingle = Account.fromPrivateKey({\n  privateKey: new Ed25519PrivateKey(privateKeyHex),\n  legacy: false\n});\n\n\u002F\u002F Secp256k1 (always SingleKey)\nconst secpKey = new Secp256k1PrivateKey(process.env.SECP_KEY!);\nconst accountSecp = Account.fromPrivateKey({ privateKey: secpKey });\n\n\u002F\u002F Optional: fixed address (e.g. after key rotation)\nconst accountWithAddr = Account.fromPrivateKey({\n  privateKey,\n  address: \"0x...\"\n});\n",[866],{"type":53,"tag":83,"props":867,"children":868},{"__ignoreMap":435},[869,926,933,941,990,1024,1077,1084,1092,1129,1158,1175,1190,1197,1205,1265,1327,1335,1343,1380,1392,1419],{"type":53,"tag":441,"props":870,"children":871},{"class":443,"line":444},[872,876,880,884,888,893,897,902,906,910,914,918,922],{"type":53,"tag":441,"props":873,"children":874},{"style":448},[875],{"type":59,"value":451},{"type":53,"tag":441,"props":877,"children":878},{"style":454},[879],{"type":59,"value":457},{"type":53,"tag":441,"props":881,"children":882},{"style":460},[883],{"type":59,"value":463},{"type":53,"tag":441,"props":885,"children":886},{"style":454},[887],{"type":59,"value":468},{"type":53,"tag":441,"props":889,"children":890},{"style":460},[891],{"type":59,"value":892}," Ed25519PrivateKey",{"type":53,"tag":441,"props":894,"children":895},{"style":454},[896],{"type":59,"value":468},{"type":53,"tag":441,"props":898,"children":899},{"style":460},[900],{"type":59,"value":901}," Secp256k1PrivateKey",{"type":53,"tag":441,"props":903,"children":904},{"style":454},[905],{"type":59,"value":478},{"type":53,"tag":441,"props":907,"children":908},{"style":448},[909],{"type":59,"value":483},{"type":53,"tag":441,"props":911,"children":912},{"style":454},[913],{"type":59,"value":488},{"type":53,"tag":441,"props":915,"children":916},{"style":491},[917],{"type":59,"value":88},{"type":53,"tag":441,"props":919,"children":920},{"style":454},[921],{"type":59,"value":498},{"type":53,"tag":441,"props":923,"children":924},{"style":454},[925],{"type":59,"value":503},{"type":53,"tag":441,"props":927,"children":928},{"class":443,"line":506},[929],{"type":53,"tag":441,"props":930,"children":931},{"emptyLinePlaceholder":510},[932],{"type":59,"value":513},{"type":53,"tag":441,"props":934,"children":935},{"class":443,"line":516},[936],{"type":53,"tag":441,"props":937,"children":938},{"style":520},[939],{"type":59,"value":940},"\u002F\u002F Ed25519 legacy (default)\n",{"type":53,"tag":441,"props":942,"children":943},{"class":443,"line":526},[944,948,953,957,962,966,971,975,980,985],{"type":53,"tag":441,"props":945,"children":946},{"style":530},[947],{"type":59,"value":533},{"type":53,"tag":441,"props":949,"children":950},{"style":460},[951],{"type":59,"value":952}," privateKeyHex ",{"type":53,"tag":441,"props":954,"children":955},{"style":454},[956],{"type":59,"value":543},{"type":53,"tag":441,"props":958,"children":959},{"style":460},[960],{"type":59,"value":961}," process",{"type":53,"tag":441,"props":963,"children":964},{"style":454},[965],{"type":59,"value":552},{"type":53,"tag":441,"props":967,"children":968},{"style":460},[969],{"type":59,"value":970},"env",{"type":53,"tag":441,"props":972,"children":973},{"style":454},[974],{"type":59,"value":552},{"type":53,"tag":441,"props":976,"children":977},{"style":460},[978],{"type":59,"value":979},"PRIVATE_KEY",{"type":53,"tag":441,"props":981,"children":982},{"style":454},[983],{"type":59,"value":984},"!;",{"type":53,"tag":441,"props":986,"children":987},{"style":520},[988],{"type":59,"value":989}," \u002F\u002F e.g. \"0x...\" or AIP-80 prefixed\n",{"type":53,"tag":441,"props":991,"children":992},{"class":443,"line":570},[993,997,1002,1006,1011,1015,1020],{"type":53,"tag":441,"props":994,"children":995},{"style":530},[996],{"type":59,"value":533},{"type":53,"tag":441,"props":998,"children":999},{"style":460},[1000],{"type":59,"value":1001}," privateKey ",{"type":53,"tag":441,"props":1003,"children":1004},{"style":454},[1005],{"type":59,"value":543},{"type":53,"tag":441,"props":1007,"children":1008},{"style":454},[1009],{"type":59,"value":1010}," new",{"type":53,"tag":441,"props":1012,"children":1013},{"style":555},[1014],{"type":59,"value":892},{"type":53,"tag":441,"props":1016,"children":1017},{"style":460},[1018],{"type":59,"value":1019},"(privateKeyHex)",{"type":53,"tag":441,"props":1021,"children":1022},{"style":454},[1023],{"type":59,"value":503},{"type":53,"tag":441,"props":1025,"children":1026},{"class":443,"line":578},[1027,1031,1036,1040,1044,1048,1053,1057,1061,1065,1069,1073],{"type":53,"tag":441,"props":1028,"children":1029},{"style":530},[1030],{"type":59,"value":533},{"type":53,"tag":441,"props":1032,"children":1033},{"style":460},[1034],{"type":59,"value":1035}," account ",{"type":53,"tag":441,"props":1037,"children":1038},{"style":454},[1039],{"type":59,"value":543},{"type":53,"tag":441,"props":1041,"children":1042},{"style":460},[1043],{"type":59,"value":463},{"type":53,"tag":441,"props":1045,"children":1046},{"style":454},[1047],{"type":59,"value":552},{"type":53,"tag":441,"props":1049,"children":1050},{"style":555},[1051],{"type":59,"value":1052},"fromPrivateKey",{"type":53,"tag":441,"props":1054,"children":1055},{"style":460},[1056],{"type":59,"value":618},{"type":53,"tag":441,"props":1058,"children":1059},{"style":454},[1060],{"type":59,"value":623},{"type":53,"tag":441,"props":1062,"children":1063},{"style":460},[1064],{"type":59,"value":1001},{"type":53,"tag":441,"props":1066,"children":1067},{"style":454},[1068],{"type":59,"value":758},{"type":53,"tag":441,"props":1070,"children":1071},{"style":460},[1072],{"type":59,"value":675},{"type":53,"tag":441,"props":1074,"children":1075},{"style":454},[1076],{"type":59,"value":503},{"type":53,"tag":441,"props":1078,"children":1079},{"class":443,"line":587},[1080],{"type":53,"tag":441,"props":1081,"children":1082},{"emptyLinePlaceholder":510},[1083],{"type":59,"value":513},{"type":53,"tag":441,"props":1085,"children":1086},{"class":443,"line":30},[1087],{"type":53,"tag":441,"props":1088,"children":1089},{"style":520},[1090],{"type":59,"value":1091},"\u002F\u002F Ed25519 SingleKey (unified)\n",{"type":53,"tag":441,"props":1093,"children":1094},{"class":443,"line":689},[1095,1099,1104,1108,1112,1116,1120,1124],{"type":53,"tag":441,"props":1096,"children":1097},{"style":530},[1098],{"type":59,"value":533},{"type":53,"tag":441,"props":1100,"children":1101},{"style":460},[1102],{"type":59,"value":1103}," accountSingle ",{"type":53,"tag":441,"props":1105,"children":1106},{"style":454},[1107],{"type":59,"value":543},{"type":53,"tag":441,"props":1109,"children":1110},{"style":460},[1111],{"type":59,"value":463},{"type":53,"tag":441,"props":1113,"children":1114},{"style":454},[1115],{"type":59,"value":552},{"type":53,"tag":441,"props":1117,"children":1118},{"style":555},[1119],{"type":59,"value":1052},{"type":53,"tag":441,"props":1121,"children":1122},{"style":460},[1123],{"type":59,"value":618},{"type":53,"tag":441,"props":1125,"children":1126},{"style":454},[1127],{"type":59,"value":1128},"{\n",{"type":53,"tag":441,"props":1130,"children":1131},{"class":443,"line":698},[1132,1137,1141,1145,1149,1153],{"type":53,"tag":441,"props":1133,"children":1134},{"style":626},[1135],{"type":59,"value":1136},"  privateKey",{"type":53,"tag":441,"props":1138,"children":1139},{"style":454},[1140],{"type":59,"value":634},{"type":53,"tag":441,"props":1142,"children":1143},{"style":454},[1144],{"type":59,"value":1010},{"type":53,"tag":441,"props":1146,"children":1147},{"style":555},[1148],{"type":59,"value":892},{"type":53,"tag":441,"props":1150,"children":1151},{"style":460},[1152],{"type":59,"value":1019},{"type":53,"tag":441,"props":1154,"children":1155},{"style":454},[1156],{"type":59,"value":1157},",\n",{"type":53,"tag":441,"props":1159,"children":1160},{"class":443,"line":769},[1161,1166,1170],{"type":53,"tag":441,"props":1162,"children":1163},{"style":626},[1164],{"type":59,"value":1165},"  legacy",{"type":53,"tag":441,"props":1167,"children":1168},{"style":454},[1169],{"type":59,"value":634},{"type":53,"tag":441,"props":1171,"children":1172},{"style":663},[1173],{"type":59,"value":1174}," false\n",{"type":53,"tag":441,"props":1176,"children":1177},{"class":443,"line":777},[1178,1182,1186],{"type":53,"tag":441,"props":1179,"children":1180},{"style":454},[1181],{"type":59,"value":758},{"type":53,"tag":441,"props":1183,"children":1184},{"style":460},[1185],{"type":59,"value":675},{"type":53,"tag":441,"props":1187,"children":1188},{"style":454},[1189],{"type":59,"value":503},{"type":53,"tag":441,"props":1191,"children":1192},{"class":443,"line":786},[1193],{"type":53,"tag":441,"props":1194,"children":1195},{"emptyLinePlaceholder":510},[1196],{"type":59,"value":513},{"type":53,"tag":441,"props":1198,"children":1199},{"class":443,"line":821},[1200],{"type":53,"tag":441,"props":1201,"children":1202},{"style":520},[1203],{"type":59,"value":1204},"\u002F\u002F Secp256k1 (always SingleKey)\n",{"type":53,"tag":441,"props":1206,"children":1208},{"class":443,"line":1207},15,[1209,1213,1218,1222,1226,1230,1235,1239,1243,1247,1252,1257,1261],{"type":53,"tag":441,"props":1210,"children":1211},{"style":530},[1212],{"type":59,"value":533},{"type":53,"tag":441,"props":1214,"children":1215},{"style":460},[1216],{"type":59,"value":1217}," secpKey ",{"type":53,"tag":441,"props":1219,"children":1220},{"style":454},[1221],{"type":59,"value":543},{"type":53,"tag":441,"props":1223,"children":1224},{"style":454},[1225],{"type":59,"value":1010},{"type":53,"tag":441,"props":1227,"children":1228},{"style":555},[1229],{"type":59,"value":901},{"type":53,"tag":441,"props":1231,"children":1232},{"style":460},[1233],{"type":59,"value":1234},"(process",{"type":53,"tag":441,"props":1236,"children":1237},{"style":454},[1238],{"type":59,"value":552},{"type":53,"tag":441,"props":1240,"children":1241},{"style":460},[1242],{"type":59,"value":970},{"type":53,"tag":441,"props":1244,"children":1245},{"style":454},[1246],{"type":59,"value":552},{"type":53,"tag":441,"props":1248,"children":1249},{"style":460},[1250],{"type":59,"value":1251},"SECP_KEY",{"type":53,"tag":441,"props":1253,"children":1254},{"style":454},[1255],{"type":59,"value":1256},"!",{"type":53,"tag":441,"props":1258,"children":1259},{"style":460},[1260],{"type":59,"value":675},{"type":53,"tag":441,"props":1262,"children":1263},{"style":454},[1264],{"type":59,"value":503},{"type":53,"tag":441,"props":1266,"children":1268},{"class":443,"line":1267},16,[1269,1273,1278,1282,1286,1290,1294,1298,1302,1307,1311,1315,1319,1323],{"type":53,"tag":441,"props":1270,"children":1271},{"style":530},[1272],{"type":59,"value":533},{"type":53,"tag":441,"props":1274,"children":1275},{"style":460},[1276],{"type":59,"value":1277}," accountSecp ",{"type":53,"tag":441,"props":1279,"children":1280},{"style":454},[1281],{"type":59,"value":543},{"type":53,"tag":441,"props":1283,"children":1284},{"style":460},[1285],{"type":59,"value":463},{"type":53,"tag":441,"props":1287,"children":1288},{"style":454},[1289],{"type":59,"value":552},{"type":53,"tag":441,"props":1291,"children":1292},{"style":555},[1293],{"type":59,"value":1052},{"type":53,"tag":441,"props":1295,"children":1296},{"style":460},[1297],{"type":59,"value":618},{"type":53,"tag":441,"props":1299,"children":1300},{"style":454},[1301],{"type":59,"value":623},{"type":53,"tag":441,"props":1303,"children":1304},{"style":626},[1305],{"type":59,"value":1306}," privateKey",{"type":53,"tag":441,"props":1308,"children":1309},{"style":454},[1310],{"type":59,"value":634},{"type":53,"tag":441,"props":1312,"children":1313},{"style":460},[1314],{"type":59,"value":1217},{"type":53,"tag":441,"props":1316,"children":1317},{"style":454},[1318],{"type":59,"value":758},{"type":53,"tag":441,"props":1320,"children":1321},{"style":460},[1322],{"type":59,"value":675},{"type":53,"tag":441,"props":1324,"children":1325},{"style":454},[1326],{"type":59,"value":503},{"type":53,"tag":441,"props":1328,"children":1330},{"class":443,"line":1329},17,[1331],{"type":53,"tag":441,"props":1332,"children":1333},{"emptyLinePlaceholder":510},[1334],{"type":59,"value":513},{"type":53,"tag":441,"props":1336,"children":1337},{"class":443,"line":26},[1338],{"type":53,"tag":441,"props":1339,"children":1340},{"style":520},[1341],{"type":59,"value":1342},"\u002F\u002F Optional: fixed address (e.g. after key rotation)\n",{"type":53,"tag":441,"props":1344,"children":1346},{"class":443,"line":1345},19,[1347,1351,1356,1360,1364,1368,1372,1376],{"type":53,"tag":441,"props":1348,"children":1349},{"style":530},[1350],{"type":59,"value":533},{"type":53,"tag":441,"props":1352,"children":1353},{"style":460},[1354],{"type":59,"value":1355}," accountWithAddr ",{"type":53,"tag":441,"props":1357,"children":1358},{"style":454},[1359],{"type":59,"value":543},{"type":53,"tag":441,"props":1361,"children":1362},{"style":460},[1363],{"type":59,"value":463},{"type":53,"tag":441,"props":1365,"children":1366},{"style":454},[1367],{"type":59,"value":552},{"type":53,"tag":441,"props":1369,"children":1370},{"style":555},[1371],{"type":59,"value":1052},{"type":53,"tag":441,"props":1373,"children":1374},{"style":460},[1375],{"type":59,"value":618},{"type":53,"tag":441,"props":1377,"children":1378},{"style":454},[1379],{"type":59,"value":1128},{"type":53,"tag":441,"props":1381,"children":1383},{"class":443,"line":1382},20,[1384,1388],{"type":53,"tag":441,"props":1385,"children":1386},{"style":460},[1387],{"type":59,"value":1136},{"type":53,"tag":441,"props":1389,"children":1390},{"style":454},[1391],{"type":59,"value":1157},{"type":53,"tag":441,"props":1393,"children":1395},{"class":443,"line":1394},21,[1396,1401,1405,1409,1414],{"type":53,"tag":441,"props":1397,"children":1398},{"style":626},[1399],{"type":59,"value":1400},"  address",{"type":53,"tag":441,"props":1402,"children":1403},{"style":454},[1404],{"type":59,"value":634},{"type":53,"tag":441,"props":1406,"children":1407},{"style":454},[1408],{"type":59,"value":488},{"type":53,"tag":441,"props":1410,"children":1411},{"style":491},[1412],{"type":59,"value":1413},"0x...",{"type":53,"tag":441,"props":1415,"children":1416},{"style":454},[1417],{"type":59,"value":1418},"\"\n",{"type":53,"tag":441,"props":1420,"children":1422},{"class":443,"line":1421},22,[1423,1427,1431],{"type":53,"tag":441,"props":1424,"children":1425},{"style":454},[1426],{"type":59,"value":758},{"type":53,"tag":441,"props":1428,"children":1429},{"style":460},[1430],{"type":59,"value":675},{"type":53,"tag":441,"props":1432,"children":1433},{"style":454},[1434],{"type":59,"value":503},{"type":53,"tag":269,"props":1436,"children":1437},{},[],{"type":53,"tag":62,"props":1439,"children":1441},{"id":1440},"from-mnemonic-derivation-path",[1442],{"type":59,"value":1443},"From mnemonic (derivation path)",{"type":53,"tag":431,"props":1445,"children":1447},{"className":433,"code":1446,"language":22,"meta":435,"style":435},"import { Account } from \"@aptos-labs\u002Fts-sdk\";\n\nconst mnemonic = \"word1 word2 ... word12\";\nconst path = \"m\u002F44'\u002F637'\u002F0'\u002F0'\u002F0'\"; \u002F\u002F Aptos BIP-44 path\n\n\u002F\u002F Ed25519 legacy\nconst acc = Account.fromDerivationPath({ mnemonic, path });\n\n\u002F\u002F Ed25519 SingleKey\nconst accSingle = Account.fromDerivationPath({ mnemonic, path, legacy: false });\n\n\u002F\u002F Secp256k1\nconst accSecp = Account.fromDerivationPath({\n  scheme: SigningSchemeInput.Secp256k1,\n  mnemonic,\n  path\n});\n",[1448],{"type":53,"tag":83,"props":1449,"children":1450},{"__ignoreMap":435},[1451,1490,1497,1530,1569,1576,1584,1646,1653,1661,1738,1745,1753,1789,1818,1830,1838],{"type":53,"tag":441,"props":1452,"children":1453},{"class":443,"line":444},[1454,1458,1462,1466,1470,1474,1478,1482,1486],{"type":53,"tag":441,"props":1455,"children":1456},{"style":448},[1457],{"type":59,"value":451},{"type":53,"tag":441,"props":1459,"children":1460},{"style":454},[1461],{"type":59,"value":457},{"type":53,"tag":441,"props":1463,"children":1464},{"style":460},[1465],{"type":59,"value":463},{"type":53,"tag":441,"props":1467,"children":1468},{"style":454},[1469],{"type":59,"value":478},{"type":53,"tag":441,"props":1471,"children":1472},{"style":448},[1473],{"type":59,"value":483},{"type":53,"tag":441,"props":1475,"children":1476},{"style":454},[1477],{"type":59,"value":488},{"type":53,"tag":441,"props":1479,"children":1480},{"style":491},[1481],{"type":59,"value":88},{"type":53,"tag":441,"props":1483,"children":1484},{"style":454},[1485],{"type":59,"value":498},{"type":53,"tag":441,"props":1487,"children":1488},{"style":454},[1489],{"type":59,"value":503},{"type":53,"tag":441,"props":1491,"children":1492},{"class":443,"line":506},[1493],{"type":53,"tag":441,"props":1494,"children":1495},{"emptyLinePlaceholder":510},[1496],{"type":59,"value":513},{"type":53,"tag":441,"props":1498,"children":1499},{"class":443,"line":516},[1500,1504,1509,1513,1517,1522,1526],{"type":53,"tag":441,"props":1501,"children":1502},{"style":530},[1503],{"type":59,"value":533},{"type":53,"tag":441,"props":1505,"children":1506},{"style":460},[1507],{"type":59,"value":1508}," mnemonic ",{"type":53,"tag":441,"props":1510,"children":1511},{"style":454},[1512],{"type":59,"value":543},{"type":53,"tag":441,"props":1514,"children":1515},{"style":454},[1516],{"type":59,"value":488},{"type":53,"tag":441,"props":1518,"children":1519},{"style":491},[1520],{"type":59,"value":1521},"word1 word2 ... word12",{"type":53,"tag":441,"props":1523,"children":1524},{"style":454},[1525],{"type":59,"value":498},{"type":53,"tag":441,"props":1527,"children":1528},{"style":454},[1529],{"type":59,"value":503},{"type":53,"tag":441,"props":1531,"children":1532},{"class":443,"line":526},[1533,1537,1542,1546,1550,1555,1559,1564],{"type":53,"tag":441,"props":1534,"children":1535},{"style":530},[1536],{"type":59,"value":533},{"type":53,"tag":441,"props":1538,"children":1539},{"style":460},[1540],{"type":59,"value":1541}," path ",{"type":53,"tag":441,"props":1543,"children":1544},{"style":454},[1545],{"type":59,"value":543},{"type":53,"tag":441,"props":1547,"children":1548},{"style":454},[1549],{"type":59,"value":488},{"type":53,"tag":441,"props":1551,"children":1552},{"style":491},[1553],{"type":59,"value":1554},"m\u002F44'\u002F637'\u002F0'\u002F0'\u002F0'",{"type":53,"tag":441,"props":1556,"children":1557},{"style":454},[1558],{"type":59,"value":498},{"type":53,"tag":441,"props":1560,"children":1561},{"style":454},[1562],{"type":59,"value":1563},";",{"type":53,"tag":441,"props":1565,"children":1566},{"style":520},[1567],{"type":59,"value":1568}," \u002F\u002F Aptos BIP-44 path\n",{"type":53,"tag":441,"props":1570,"children":1571},{"class":443,"line":570},[1572],{"type":53,"tag":441,"props":1573,"children":1574},{"emptyLinePlaceholder":510},[1575],{"type":59,"value":513},{"type":53,"tag":441,"props":1577,"children":1578},{"class":443,"line":578},[1579],{"type":53,"tag":441,"props":1580,"children":1581},{"style":520},[1582],{"type":59,"value":1583},"\u002F\u002F Ed25519 legacy\n",{"type":53,"tag":441,"props":1585,"children":1586},{"class":443,"line":587},[1587,1591,1596,1600,1604,1608,1613,1617,1621,1626,1630,1634,1638,1642],{"type":53,"tag":441,"props":1588,"children":1589},{"style":530},[1590],{"type":59,"value":533},{"type":53,"tag":441,"props":1592,"children":1593},{"style":460},[1594],{"type":59,"value":1595}," acc ",{"type":53,"tag":441,"props":1597,"children":1598},{"style":454},[1599],{"type":59,"value":543},{"type":53,"tag":441,"props":1601,"children":1602},{"style":460},[1603],{"type":59,"value":463},{"type":53,"tag":441,"props":1605,"children":1606},{"style":454},[1607],{"type":59,"value":552},{"type":53,"tag":441,"props":1609,"children":1610},{"style":555},[1611],{"type":59,"value":1612},"fromDerivationPath",{"type":53,"tag":441,"props":1614,"children":1615},{"style":460},[1616],{"type":59,"value":618},{"type":53,"tag":441,"props":1618,"children":1619},{"style":454},[1620],{"type":59,"value":623},{"type":53,"tag":441,"props":1622,"children":1623},{"style":460},[1624],{"type":59,"value":1625}," mnemonic",{"type":53,"tag":441,"props":1627,"children":1628},{"style":454},[1629],{"type":59,"value":468},{"type":53,"tag":441,"props":1631,"children":1632},{"style":460},[1633],{"type":59,"value":1541},{"type":53,"tag":441,"props":1635,"children":1636},{"style":454},[1637],{"type":59,"value":758},{"type":53,"tag":441,"props":1639,"children":1640},{"style":460},[1641],{"type":59,"value":675},{"type":53,"tag":441,"props":1643,"children":1644},{"style":454},[1645],{"type":59,"value":503},{"type":53,"tag":441,"props":1647,"children":1648},{"class":443,"line":30},[1649],{"type":53,"tag":441,"props":1650,"children":1651},{"emptyLinePlaceholder":510},[1652],{"type":59,"value":513},{"type":53,"tag":441,"props":1654,"children":1655},{"class":443,"line":689},[1656],{"type":53,"tag":441,"props":1657,"children":1658},{"style":520},[1659],{"type":59,"value":1660},"\u002F\u002F Ed25519 SingleKey\n",{"type":53,"tag":441,"props":1662,"children":1663},{"class":443,"line":698},[1664,1668,1673,1677,1681,1685,1689,1693,1697,1701,1705,1710,1714,1718,1722,1726,1730,1734],{"type":53,"tag":441,"props":1665,"children":1666},{"style":530},[1667],{"type":59,"value":533},{"type":53,"tag":441,"props":1669,"children":1670},{"style":460},[1671],{"type":59,"value":1672}," accSingle ",{"type":53,"tag":441,"props":1674,"children":1675},{"style":454},[1676],{"type":59,"value":543},{"type":53,"tag":441,"props":1678,"children":1679},{"style":460},[1680],{"type":59,"value":463},{"type":53,"tag":441,"props":1682,"children":1683},{"style":454},[1684],{"type":59,"value":552},{"type":53,"tag":441,"props":1686,"children":1687},{"style":555},[1688],{"type":59,"value":1612},{"type":53,"tag":441,"props":1690,"children":1691},{"style":460},[1692],{"type":59,"value":618},{"type":53,"tag":441,"props":1694,"children":1695},{"style":454},[1696],{"type":59,"value":623},{"type":53,"tag":441,"props":1698,"children":1699},{"style":460},[1700],{"type":59,"value":1625},{"type":53,"tag":441,"props":1702,"children":1703},{"style":454},[1704],{"type":59,"value":468},{"type":53,"tag":441,"props":1706,"children":1707},{"style":460},[1708],{"type":59,"value":1709}," path",{"type":53,"tag":441,"props":1711,"children":1712},{"style":454},[1713],{"type":59,"value":468},{"type":53,"tag":441,"props":1715,"children":1716},{"style":626},[1717],{"type":59,"value":656},{"type":53,"tag":441,"props":1719,"children":1720},{"style":454},[1721],{"type":59,"value":634},{"type":53,"tag":441,"props":1723,"children":1724},{"style":663},[1725],{"type":59,"value":666},{"type":53,"tag":441,"props":1727,"children":1728},{"style":454},[1729],{"type":59,"value":478},{"type":53,"tag":441,"props":1731,"children":1732},{"style":460},[1733],{"type":59,"value":675},{"type":53,"tag":441,"props":1735,"children":1736},{"style":454},[1737],{"type":59,"value":503},{"type":53,"tag":441,"props":1739,"children":1740},{"class":443,"line":769},[1741],{"type":53,"tag":441,"props":1742,"children":1743},{"emptyLinePlaceholder":510},[1744],{"type":59,"value":513},{"type":53,"tag":441,"props":1746,"children":1747},{"class":443,"line":777},[1748],{"type":53,"tag":441,"props":1749,"children":1750},{"style":520},[1751],{"type":59,"value":1752},"\u002F\u002F Secp256k1\n",{"type":53,"tag":441,"props":1754,"children":1755},{"class":443,"line":786},[1756,1760,1765,1769,1773,1777,1781,1785],{"type":53,"tag":441,"props":1757,"children":1758},{"style":530},[1759],{"type":59,"value":533},{"type":53,"tag":441,"props":1761,"children":1762},{"style":460},[1763],{"type":59,"value":1764}," accSecp ",{"type":53,"tag":441,"props":1766,"children":1767},{"style":454},[1768],{"type":59,"value":543},{"type":53,"tag":441,"props":1770,"children":1771},{"style":460},[1772],{"type":59,"value":463},{"type":53,"tag":441,"props":1774,"children":1775},{"style":454},[1776],{"type":59,"value":552},{"type":53,"tag":441,"props":1778,"children":1779},{"style":555},[1780],{"type":59,"value":1612},{"type":53,"tag":441,"props":1782,"children":1783},{"style":460},[1784],{"type":59,"value":618},{"type":53,"tag":441,"props":1786,"children":1787},{"style":454},[1788],{"type":59,"value":1128},{"type":53,"tag":441,"props":1790,"children":1791},{"class":443,"line":821},[1792,1797,1801,1805,1809,1814],{"type":53,"tag":441,"props":1793,"children":1794},{"style":626},[1795],{"type":59,"value":1796},"  scheme",{"type":53,"tag":441,"props":1798,"children":1799},{"style":454},[1800],{"type":59,"value":634},{"type":53,"tag":441,"props":1802,"children":1803},{"style":460},[1804],{"type":59,"value":473},{"type":53,"tag":441,"props":1806,"children":1807},{"style":454},[1808],{"type":59,"value":552},{"type":53,"tag":441,"props":1810,"children":1811},{"style":460},[1812],{"type":59,"value":1813},"Secp256k1",{"type":53,"tag":441,"props":1815,"children":1816},{"style":454},[1817],{"type":59,"value":1157},{"type":53,"tag":441,"props":1819,"children":1820},{"class":443,"line":1207},[1821,1826],{"type":53,"tag":441,"props":1822,"children":1823},{"style":460},[1824],{"type":59,"value":1825},"  mnemonic",{"type":53,"tag":441,"props":1827,"children":1828},{"style":454},[1829],{"type":59,"value":1157},{"type":53,"tag":441,"props":1831,"children":1832},{"class":443,"line":1267},[1833],{"type":53,"tag":441,"props":1834,"children":1835},{"style":460},[1836],{"type":59,"value":1837},"  path\n",{"type":53,"tag":441,"props":1839,"children":1840},{"class":443,"line":1329},[1841,1845,1849],{"type":53,"tag":441,"props":1842,"children":1843},{"style":454},[1844],{"type":59,"value":758},{"type":53,"tag":441,"props":1846,"children":1847},{"style":460},[1848],{"type":59,"value":675},{"type":53,"tag":441,"props":1850,"children":1851},{"style":454},[1852],{"type":59,"value":503},{"type":53,"tag":269,"props":1854,"children":1855},{},[],{"type":53,"tag":62,"props":1857,"children":1859},{"id":1858},"auth-key-for-rotation-lookup",[1860],{"type":59,"value":1861},"Auth key (for rotation \u002F lookup)",{"type":53,"tag":431,"props":1863,"children":1865},{"className":433,"code":1864,"language":22,"meta":435,"style":435},"const authKey = Account.authKey({ publicKey: account.publicKey });\n\u002F\u002F Use authKey.derivedAddress() for address derivation; useful for multi-account lookup\n",[1866],{"type":53,"tag":83,"props":1867,"children":1868},{"__ignoreMap":435},[1869,1941],{"type":53,"tag":441,"props":1870,"children":1871},{"class":443,"line":444},[1872,1876,1881,1885,1889,1893,1898,1902,1906,1911,1915,1920,1924,1929,1933,1937],{"type":53,"tag":441,"props":1873,"children":1874},{"style":530},[1875],{"type":59,"value":533},{"type":53,"tag":441,"props":1877,"children":1878},{"style":460},[1879],{"type":59,"value":1880}," authKey ",{"type":53,"tag":441,"props":1882,"children":1883},{"style":454},[1884],{"type":59,"value":543},{"type":53,"tag":441,"props":1886,"children":1887},{"style":460},[1888],{"type":59,"value":463},{"type":53,"tag":441,"props":1890,"children":1891},{"style":454},[1892],{"type":59,"value":552},{"type":53,"tag":441,"props":1894,"children":1895},{"style":555},[1896],{"type":59,"value":1897},"authKey",{"type":53,"tag":441,"props":1899,"children":1900},{"style":460},[1901],{"type":59,"value":618},{"type":53,"tag":441,"props":1903,"children":1904},{"style":454},[1905],{"type":59,"value":623},{"type":53,"tag":441,"props":1907,"children":1908},{"style":626},[1909],{"type":59,"value":1910}," publicKey",{"type":53,"tag":441,"props":1912,"children":1913},{"style":454},[1914],{"type":59,"value":634},{"type":53,"tag":441,"props":1916,"children":1917},{"style":460},[1918],{"type":59,"value":1919}," account",{"type":53,"tag":441,"props":1921,"children":1922},{"style":454},[1923],{"type":59,"value":552},{"type":53,"tag":441,"props":1925,"children":1926},{"style":460},[1927],{"type":59,"value":1928},"publicKey ",{"type":53,"tag":441,"props":1930,"children":1931},{"style":454},[1932],{"type":59,"value":758},{"type":53,"tag":441,"props":1934,"children":1935},{"style":460},[1936],{"type":59,"value":675},{"type":53,"tag":441,"props":1938,"children":1939},{"style":454},[1940],{"type":59,"value":503},{"type":53,"tag":441,"props":1942,"children":1943},{"class":443,"line":506},[1944],{"type":53,"tag":441,"props":1945,"children":1946},{"style":520},[1947],{"type":59,"value":1948},"\u002F\u002F Use authKey.derivedAddress() for address derivation; useful for multi-account lookup\n",{"type":53,"tag":269,"props":1950,"children":1951},{},[],{"type":53,"tag":62,"props":1953,"children":1955},{"id":1954},"serialization-tohex-fromhex",[1956],{"type":59,"value":1957},"Serialization (toHex \u002F fromHex)",{"type":53,"tag":69,"props":1959,"children":1960},{},[1961],{"type":59,"value":1962},"Use when persisting or sending account (e.g. server-only, never expose private key to frontend):",{"type":53,"tag":431,"props":1964,"children":1966},{"className":433,"code":1965,"language":22,"meta":435,"style":435},"import { Account, AccountUtils } from \"@aptos-labs\u002Fts-sdk\";\n\nconst account = Account.generate();\n\n\u002F\u002F Serialize to hex (includes private key – treat as secret)\nconst hex = AccountUtils.toHexString(account);\n\n\u002F\u002F Deserialize back\nconst restored = AccountUtils.fromHex(hex);\n\n\u002F\u002F Typed deserialize\nconst edAccount = AccountUtils.ed25519AccountFromHex(hex);\nconst singleAccount = AccountUtils.singleKeyAccountFromHex(hex);\nconst multiAccount = AccountUtils.multiKeyAccountFromHex(hex);\nconst keylessAccount = AccountUtils.keylessAccountFromHex(hex);\n",[1967],{"type":53,"tag":83,"props":1968,"children":1969},{"__ignoreMap":435},[1970,2018,2025,2060,2067,2075,2113,2120,2128,2166,2173,2181,2218,2255,2292],{"type":53,"tag":441,"props":1971,"children":1972},{"class":443,"line":444},[1973,1977,1981,1985,1989,1994,1998,2002,2006,2010,2014],{"type":53,"tag":441,"props":1974,"children":1975},{"style":448},[1976],{"type":59,"value":451},{"type":53,"tag":441,"props":1978,"children":1979},{"style":454},[1980],{"type":59,"value":457},{"type":53,"tag":441,"props":1982,"children":1983},{"style":460},[1984],{"type":59,"value":463},{"type":53,"tag":441,"props":1986,"children":1987},{"style":454},[1988],{"type":59,"value":468},{"type":53,"tag":441,"props":1990,"children":1991},{"style":460},[1992],{"type":59,"value":1993}," AccountUtils",{"type":53,"tag":441,"props":1995,"children":1996},{"style":454},[1997],{"type":59,"value":478},{"type":53,"tag":441,"props":1999,"children":2000},{"style":448},[2001],{"type":59,"value":483},{"type":53,"tag":441,"props":2003,"children":2004},{"style":454},[2005],{"type":59,"value":488},{"type":53,"tag":441,"props":2007,"children":2008},{"style":491},[2009],{"type":59,"value":88},{"type":53,"tag":441,"props":2011,"children":2012},{"style":454},[2013],{"type":59,"value":498},{"type":53,"tag":441,"props":2015,"children":2016},{"style":454},[2017],{"type":59,"value":503},{"type":53,"tag":441,"props":2019,"children":2020},{"class":443,"line":506},[2021],{"type":53,"tag":441,"props":2022,"children":2023},{"emptyLinePlaceholder":510},[2024],{"type":59,"value":513},{"type":53,"tag":441,"props":2026,"children":2027},{"class":443,"line":516},[2028,2032,2036,2040,2044,2048,2052,2056],{"type":53,"tag":441,"props":2029,"children":2030},{"style":530},[2031],{"type":59,"value":533},{"type":53,"tag":441,"props":2033,"children":2034},{"style":460},[2035],{"type":59,"value":1035},{"type":53,"tag":441,"props":2037,"children":2038},{"style":454},[2039],{"type":59,"value":543},{"type":53,"tag":441,"props":2041,"children":2042},{"style":460},[2043],{"type":59,"value":463},{"type":53,"tag":441,"props":2045,"children":2046},{"style":454},[2047],{"type":59,"value":552},{"type":53,"tag":441,"props":2049,"children":2050},{"style":555},[2051],{"type":59,"value":558},{"type":53,"tag":441,"props":2053,"children":2054},{"style":460},[2055],{"type":59,"value":563},{"type":53,"tag":441,"props":2057,"children":2058},{"style":454},[2059],{"type":59,"value":503},{"type":53,"tag":441,"props":2061,"children":2062},{"class":443,"line":526},[2063],{"type":53,"tag":441,"props":2064,"children":2065},{"emptyLinePlaceholder":510},[2066],{"type":59,"value":513},{"type":53,"tag":441,"props":2068,"children":2069},{"class":443,"line":570},[2070],{"type":53,"tag":441,"props":2071,"children":2072},{"style":520},[2073],{"type":59,"value":2074},"\u002F\u002F Serialize to hex (includes private key – treat as secret)\n",{"type":53,"tag":441,"props":2076,"children":2077},{"class":443,"line":578},[2078,2082,2087,2091,2095,2099,2104,2109],{"type":53,"tag":441,"props":2079,"children":2080},{"style":530},[2081],{"type":59,"value":533},{"type":53,"tag":441,"props":2083,"children":2084},{"style":460},[2085],{"type":59,"value":2086}," hex ",{"type":53,"tag":441,"props":2088,"children":2089},{"style":454},[2090],{"type":59,"value":543},{"type":53,"tag":441,"props":2092,"children":2093},{"style":460},[2094],{"type":59,"value":1993},{"type":53,"tag":441,"props":2096,"children":2097},{"style":454},[2098],{"type":59,"value":552},{"type":53,"tag":441,"props":2100,"children":2101},{"style":555},[2102],{"type":59,"value":2103},"toHexString",{"type":53,"tag":441,"props":2105,"children":2106},{"style":460},[2107],{"type":59,"value":2108},"(account)",{"type":53,"tag":441,"props":2110,"children":2111},{"style":454},[2112],{"type":59,"value":503},{"type":53,"tag":441,"props":2114,"children":2115},{"class":443,"line":587},[2116],{"type":53,"tag":441,"props":2117,"children":2118},{"emptyLinePlaceholder":510},[2119],{"type":59,"value":513},{"type":53,"tag":441,"props":2121,"children":2122},{"class":443,"line":30},[2123],{"type":53,"tag":441,"props":2124,"children":2125},{"style":520},[2126],{"type":59,"value":2127},"\u002F\u002F Deserialize back\n",{"type":53,"tag":441,"props":2129,"children":2130},{"class":443,"line":689},[2131,2135,2140,2144,2148,2152,2157,2162],{"type":53,"tag":441,"props":2132,"children":2133},{"style":530},[2134],{"type":59,"value":533},{"type":53,"tag":441,"props":2136,"children":2137},{"style":460},[2138],{"type":59,"value":2139}," restored ",{"type":53,"tag":441,"props":2141,"children":2142},{"style":454},[2143],{"type":59,"value":543},{"type":53,"tag":441,"props":2145,"children":2146},{"style":460},[2147],{"type":59,"value":1993},{"type":53,"tag":441,"props":2149,"children":2150},{"style":454},[2151],{"type":59,"value":552},{"type":53,"tag":441,"props":2153,"children":2154},{"style":555},[2155],{"type":59,"value":2156},"fromHex",{"type":53,"tag":441,"props":2158,"children":2159},{"style":460},[2160],{"type":59,"value":2161},"(hex)",{"type":53,"tag":441,"props":2163,"children":2164},{"style":454},[2165],{"type":59,"value":503},{"type":53,"tag":441,"props":2167,"children":2168},{"class":443,"line":698},[2169],{"type":53,"tag":441,"props":2170,"children":2171},{"emptyLinePlaceholder":510},[2172],{"type":59,"value":513},{"type":53,"tag":441,"props":2174,"children":2175},{"class":443,"line":769},[2176],{"type":53,"tag":441,"props":2177,"children":2178},{"style":520},[2179],{"type":59,"value":2180},"\u002F\u002F Typed deserialize\n",{"type":53,"tag":441,"props":2182,"children":2183},{"class":443,"line":777},[2184,2188,2193,2197,2201,2205,2210,2214],{"type":53,"tag":441,"props":2185,"children":2186},{"style":530},[2187],{"type":59,"value":533},{"type":53,"tag":441,"props":2189,"children":2190},{"style":460},[2191],{"type":59,"value":2192}," edAccount ",{"type":53,"tag":441,"props":2194,"children":2195},{"style":454},[2196],{"type":59,"value":543},{"type":53,"tag":441,"props":2198,"children":2199},{"style":460},[2200],{"type":59,"value":1993},{"type":53,"tag":441,"props":2202,"children":2203},{"style":454},[2204],{"type":59,"value":552},{"type":53,"tag":441,"props":2206,"children":2207},{"style":555},[2208],{"type":59,"value":2209},"ed25519AccountFromHex",{"type":53,"tag":441,"props":2211,"children":2212},{"style":460},[2213],{"type":59,"value":2161},{"type":53,"tag":441,"props":2215,"children":2216},{"style":454},[2217],{"type":59,"value":503},{"type":53,"tag":441,"props":2219,"children":2220},{"class":443,"line":786},[2221,2225,2230,2234,2238,2242,2247,2251],{"type":53,"tag":441,"props":2222,"children":2223},{"style":530},[2224],{"type":59,"value":533},{"type":53,"tag":441,"props":2226,"children":2227},{"style":460},[2228],{"type":59,"value":2229}," singleAccount ",{"type":53,"tag":441,"props":2231,"children":2232},{"style":454},[2233],{"type":59,"value":543},{"type":53,"tag":441,"props":2235,"children":2236},{"style":460},[2237],{"type":59,"value":1993},{"type":53,"tag":441,"props":2239,"children":2240},{"style":454},[2241],{"type":59,"value":552},{"type":53,"tag":441,"props":2243,"children":2244},{"style":555},[2245],{"type":59,"value":2246},"singleKeyAccountFromHex",{"type":53,"tag":441,"props":2248,"children":2249},{"style":460},[2250],{"type":59,"value":2161},{"type":53,"tag":441,"props":2252,"children":2253},{"style":454},[2254],{"type":59,"value":503},{"type":53,"tag":441,"props":2256,"children":2257},{"class":443,"line":821},[2258,2262,2267,2271,2275,2279,2284,2288],{"type":53,"tag":441,"props":2259,"children":2260},{"style":530},[2261],{"type":59,"value":533},{"type":53,"tag":441,"props":2263,"children":2264},{"style":460},[2265],{"type":59,"value":2266}," multiAccount ",{"type":53,"tag":441,"props":2268,"children":2269},{"style":454},[2270],{"type":59,"value":543},{"type":53,"tag":441,"props":2272,"children":2273},{"style":460},[2274],{"type":59,"value":1993},{"type":53,"tag":441,"props":2276,"children":2277},{"style":454},[2278],{"type":59,"value":552},{"type":53,"tag":441,"props":2280,"children":2281},{"style":555},[2282],{"type":59,"value":2283},"multiKeyAccountFromHex",{"type":53,"tag":441,"props":2285,"children":2286},{"style":460},[2287],{"type":59,"value":2161},{"type":53,"tag":441,"props":2289,"children":2290},{"style":454},[2291],{"type":59,"value":503},{"type":53,"tag":441,"props":2293,"children":2294},{"class":443,"line":1207},[2295,2299,2304,2308,2312,2316,2321,2325],{"type":53,"tag":441,"props":2296,"children":2297},{"style":530},[2298],{"type":59,"value":533},{"type":53,"tag":441,"props":2300,"children":2301},{"style":460},[2302],{"type":59,"value":2303}," keylessAccount ",{"type":53,"tag":441,"props":2305,"children":2306},{"style":454},[2307],{"type":59,"value":543},{"type":53,"tag":441,"props":2309,"children":2310},{"style":460},[2311],{"type":59,"value":1993},{"type":53,"tag":441,"props":2313,"children":2314},{"style":454},[2315],{"type":59,"value":552},{"type":53,"tag":441,"props":2317,"children":2318},{"style":555},[2319],{"type":59,"value":2320},"keylessAccountFromHex",{"type":53,"tag":441,"props":2322,"children":2323},{"style":460},[2324],{"type":59,"value":2161},{"type":53,"tag":441,"props":2326,"children":2327},{"style":454},[2328],{"type":59,"value":503},{"type":53,"tag":269,"props":2330,"children":2331},{},[],{"type":53,"tag":62,"props":2333,"children":2335},{"id":2334},"signing",[2336],{"type":59,"value":2337},"Signing",{"type":53,"tag":431,"props":2339,"children":2341},{"className":433,"code":2340,"language":22,"meta":435,"style":435},"\u002F\u002F Sign message (returns Signature)\nconst sig = account.sign(messageHex);\n\n\u002F\u002F Sign transaction (returns Signature; for submit use aptos.transaction.sign + submit)\nconst txSig = account.signTransaction(rawTransaction);\n\n\u002F\u002F With authenticator (used by SDK internally for submit)\nconst auth = account.signWithAuthenticator(messageHex);\n",[2342],{"type":53,"tag":83,"props":2343,"children":2344},{"__ignoreMap":435},[2345,2353,2391,2398,2406,2444,2451,2459],{"type":53,"tag":441,"props":2346,"children":2347},{"class":443,"line":444},[2348],{"type":53,"tag":441,"props":2349,"children":2350},{"style":520},[2351],{"type":59,"value":2352},"\u002F\u002F Sign message (returns Signature)\n",{"type":53,"tag":441,"props":2354,"children":2355},{"class":443,"line":506},[2356,2360,2365,2369,2373,2377,2382,2387],{"type":53,"tag":441,"props":2357,"children":2358},{"style":530},[2359],{"type":59,"value":533},{"type":53,"tag":441,"props":2361,"children":2362},{"style":460},[2363],{"type":59,"value":2364}," sig ",{"type":53,"tag":441,"props":2366,"children":2367},{"style":454},[2368],{"type":59,"value":543},{"type":53,"tag":441,"props":2370,"children":2371},{"style":460},[2372],{"type":59,"value":1919},{"type":53,"tag":441,"props":2374,"children":2375},{"style":454},[2376],{"type":59,"value":552},{"type":53,"tag":441,"props":2378,"children":2379},{"style":555},[2380],{"type":59,"value":2381},"sign",{"type":53,"tag":441,"props":2383,"children":2384},{"style":460},[2385],{"type":59,"value":2386},"(messageHex)",{"type":53,"tag":441,"props":2388,"children":2389},{"style":454},[2390],{"type":59,"value":503},{"type":53,"tag":441,"props":2392,"children":2393},{"class":443,"line":516},[2394],{"type":53,"tag":441,"props":2395,"children":2396},{"emptyLinePlaceholder":510},[2397],{"type":59,"value":513},{"type":53,"tag":441,"props":2399,"children":2400},{"class":443,"line":526},[2401],{"type":53,"tag":441,"props":2402,"children":2403},{"style":520},[2404],{"type":59,"value":2405},"\u002F\u002F Sign transaction (returns Signature; for submit use aptos.transaction.sign + submit)\n",{"type":53,"tag":441,"props":2407,"children":2408},{"class":443,"line":570},[2409,2413,2418,2422,2426,2430,2435,2440],{"type":53,"tag":441,"props":2410,"children":2411},{"style":530},[2412],{"type":59,"value":533},{"type":53,"tag":441,"props":2414,"children":2415},{"style":460},[2416],{"type":59,"value":2417}," txSig ",{"type":53,"tag":441,"props":2419,"children":2420},{"style":454},[2421],{"type":59,"value":543},{"type":53,"tag":441,"props":2423,"children":2424},{"style":460},[2425],{"type":59,"value":1919},{"type":53,"tag":441,"props":2427,"children":2428},{"style":454},[2429],{"type":59,"value":552},{"type":53,"tag":441,"props":2431,"children":2432},{"style":555},[2433],{"type":59,"value":2434},"signTransaction",{"type":53,"tag":441,"props":2436,"children":2437},{"style":460},[2438],{"type":59,"value":2439},"(rawTransaction)",{"type":53,"tag":441,"props":2441,"children":2442},{"style":454},[2443],{"type":59,"value":503},{"type":53,"tag":441,"props":2445,"children":2446},{"class":443,"line":578},[2447],{"type":53,"tag":441,"props":2448,"children":2449},{"emptyLinePlaceholder":510},[2450],{"type":59,"value":513},{"type":53,"tag":441,"props":2452,"children":2453},{"class":443,"line":587},[2454],{"type":53,"tag":441,"props":2455,"children":2456},{"style":520},[2457],{"type":59,"value":2458},"\u002F\u002F With authenticator (used by SDK internally for submit)\n",{"type":53,"tag":441,"props":2460,"children":2461},{"class":443,"line":30},[2462,2466,2471,2475,2479,2483,2488,2492],{"type":53,"tag":441,"props":2463,"children":2464},{"style":530},[2465],{"type":59,"value":533},{"type":53,"tag":441,"props":2467,"children":2468},{"style":460},[2469],{"type":59,"value":2470}," auth ",{"type":53,"tag":441,"props":2472,"children":2473},{"style":454},[2474],{"type":59,"value":543},{"type":53,"tag":441,"props":2476,"children":2477},{"style":460},[2478],{"type":59,"value":1919},{"type":53,"tag":441,"props":2480,"children":2481},{"style":454},[2482],{"type":59,"value":552},{"type":53,"tag":441,"props":2484,"children":2485},{"style":555},[2486],{"type":59,"value":2487},"signWithAuthenticator",{"type":53,"tag":441,"props":2489,"children":2490},{"style":460},[2491],{"type":59,"value":2386},{"type":53,"tag":441,"props":2493,"children":2494},{"style":454},[2495],{"type":59,"value":503},{"type":53,"tag":269,"props":2497,"children":2498},{},[],{"type":53,"tag":62,"props":2500,"children":2502},{"id":2501},"verify-signature",[2503],{"type":59,"value":2504},"Verify signature",{"type":53,"tag":431,"props":2506,"children":2508},{"className":433,"code":2507,"language":22,"meta":435,"style":435},"const ok = account.verifySignature({ message: messageHex, signature: sig });\n\n\u002F\u002F Async (if key type needs on-chain state)\nconst okAsync = await account.verifySignatureAsync({\n  aptosConfig: aptos.config,\n  message: messageHex,\n  signature: sig\n});\n",[2509],{"type":53,"tag":83,"props":2510,"children":2511},{"__ignoreMap":435},[2512,2592,2599,2607,2649,2679,2699,2716],{"type":53,"tag":441,"props":2513,"children":2514},{"class":443,"line":444},[2515,2519,2524,2528,2532,2536,2541,2545,2549,2554,2558,2563,2567,2572,2576,2580,2584,2588],{"type":53,"tag":441,"props":2516,"children":2517},{"style":530},[2518],{"type":59,"value":533},{"type":53,"tag":441,"props":2520,"children":2521},{"style":460},[2522],{"type":59,"value":2523}," ok ",{"type":53,"tag":441,"props":2525,"children":2526},{"style":454},[2527],{"type":59,"value":543},{"type":53,"tag":441,"props":2529,"children":2530},{"style":460},[2531],{"type":59,"value":1919},{"type":53,"tag":441,"props":2533,"children":2534},{"style":454},[2535],{"type":59,"value":552},{"type":53,"tag":441,"props":2537,"children":2538},{"style":555},[2539],{"type":59,"value":2540},"verifySignature",{"type":53,"tag":441,"props":2542,"children":2543},{"style":460},[2544],{"type":59,"value":618},{"type":53,"tag":441,"props":2546,"children":2547},{"style":454},[2548],{"type":59,"value":623},{"type":53,"tag":441,"props":2550,"children":2551},{"style":626},[2552],{"type":59,"value":2553}," message",{"type":53,"tag":441,"props":2555,"children":2556},{"style":454},[2557],{"type":59,"value":634},{"type":53,"tag":441,"props":2559,"children":2560},{"style":460},[2561],{"type":59,"value":2562}," messageHex",{"type":53,"tag":441,"props":2564,"children":2565},{"style":454},[2566],{"type":59,"value":468},{"type":53,"tag":441,"props":2568,"children":2569},{"style":626},[2570],{"type":59,"value":2571}," signature",{"type":53,"tag":441,"props":2573,"children":2574},{"style":454},[2575],{"type":59,"value":634},{"type":53,"tag":441,"props":2577,"children":2578},{"style":460},[2579],{"type":59,"value":2364},{"type":53,"tag":441,"props":2581,"children":2582},{"style":454},[2583],{"type":59,"value":758},{"type":53,"tag":441,"props":2585,"children":2586},{"style":460},[2587],{"type":59,"value":675},{"type":53,"tag":441,"props":2589,"children":2590},{"style":454},[2591],{"type":59,"value":503},{"type":53,"tag":441,"props":2593,"children":2594},{"class":443,"line":506},[2595],{"type":53,"tag":441,"props":2596,"children":2597},{"emptyLinePlaceholder":510},[2598],{"type":59,"value":513},{"type":53,"tag":441,"props":2600,"children":2601},{"class":443,"line":516},[2602],{"type":53,"tag":441,"props":2603,"children":2604},{"style":520},[2605],{"type":59,"value":2606},"\u002F\u002F Async (if key type needs on-chain state)\n",{"type":53,"tag":441,"props":2608,"children":2609},{"class":443,"line":526},[2610,2614,2619,2623,2628,2632,2636,2641,2645],{"type":53,"tag":441,"props":2611,"children":2612},{"style":530},[2613],{"type":59,"value":533},{"type":53,"tag":441,"props":2615,"children":2616},{"style":460},[2617],{"type":59,"value":2618}," okAsync ",{"type":53,"tag":441,"props":2620,"children":2621},{"style":454},[2622],{"type":59,"value":543},{"type":53,"tag":441,"props":2624,"children":2625},{"style":448},[2626],{"type":59,"value":2627}," await",{"type":53,"tag":441,"props":2629,"children":2630},{"style":460},[2631],{"type":59,"value":1919},{"type":53,"tag":441,"props":2633,"children":2634},{"style":454},[2635],{"type":59,"value":552},{"type":53,"tag":441,"props":2637,"children":2638},{"style":555},[2639],{"type":59,"value":2640},"verifySignatureAsync",{"type":53,"tag":441,"props":2642,"children":2643},{"style":460},[2644],{"type":59,"value":618},{"type":53,"tag":441,"props":2646,"children":2647},{"style":454},[2648],{"type":59,"value":1128},{"type":53,"tag":441,"props":2650,"children":2651},{"class":443,"line":570},[2652,2657,2661,2666,2670,2675],{"type":53,"tag":441,"props":2653,"children":2654},{"style":626},[2655],{"type":59,"value":2656},"  aptosConfig",{"type":53,"tag":441,"props":2658,"children":2659},{"style":454},[2660],{"type":59,"value":634},{"type":53,"tag":441,"props":2662,"children":2663},{"style":460},[2664],{"type":59,"value":2665}," aptos",{"type":53,"tag":441,"props":2667,"children":2668},{"style":454},[2669],{"type":59,"value":552},{"type":53,"tag":441,"props":2671,"children":2672},{"style":460},[2673],{"type":59,"value":2674},"config",{"type":53,"tag":441,"props":2676,"children":2677},{"style":454},[2678],{"type":59,"value":1157},{"type":53,"tag":441,"props":2680,"children":2681},{"class":443,"line":578},[2682,2687,2691,2695],{"type":53,"tag":441,"props":2683,"children":2684},{"style":626},[2685],{"type":59,"value":2686},"  message",{"type":53,"tag":441,"props":2688,"children":2689},{"style":454},[2690],{"type":59,"value":634},{"type":53,"tag":441,"props":2692,"children":2693},{"style":460},[2694],{"type":59,"value":2562},{"type":53,"tag":441,"props":2696,"children":2697},{"style":454},[2698],{"type":59,"value":1157},{"type":53,"tag":441,"props":2700,"children":2701},{"class":443,"line":587},[2702,2707,2711],{"type":53,"tag":441,"props":2703,"children":2704},{"style":626},[2705],{"type":59,"value":2706},"  signature",{"type":53,"tag":441,"props":2708,"children":2709},{"style":454},[2710],{"type":59,"value":634},{"type":53,"tag":441,"props":2712,"children":2713},{"style":460},[2714],{"type":59,"value":2715}," sig\n",{"type":53,"tag":441,"props":2717,"children":2718},{"class":443,"line":30},[2719,2723,2727],{"type":53,"tag":441,"props":2720,"children":2721},{"style":454},[2722],{"type":59,"value":758},{"type":53,"tag":441,"props":2724,"children":2725},{"style":460},[2726],{"type":59,"value":675},{"type":53,"tag":441,"props":2728,"children":2729},{"style":454},[2730],{"type":59,"value":503},{"type":53,"tag":269,"props":2732,"children":2733},{},[],{"type":53,"tag":62,"props":2735,"children":2737},{"id":2736},"derive-account-from-private-key-on-chain-lookup",[2738],{"type":59,"value":2739},"Derive account from private key (on-chain lookup)",{"type":53,"tag":69,"props":2741,"children":2742},{},[2743],{"type":59,"value":2744},"When the same key may have multiple on-chain accounts (e.g. after rotation), use internal derivation + lookup:",{"type":53,"tag":431,"props":2746,"children":2748},{"className":433,"code":2747,"language":22,"meta":435,"style":435},"\u002F\u002F Returns list of accounts owned by this key on chain\nconst accounts = await aptos.deriveOwnedAccountsFromSigner({\n  signer: account\n});\n\u002F\u002F Prefer wallet or explicit address for production; this is for scripts\u002Ftooling\n",[2749],{"type":53,"tag":83,"props":2750,"children":2751},{"__ignoreMap":435},[2752,2760,2801,2818,2833],{"type":53,"tag":441,"props":2753,"children":2754},{"class":443,"line":444},[2755],{"type":53,"tag":441,"props":2756,"children":2757},{"style":520},[2758],{"type":59,"value":2759},"\u002F\u002F Returns list of accounts owned by this key on chain\n",{"type":53,"tag":441,"props":2761,"children":2762},{"class":443,"line":506},[2763,2767,2772,2776,2780,2784,2788,2793,2797],{"type":53,"tag":441,"props":2764,"children":2765},{"style":530},[2766],{"type":59,"value":533},{"type":53,"tag":441,"props":2768,"children":2769},{"style":460},[2770],{"type":59,"value":2771}," accounts ",{"type":53,"tag":441,"props":2773,"children":2774},{"style":454},[2775],{"type":59,"value":543},{"type":53,"tag":441,"props":2777,"children":2778},{"style":448},[2779],{"type":59,"value":2627},{"type":53,"tag":441,"props":2781,"children":2782},{"style":460},[2783],{"type":59,"value":2665},{"type":53,"tag":441,"props":2785,"children":2786},{"style":454},[2787],{"type":59,"value":552},{"type":53,"tag":441,"props":2789,"children":2790},{"style":555},[2791],{"type":59,"value":2792},"deriveOwnedAccountsFromSigner",{"type":53,"tag":441,"props":2794,"children":2795},{"style":460},[2796],{"type":59,"value":618},{"type":53,"tag":441,"props":2798,"children":2799},{"style":454},[2800],{"type":59,"value":1128},{"type":53,"tag":441,"props":2802,"children":2803},{"class":443,"line":516},[2804,2809,2813],{"type":53,"tag":441,"props":2805,"children":2806},{"style":626},[2807],{"type":59,"value":2808},"  signer",{"type":53,"tag":441,"props":2810,"children":2811},{"style":454},[2812],{"type":59,"value":634},{"type":53,"tag":441,"props":2814,"children":2815},{"style":460},[2816],{"type":59,"value":2817}," account\n",{"type":53,"tag":441,"props":2819,"children":2820},{"class":443,"line":526},[2821,2825,2829],{"type":53,"tag":441,"props":2822,"children":2823},{"style":454},[2824],{"type":59,"value":758},{"type":53,"tag":441,"props":2826,"children":2827},{"style":460},[2828],{"type":59,"value":675},{"type":53,"tag":441,"props":2830,"children":2831},{"style":454},[2832],{"type":59,"value":503},{"type":53,"tag":441,"props":2834,"children":2835},{"class":443,"line":570},[2836],{"type":53,"tag":441,"props":2837,"children":2838},{"style":520},[2839],{"type":59,"value":2840},"\u002F\u002F Prefer wallet or explicit address for production; this is for scripts\u002Ftooling\n",{"type":53,"tag":269,"props":2842,"children":2843},{},[],{"type":53,"tag":62,"props":2845,"children":2847},{"id":2846},"common-mistakes",[2848],{"type":59,"value":2849},"Common mistakes",{"type":53,"tag":279,"props":2851,"children":2852},{},[2853,2869],{"type":53,"tag":283,"props":2854,"children":2855},{},[2856],{"type":53,"tag":287,"props":2857,"children":2858},{},[2859,2864],{"type":53,"tag":291,"props":2860,"children":2861},{},[2862],{"type":59,"value":2863},"Mistake",{"type":53,"tag":291,"props":2865,"children":2866},{},[2867],{"type":59,"value":2868},"Correct approach",{"type":53,"tag":307,"props":2870,"children":2871},{},[2872,2892,2913,2950],{"type":53,"tag":287,"props":2873,"children":2874},{},[2875,2887],{"type":53,"tag":314,"props":2876,"children":2877},{},[2878,2880,2885],{"type":59,"value":2879},"Using ",{"type":53,"tag":83,"props":2881,"children":2883},{"className":2882},[],[2884],{"type":59,"value":122},{"type":59,"value":2886}," in frontend",{"type":53,"tag":314,"props":2888,"children":2889},{},[2890],{"type":59,"value":2891},"Use wallet adapter; generate only in server\u002Fscript",{"type":53,"tag":287,"props":2893,"children":2894},{},[2895,2900],{"type":53,"tag":314,"props":2896,"children":2897},{},[2898],{"type":59,"value":2899},"Hardcoding private key",{"type":53,"tag":314,"props":2901,"children":2902},{},[2903,2905,2911],{"type":59,"value":2904},"Load from ",{"type":53,"tag":83,"props":2906,"children":2908},{"className":2907},[],[2909],{"type":59,"value":2910},"process.env",{"type":59,"value":2912}," (server) and never commit",{"type":53,"tag":287,"props":2914,"children":2915},{},[2916,2928],{"type":53,"tag":314,"props":2917,"children":2918},{},[2919,2920,2926],{"type":59,"value":2879},{"type":53,"tag":83,"props":2921,"children":2923},{"className":2922},[],[2924],{"type":59,"value":2925},"aptos.account",{"type":59,"value":2927}," as signer",{"type":53,"tag":314,"props":2929,"children":2930},{},[2931,2936,2938,2943,2945],{"type":53,"tag":83,"props":2932,"children":2934},{"className":2933},[],[2935],{"type":59,"value":2925},{"type":59,"value":2937}," is API namespace; signer is ",{"type":53,"tag":83,"props":2939,"children":2941},{"className":2940},[],[2942],{"type":59,"value":130},{"type":59,"value":2944}," \u002F ",{"type":53,"tag":83,"props":2946,"children":2948},{"className":2947},[],[2949],{"type":59,"value":122},{"type":53,"tag":287,"props":2951,"children":2952},{},[2953,2958],{"type":53,"tag":314,"props":2954,"children":2955},{},[2956],{"type":59,"value":2957},"Expecting account to exist on-chain after generate",{"type":53,"tag":314,"props":2959,"children":2960},{},[2961],{"type":59,"value":2962},"Fund with faucet or transfer first",{"type":53,"tag":269,"props":2964,"children":2965},{},[],{"type":53,"tag":62,"props":2967,"children":2969},{"id":2968},"references",[2970],{"type":59,"value":2971},"References",{"type":53,"tag":2973,"props":2974,"children":2975},"ul",{},[2976,3009,3021],{"type":53,"tag":109,"props":2977,"children":2978},{},[2979,2981,2987,2989,2995,2996,3002,3003],{"type":59,"value":2980},"SDK: ",{"type":53,"tag":83,"props":2982,"children":2984},{"className":2983},[],[2985],{"type":59,"value":2986},"src\u002Faccount\u002FAccount.ts",{"type":59,"value":2988},", ",{"type":53,"tag":83,"props":2990,"children":2992},{"className":2991},[],[2993],{"type":59,"value":2994},"src\u002Faccount\u002FEd25519Account.ts",{"type":59,"value":2988},{"type":53,"tag":83,"props":2997,"children":2999},{"className":2998},[],[3000],{"type":59,"value":3001},"src\u002Faccount\u002FAccountUtils.ts",{"type":59,"value":2988},{"type":53,"tag":83,"props":3004,"children":3006},{"className":3005},[],[3007],{"type":59,"value":3008},"src\u002Fapi\u002Faccount.ts",{"type":53,"tag":109,"props":3010,"children":3011},{},[3012,3014],{"type":59,"value":3013},"Pattern: ",{"type":53,"tag":3015,"props":3016,"children":3018},"a",{"href":3017},"..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md",[3019],{"type":59,"value":3020},"TYPESCRIPT_SDK.md",{"type":53,"tag":109,"props":3022,"children":3023},{},[3024,3026,3032,3033,3039,3040],{"type":59,"value":3025},"Related: ",{"type":53,"tag":3015,"props":3027,"children":3029},{"href":3028},"..\u002Fts-sdk-client\u002FSKILL.md",[3030],{"type":59,"value":3031},"ts-sdk-client",{"type":59,"value":2988},{"type":53,"tag":3015,"props":3034,"children":3036},{"href":3035},"..\u002Fts-sdk-transactions\u002FSKILL.md",[3037],{"type":59,"value":3038},"ts-sdk-transactions",{"type":59,"value":1157},{"type":53,"tag":3015,"props":3041,"children":3043},{"href":3042},"..\u002Fuse-ts-sdk\u002FSKILL.md",[3044],{"type":59,"value":3045},"use-ts-sdk",{"type":53,"tag":3047,"props":3048,"children":3049},"style",{},[3050],{"type":59,"value":3051},"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);}",{"items":3053,"total":3205},[3054,3068,3085,3099,3113,3127,3141,3156,3170,3177,3187,3196],{"slug":3055,"name":3055,"fn":3056,"description":3057,"org":3058,"tags":3059,"stars":26,"repoUrl":27,"updatedAt":3067},"analyze-gas-optimization","optimize Aptos Move contracts for gas","Analyze and optimize Aptos Move contracts for gas efficiency, identifying expensive operations and suggesting optimizations. Triggers on: 'optimize gas', 'reduce gas costs', 'gas analysis', 'make contract cheaper', 'gas efficiency', 'analyze gas usage', 'reduce transaction costs'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3060,3061,3064],{"name":14,"slug":15,"type":16},{"name":3062,"slug":3063,"type":16},"Performance","performance",{"name":3065,"slug":3066,"type":16},"Smart Contracts","smart-contracts","2026-07-12T08:07:14.117466",{"slug":3069,"name":3069,"fn":3070,"description":3071,"org":3072,"tags":3073,"stars":26,"repoUrl":27,"updatedAt":3084},"create-aptos-project","scaffold new Aptos dApp projects","Scaffolds new Aptos projects using npx create-aptos-dapp. Supports fullstack (Vite or Next.js) and contract-only templates with network selection and optional API key. Triggers on: 'build app', 'create app', 'make app', 'new app', 'build dApp', 'create dApp', 'new dApp', 'build project', 'new project', 'create project', 'scaffold', 'start project', 'set up project', 'build me a', 'I want to build', 'make me a', 'help me build'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3074,3077,3078,3081],{"name":3075,"slug":3076,"type":16},"Next.js","next-js",{"name":21,"slug":22,"type":16},{"name":3079,"slug":3080,"type":16},"Vite","vite",{"name":3082,"slug":3083,"type":16},"Web3","web3","2026-07-12T08:07:30.595111",{"slug":3086,"name":3086,"fn":3087,"description":3088,"org":3089,"tags":3090,"stars":26,"repoUrl":27,"updatedAt":3098},"deploy-contracts","deploy Move contracts to Aptos networks","Safely deploys Move contracts to Aptos networks (devnet, testnet, mainnet) with pre-deployment verification. Triggers on: 'deploy contract', 'publish to testnet', 'deploy to mainnet', 'how to deploy', 'publish module', 'deployment checklist', 'deploy to devnet'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3091,3094,3097],{"name":3092,"slug":3093,"type":16},"Deployment","deployment",{"name":3095,"slug":3096,"type":16},"Engineering","engineering",{"name":3065,"slug":3066,"type":16},"2026-07-12T08:07:16.798352",{"slug":3100,"name":3100,"fn":3101,"description":3102,"org":3103,"tags":3104,"stars":26,"repoUrl":27,"updatedAt":3112},"generate-tests","generate test suites for Move contracts","Creates comprehensive test suites for Move contracts with 100% coverage requirement. Triggers on: 'generate tests', 'create tests', 'write test suite', 'test this contract', 'how to test', 'add test coverage', 'write unit tests'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3105,3106,3109],{"name":3095,"slug":3096,"type":16},{"name":3107,"slug":3108,"type":16},"QA","qa",{"name":3110,"slug":3111,"type":16},"Testing","testing","2026-07-12T08:07:18.0205",{"slug":3114,"name":3114,"fn":3115,"description":3116,"org":3117,"tags":3118,"stars":26,"repoUrl":27,"updatedAt":3126},"modernize-move","modernize Move V1 contracts to V2","Detects and modernizes outdated Move V1 syntax, patterns, and APIs to Move V2+. Use when upgrading legacy contracts, migrating to modern syntax, or converting old patterns to current best practices. NOT for writing new contracts (use write-contracts) or fixing bugs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3119,3122,3123],{"name":3120,"slug":3121,"type":16},"Code Analysis","code-analysis",{"name":3095,"slug":3096,"type":16},{"name":3124,"slug":3125,"type":16},"Migration","migration","2026-07-12T08:07:10.226223",{"slug":3128,"name":3128,"fn":3129,"description":3130,"org":3131,"tags":3132,"stars":26,"repoUrl":27,"updatedAt":3140},"search-aptos-examples","search Aptos reference implementations","Searches aptos-core and daily-move for reference implementations before writing contracts. Triggers on: 'search examples', 'find example', 'check aptos-core', 'is there an example', 'reference implementation', 'how does aptos implement', 'similar contract', 'daily-move'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3133,3134,3137],{"name":14,"slug":15,"type":16},{"name":3135,"slug":3136,"type":16},"Documentation","documentation",{"name":3138,"slug":3139,"type":16},"Search","search","2026-07-12T08:07:15.382039",{"slug":3142,"name":3142,"fn":3143,"description":3144,"org":3145,"tags":3146,"stars":26,"repoUrl":27,"updatedAt":3155},"security-audit","audit Move smart contracts for security","Audits Move contracts for security vulnerabilities before deployment using 7-category checklist. Triggers on: 'audit contract', 'security check', 'review security', 'check for vulnerabilities', 'security audit', 'is this secure', 'find security issues'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3147,3150,3151,3154],{"name":3148,"slug":3149,"type":16},"Audit","audit",{"name":3120,"slug":3121,"type":16},{"name":3152,"slug":3153,"type":16},"Security","security",{"name":3065,"slug":3066,"type":16},"2026-07-12T08:07:11.680215",{"slug":3157,"name":3157,"fn":3158,"description":3159,"org":3160,"tags":3161,"stars":26,"repoUrl":27,"updatedAt":3169},"smoothsend-gasless","sponsor gas fees for Aptos dApps","How to sponsor gas fees for Aptos dApp users using SmoothSend. Paid commercial service: free on testnet, credit-based on mainnet. Covers 3-line wallet adapter integration (transactionSubmitter), Script Composer for fee-in-token stablecoin transfers. Triggers on: 'gasless', 'sponsor gas', 'users pay no APT', 'transactionSubmitter', 'SmoothSend', 'fee payer', 'pay gas for users', 'no gas required'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3162,3165,3168],{"name":3163,"slug":3164,"type":16},"API Development","api-development",{"name":3166,"slug":3167,"type":16},"Payments","payments",{"name":3082,"slug":3083,"type":16},"2026-07-12T08:07:31.843242",{"slug":4,"name":4,"fn":5,"description":6,"org":3171,"tags":3172,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3173,3174,3175,3176],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":21,"slug":22,"type":16},{"slug":3178,"name":3178,"fn":3179,"description":3180,"org":3181,"tags":3182,"stars":26,"repoUrl":27,"updatedAt":3186},"ts-sdk-address","manage AccountAddress in Aptos TypeScript SDK","How to create and use AccountAddress in @aptos-labs\u002Fts-sdk. Covers address format (AIP-40), from\u002FfromString\u002FfromStrict, special addresses, LONG vs SHORT form, and derived addresses (object, resource, token, user-derived). Triggers on: 'AccountAddress', 'AccountAddress.from', 'AIP-40', 'derived address', 'createObjectAddress', 'createResourceAddress', 'createTokenAddress'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3183,3184,3185],{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":21,"slug":22,"type":16},"2026-07-12T08:07:26.430378",{"slug":3031,"name":3031,"fn":3188,"description":3189,"org":3190,"tags":3191,"stars":26,"repoUrl":27,"updatedAt":3195},"configure Aptos SDK clients","How to create and configure the Aptos client (Aptos, AptosConfig) in @aptos-labs\u002Fts-sdk. Covers Network, fullnode\u002Findexer\u002Ffaucet URLs, singleton pattern, and Bun compatibility. Triggers on: 'Aptos client', 'AptosConfig', 'SDK client', 'client setup', 'new Aptos(', 'Network.TESTNET', 'Network.MAINNET'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3192,3193,3194],{"name":3163,"slug":3164,"type":16},{"name":24,"slug":25,"type":16},{"name":21,"slug":22,"type":16},"2026-07-12T08:07:21.933342",{"slug":3038,"name":3038,"fn":3197,"description":3198,"org":3199,"tags":3200,"stars":26,"repoUrl":27,"updatedAt":3204},"manage Aptos blockchain transactions","How to build, sign, submit, and simulate transactions in @aptos-labs\u002Fts-sdk. Covers build.simple(), signAndSubmitTransaction(), waitForTransaction(), simulate, sponsored (fee payer), and multi-agent. Triggers on: 'build.simple', 'signAndSubmitTransaction', 'transaction.build', 'waitForTransaction', 'signAsFeePayer', 'SDK transaction', 'sponsored transaction', 'multi-agent transaction'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3201,3202,3203],{"name":3163,"slug":3164,"type":16},{"name":21,"slug":22,"type":16},{"name":3082,"slug":3083,"type":16},"2026-07-12T08:07:23.774257",24,{"items":3207,"total":1329},[3208,3214,3221,3227,3233,3239,3245],{"slug":3055,"name":3055,"fn":3056,"description":3057,"org":3209,"tags":3210,"stars":26,"repoUrl":27,"updatedAt":3067},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3211,3212,3213],{"name":14,"slug":15,"type":16},{"name":3062,"slug":3063,"type":16},{"name":3065,"slug":3066,"type":16},{"slug":3069,"name":3069,"fn":3070,"description":3071,"org":3215,"tags":3216,"stars":26,"repoUrl":27,"updatedAt":3084},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3217,3218,3219,3220],{"name":3075,"slug":3076,"type":16},{"name":21,"slug":22,"type":16},{"name":3079,"slug":3080,"type":16},{"name":3082,"slug":3083,"type":16},{"slug":3086,"name":3086,"fn":3087,"description":3088,"org":3222,"tags":3223,"stars":26,"repoUrl":27,"updatedAt":3098},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3224,3225,3226],{"name":3092,"slug":3093,"type":16},{"name":3095,"slug":3096,"type":16},{"name":3065,"slug":3066,"type":16},{"slug":3100,"name":3100,"fn":3101,"description":3102,"org":3228,"tags":3229,"stars":26,"repoUrl":27,"updatedAt":3112},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3230,3231,3232],{"name":3095,"slug":3096,"type":16},{"name":3107,"slug":3108,"type":16},{"name":3110,"slug":3111,"type":16},{"slug":3114,"name":3114,"fn":3115,"description":3116,"org":3234,"tags":3235,"stars":26,"repoUrl":27,"updatedAt":3126},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3236,3237,3238],{"name":3120,"slug":3121,"type":16},{"name":3095,"slug":3096,"type":16},{"name":3124,"slug":3125,"type":16},{"slug":3128,"name":3128,"fn":3129,"description":3130,"org":3240,"tags":3241,"stars":26,"repoUrl":27,"updatedAt":3140},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3242,3243,3244],{"name":14,"slug":15,"type":16},{"name":3135,"slug":3136,"type":16},{"name":3138,"slug":3139,"type":16},{"slug":3142,"name":3142,"fn":3143,"description":3144,"org":3246,"tags":3247,"stars":26,"repoUrl":27,"updatedAt":3155},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3248,3249,3250,3251],{"name":3148,"slug":3149,"type":16},{"name":3120,"slug":3121,"type":16},{"name":3152,"slug":3153,"type":16},{"name":3065,"slug":3066,"type":16}]