[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aptos-ts-sdk-client":3,"mdc--e4r1w5-key":36,"related-org-aptos-ts-sdk-client":2191,"related-repo-aptos-ts-sdk-client":2346},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":31,"sourceUrl":34,"mdContent":35},"ts-sdk-client","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},"aptos","Aptos Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faptos.png","aptos-labs",[13,17,20],{"name":14,"slug":15,"type":16},"TypeScript","typescript","tag",{"name":18,"slug":19,"type":16},"API Development","api-development",{"name":21,"slug":22,"type":16},"SDK","sdk",18,"https:\u002F\u002Fgithub.com\u002Faptos-labs\u002Faptos-agent-skills","2026-07-12T08:07:21.933342","MIT",8,[29,30],"agent-skills","blockchain",{"repoUrl":24,"stars":23,"forks":27,"topics":32,"description":33},[29,30],"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-client","---\nname: ts-sdk-client\ndescription:\n  \"How to create and configure the Aptos client (Aptos, AptosConfig) in @aptos-labs\u002Fts-sdk. Covers Network,\n  fullnode\u002Findexer\u002Ffaucet URLs, singleton pattern, and Bun compatibility. Triggers on: 'Aptos client', 'AptosConfig',\n  'SDK client', 'client setup', 'new Aptos(', 'Network.TESTNET', 'Network.MAINNET'.\"\nlicense: MIT\nmetadata:\n  author: aptos-labs\n  version: \"1.0\"\n  category: sdk\n  tags: [\"typescript\", \"sdk\", \"client\", \"aptos\", \"config\", \"network\"]\n  priority: high\n---\n\n# TypeScript SDK: Aptos Client\n\n## Purpose\n\nGuide creation and configuration of the **Aptos** client and **AptosConfig** in `@aptos-labs\u002Fts-sdk`. One client\ninstance is used for all read\u002Fwrite and account\u002Ftransaction APIs.\n\n## ALWAYS\n\n1. **Create one Aptos instance per app** (singleton) and reuse it – avoid multiple `new Aptos(config)` for the same\n   network.\n2. **Configure network via `AptosConfig`** – use `Network.TESTNET` or `Network.MAINNET` (or custom endpoints).\n3. **Use environment variables for network\u002FURLs** in production – e.g. `process.env.APTOS_NETWORK` or\n   `import.meta.env.VITE_APP_NETWORK`.\n4. **Use `Network.TESTNET` as default for development** – devnet resets frequently.\n\n## NEVER\n\n1. **Do not create a new Aptos client per request** – reuse the singleton.\n2. **Do not hardcode fullnode\u002Findexer URLs** in source when using public networks – use `Network` enum.\n3. **Do not omit `network` when using custom endpoints** – in v5.2+ use `Network.CUSTOM` with custom URLs.\n\n---\n\n## Basic setup\n\n```typescript\nimport { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nconst config = new AptosConfig({ network: Network.TESTNET });\nconst aptos = new Aptos(config);\n```\n\n---\n\n## Network options\n\n```typescript\n\u002F\u002F Predefined networks\nconst devnet = new AptosConfig({ network: Network.DEVNET });\nconst testnet = new AptosConfig({ network: Network.TESTNET });\nconst mainnet = new AptosConfig({ network: Network.MAINNET });\n\n\u002F\u002F Custom endpoints (network is REQUIRED in v5.2+)\nconst custom = new AptosConfig({\n  network: Network.CUSTOM,\n  fullnode: \"https:\u002F\u002Fyour-fullnode.example.com\u002Fv1\",\n  indexer: \"https:\u002F\u002Fyour-indexer.example.com\u002Fv1\u002Fgraphql\",\n  faucet: \"https:\u002F\u002Fyour-faucet.example.com\"\n});\n```\n\n---\n\n## Singleton pattern (recommended)\n\n```typescript\n\u002F\u002F lib\u002Faptos.ts or similar\nimport { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nfunction getNetwork(): Network {\n  const raw = typeof process !== \"undefined\" ? process.env.APTOS_NETWORK : import.meta.env?.VITE_APP_NETWORK;\n  switch (raw) {\n    case \"mainnet\":\n      return Network.MAINNET;\n    case \"devnet\":\n      return Network.DEVNET;\n    default:\n      return Network.TESTNET;\n  }\n}\n\nconst config = new AptosConfig({ network: getNetwork() });\nexport const aptos = new Aptos(config);\n```\n\n---\n\n## Optional endpoints (override per service)\n\n```typescript\nconst config = new AptosConfig({\n  network: Network.TESTNET,\n  fullnode: \"https:\u002F\u002Ffullnode.testnet.aptoslabs.com\u002Fv1\", \u002F\u002F override default\n  indexer: \"https:\u002F\u002Findexer.testnet.aptoslabs.com\u002Fv1\u002Fgraphql\",\n  faucet: \"https:\u002F\u002Ffaucet.testnet.aptoslabs.com\",\n  pepper: \"https:\u002F\u002F...\", \u002F\u002F keyless pepper service\n  prover: \"https:\u002F\u002F...\" \u002F\u002F keyless prover\n});\nconst aptos = new Aptos(config);\n```\n\n---\n\n## Client config (HTTP, timeouts, Bun)\n\n```typescript\n\u002F\u002F Disable HTTP\u002F2 when using Bun (recommended)\nconst config = new AptosConfig({\n  network: Network.TESTNET,\n  clientConfig: { http2: false }\n});\nconst aptos = new Aptos(config);\n```\n\n---\n\n## Using the client\n\nAfter construction, use the same `aptos` instance for:\n\n- **Account \u002F balance:** `aptos.getAccountInfo()`, `aptos.getBalance()`, `aptos.getAccountResources()`, etc.\n- **Transactions:** `aptos.transaction.build.simple()`, `aptos.signAndSubmitTransaction()`,\n  `aptos.waitForTransaction()`.\n- **View:** `aptos.view()`.\n- **Faucet:** `aptos.fundAccount()` (devnet\u002Ftestnet).\n- **Coin \u002F token \u002F object \u002F ANS \u002F staking:** `aptos.coin.*`, `aptos.digitalAsset.*`, `aptos.fungibleAsset.*`,\n  `aptos.object.*`, `aptos.ans.*`, `aptos.staking.*`.\n\n---\n\n## Common mistakes\n\n| Mistake                            | Correct approach                                                     |\n| ---------------------------------- | -------------------------------------------------------------------- |\n| Creating Aptos in every function   | One singleton; pass `aptos` or import from shared module             |\n| Using devnet for persistent dev    | Prefer testnet; devnet resets                                        |\n| Custom URLs without Network.CUSTOM | Set `network: Network.CUSTOM` when providing fullnode\u002Findexer\u002Ffaucet |\n| Forgetting http2: false on Bun     | Set `clientConfig: { http2: false }` for Bun                         |\n\n---\n\n## References\n\n- SDK: `src\u002Fapi\u002Faptos.ts`, `src\u002Fapi\u002FaptosConfig.ts`\n- Pattern: [TYPESCRIPT_SDK.md](..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md)\n- Related: [ts-sdk-account](..\u002Fts-sdk-account\u002FSKILL.md), [ts-sdk-transactions](..\u002Fts-sdk-transactions\u002FSKILL.md),\n  [ts-sdk-wallet-adapter](..\u002Fts-sdk-wallet-adapter\u002FSKILL.md), [use-ts-sdk](..\u002Fuse-ts-sdk\u002FSKILL.md)\n",{"data":37,"body":45},{"name":4,"description":6,"license":26,"metadata":38},{"author":11,"version":39,"category":22,"tags":40,"priority":44},"1.0",[15,22,41,8,42,43],"client","config","network","high",{"type":46,"children":47},"root",[48,57,64,94,100,197,203,259,263,269,474,477,483,877,880,886,1392,1395,1401,1664,1667,1673,1828,1831,1837,1849,2000,2003,2009,2111,2114,2120,2185],{"type":49,"tag":50,"props":51,"children":53},"element","h1",{"id":52},"typescript-sdk-aptos-client",[54],{"type":55,"value":56},"text","TypeScript SDK: Aptos Client",{"type":49,"tag":58,"props":59,"children":61},"h2",{"id":60},"purpose",[62],{"type":55,"value":63},"Purpose",{"type":49,"tag":65,"props":66,"children":67},"p",{},[68,70,76,78,83,85,92],{"type":55,"value":69},"Guide creation and configuration of the ",{"type":49,"tag":71,"props":72,"children":73},"strong",{},[74],{"type":55,"value":75},"Aptos",{"type":55,"value":77}," client and ",{"type":49,"tag":71,"props":79,"children":80},{},[81],{"type":55,"value":82},"AptosConfig",{"type":55,"value":84}," in ",{"type":49,"tag":86,"props":87,"children":89},"code",{"className":88},[],[90],{"type":55,"value":91},"@aptos-labs\u002Fts-sdk",{"type":55,"value":93},". One client\ninstance is used for all read\u002Fwrite and account\u002Ftransaction APIs.",{"type":49,"tag":58,"props":95,"children":97},{"id":96},"always",[98],{"type":55,"value":99},"ALWAYS",{"type":49,"tag":101,"props":102,"children":103},"ol",{},[104,123,154,180],{"type":49,"tag":105,"props":106,"children":107},"li",{},[108,113,115,121],{"type":49,"tag":71,"props":109,"children":110},{},[111],{"type":55,"value":112},"Create one Aptos instance per app",{"type":55,"value":114}," (singleton) and reuse it – avoid multiple ",{"type":49,"tag":86,"props":116,"children":118},{"className":117},[],[119],{"type":55,"value":120},"new Aptos(config)",{"type":55,"value":122}," for the same\nnetwork.",{"type":49,"tag":105,"props":124,"children":125},{},[126,136,138,144,146,152],{"type":49,"tag":71,"props":127,"children":128},{},[129,131],{"type":55,"value":130},"Configure network via ",{"type":49,"tag":86,"props":132,"children":134},{"className":133},[],[135],{"type":55,"value":82},{"type":55,"value":137}," – use ",{"type":49,"tag":86,"props":139,"children":141},{"className":140},[],[142],{"type":55,"value":143},"Network.TESTNET",{"type":55,"value":145}," or ",{"type":49,"tag":86,"props":147,"children":149},{"className":148},[],[150],{"type":55,"value":151},"Network.MAINNET",{"type":55,"value":153}," (or custom endpoints).",{"type":49,"tag":105,"props":155,"children":156},{},[157,162,164,170,172,178],{"type":49,"tag":71,"props":158,"children":159},{},[160],{"type":55,"value":161},"Use environment variables for network\u002FURLs",{"type":55,"value":163}," in production – e.g. ",{"type":49,"tag":86,"props":165,"children":167},{"className":166},[],[168],{"type":55,"value":169},"process.env.APTOS_NETWORK",{"type":55,"value":171}," or\n",{"type":49,"tag":86,"props":173,"children":175},{"className":174},[],[176],{"type":55,"value":177},"import.meta.env.VITE_APP_NETWORK",{"type":55,"value":179},".",{"type":49,"tag":105,"props":181,"children":182},{},[183,195],{"type":49,"tag":71,"props":184,"children":185},{},[186,188,193],{"type":55,"value":187},"Use ",{"type":49,"tag":86,"props":189,"children":191},{"className":190},[],[192],{"type":55,"value":143},{"type":55,"value":194}," as default for development",{"type":55,"value":196}," – devnet resets frequently.",{"type":49,"tag":58,"props":198,"children":200},{"id":199},"never",[201],{"type":55,"value":202},"NEVER",{"type":49,"tag":101,"props":204,"children":205},{},[206,216,234],{"type":49,"tag":105,"props":207,"children":208},{},[209,214],{"type":49,"tag":71,"props":210,"children":211},{},[212],{"type":55,"value":213},"Do not create a new Aptos client per request",{"type":55,"value":215}," – reuse the singleton.",{"type":49,"tag":105,"props":217,"children":218},{},[219,224,226,232],{"type":49,"tag":71,"props":220,"children":221},{},[222],{"type":55,"value":223},"Do not hardcode fullnode\u002Findexer URLs",{"type":55,"value":225}," in source when using public networks – use ",{"type":49,"tag":86,"props":227,"children":229},{"className":228},[],[230],{"type":55,"value":231},"Network",{"type":55,"value":233}," enum.",{"type":49,"tag":105,"props":235,"children":236},{},[237,249,251,257],{"type":49,"tag":71,"props":238,"children":239},{},[240,242,247],{"type":55,"value":241},"Do not omit ",{"type":49,"tag":86,"props":243,"children":245},{"className":244},[],[246],{"type":55,"value":43},{"type":55,"value":248}," when using custom endpoints",{"type":55,"value":250}," – in v5.2+ use ",{"type":49,"tag":86,"props":252,"children":254},{"className":253},[],[255],{"type":55,"value":256},"Network.CUSTOM",{"type":55,"value":258}," with custom URLs.",{"type":49,"tag":260,"props":261,"children":262},"hr",{},[],{"type":49,"tag":58,"props":264,"children":266},{"id":265},"basic-setup",[267],{"type":55,"value":268},"Basic setup",{"type":49,"tag":270,"props":271,"children":275},"pre",{"className":272,"code":273,"language":15,"meta":274,"style":274},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nconst config = new AptosConfig({ network: Network.TESTNET });\nconst aptos = new Aptos(config);\n","",[276],{"type":49,"tag":86,"props":277,"children":278},{"__ignoreMap":274},[279,352,362,440],{"type":49,"tag":280,"props":281,"children":284},"span",{"class":282,"line":283},"line",1,[285,291,297,303,308,313,317,322,327,332,337,342,347],{"type":49,"tag":280,"props":286,"children":288},{"style":287},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[289],{"type":55,"value":290},"import",{"type":49,"tag":280,"props":292,"children":294},{"style":293},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[295],{"type":55,"value":296}," {",{"type":49,"tag":280,"props":298,"children":300},{"style":299},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[301],{"type":55,"value":302}," Aptos",{"type":49,"tag":280,"props":304,"children":305},{"style":293},[306],{"type":55,"value":307},",",{"type":49,"tag":280,"props":309,"children":310},{"style":299},[311],{"type":55,"value":312}," AptosConfig",{"type":49,"tag":280,"props":314,"children":315},{"style":293},[316],{"type":55,"value":307},{"type":49,"tag":280,"props":318,"children":319},{"style":299},[320],{"type":55,"value":321}," Network",{"type":49,"tag":280,"props":323,"children":324},{"style":293},[325],{"type":55,"value":326}," }",{"type":49,"tag":280,"props":328,"children":329},{"style":287},[330],{"type":55,"value":331}," from",{"type":49,"tag":280,"props":333,"children":334},{"style":293},[335],{"type":55,"value":336}," \"",{"type":49,"tag":280,"props":338,"children":340},{"style":339},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[341],{"type":55,"value":91},{"type":49,"tag":280,"props":343,"children":344},{"style":293},[345],{"type":55,"value":346},"\"",{"type":49,"tag":280,"props":348,"children":349},{"style":293},[350],{"type":55,"value":351},";\n",{"type":49,"tag":280,"props":353,"children":355},{"class":282,"line":354},2,[356],{"type":49,"tag":280,"props":357,"children":359},{"emptyLinePlaceholder":358},true,[360],{"type":55,"value":361},"\n",{"type":49,"tag":280,"props":363,"children":365},{"class":282,"line":364},3,[366,372,377,382,387,392,397,402,408,413,417,421,426,431,436],{"type":49,"tag":280,"props":367,"children":369},{"style":368},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[370],{"type":55,"value":371},"const",{"type":49,"tag":280,"props":373,"children":374},{"style":299},[375],{"type":55,"value":376}," config ",{"type":49,"tag":280,"props":378,"children":379},{"style":293},[380],{"type":55,"value":381},"=",{"type":49,"tag":280,"props":383,"children":384},{"style":293},[385],{"type":55,"value":386}," new",{"type":49,"tag":280,"props":388,"children":390},{"style":389},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[391],{"type":55,"value":312},{"type":49,"tag":280,"props":393,"children":394},{"style":299},[395],{"type":55,"value":396},"(",{"type":49,"tag":280,"props":398,"children":399},{"style":293},[400],{"type":55,"value":401},"{",{"type":49,"tag":280,"props":403,"children":405},{"style":404},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[406],{"type":55,"value":407}," network",{"type":49,"tag":280,"props":409,"children":410},{"style":293},[411],{"type":55,"value":412},":",{"type":49,"tag":280,"props":414,"children":415},{"style":299},[416],{"type":55,"value":321},{"type":49,"tag":280,"props":418,"children":419},{"style":293},[420],{"type":55,"value":179},{"type":49,"tag":280,"props":422,"children":423},{"style":299},[424],{"type":55,"value":425},"TESTNET ",{"type":49,"tag":280,"props":427,"children":428},{"style":293},[429],{"type":55,"value":430},"}",{"type":49,"tag":280,"props":432,"children":433},{"style":299},[434],{"type":55,"value":435},")",{"type":49,"tag":280,"props":437,"children":438},{"style":293},[439],{"type":55,"value":351},{"type":49,"tag":280,"props":441,"children":443},{"class":282,"line":442},4,[444,448,453,457,461,465,470],{"type":49,"tag":280,"props":445,"children":446},{"style":368},[447],{"type":55,"value":371},{"type":49,"tag":280,"props":449,"children":450},{"style":299},[451],{"type":55,"value":452}," aptos ",{"type":49,"tag":280,"props":454,"children":455},{"style":293},[456],{"type":55,"value":381},{"type":49,"tag":280,"props":458,"children":459},{"style":293},[460],{"type":55,"value":386},{"type":49,"tag":280,"props":462,"children":463},{"style":389},[464],{"type":55,"value":302},{"type":49,"tag":280,"props":466,"children":467},{"style":299},[468],{"type":55,"value":469},"(config)",{"type":49,"tag":280,"props":471,"children":472},{"style":293},[473],{"type":55,"value":351},{"type":49,"tag":260,"props":475,"children":476},{},[],{"type":49,"tag":58,"props":478,"children":480},{"id":479},"network-options",[481],{"type":55,"value":482},"Network options",{"type":49,"tag":270,"props":484,"children":486},{"className":272,"code":485,"language":15,"meta":274,"style":274},"\u002F\u002F Predefined networks\nconst devnet = new AptosConfig({ network: Network.DEVNET });\nconst testnet = new AptosConfig({ network: Network.TESTNET });\nconst mainnet = new AptosConfig({ network: Network.MAINNET });\n\n\u002F\u002F Custom endpoints (network is REQUIRED in v5.2+)\nconst custom = new AptosConfig({\n  network: Network.CUSTOM,\n  fullnode: \"https:\u002F\u002Fyour-fullnode.example.com\u002Fv1\",\n  indexer: \"https:\u002F\u002Fyour-indexer.example.com\u002Fv1\u002Fgraphql\",\n  faucet: \"https:\u002F\u002Fyour-faucet.example.com\"\n});\n",[487],{"type":49,"tag":86,"props":488,"children":489},{"__ignoreMap":274},[490,499,564,628,693,701,710,744,774,804,834,861],{"type":49,"tag":280,"props":491,"children":492},{"class":282,"line":283},[493],{"type":49,"tag":280,"props":494,"children":496},{"style":495},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[497],{"type":55,"value":498},"\u002F\u002F Predefined networks\n",{"type":49,"tag":280,"props":500,"children":501},{"class":282,"line":354},[502,506,511,515,519,523,527,531,535,539,543,547,552,556,560],{"type":49,"tag":280,"props":503,"children":504},{"style":368},[505],{"type":55,"value":371},{"type":49,"tag":280,"props":507,"children":508},{"style":299},[509],{"type":55,"value":510}," devnet ",{"type":49,"tag":280,"props":512,"children":513},{"style":293},[514],{"type":55,"value":381},{"type":49,"tag":280,"props":516,"children":517},{"style":293},[518],{"type":55,"value":386},{"type":49,"tag":280,"props":520,"children":521},{"style":389},[522],{"type":55,"value":312},{"type":49,"tag":280,"props":524,"children":525},{"style":299},[526],{"type":55,"value":396},{"type":49,"tag":280,"props":528,"children":529},{"style":293},[530],{"type":55,"value":401},{"type":49,"tag":280,"props":532,"children":533},{"style":404},[534],{"type":55,"value":407},{"type":49,"tag":280,"props":536,"children":537},{"style":293},[538],{"type":55,"value":412},{"type":49,"tag":280,"props":540,"children":541},{"style":299},[542],{"type":55,"value":321},{"type":49,"tag":280,"props":544,"children":545},{"style":293},[546],{"type":55,"value":179},{"type":49,"tag":280,"props":548,"children":549},{"style":299},[550],{"type":55,"value":551},"DEVNET ",{"type":49,"tag":280,"props":553,"children":554},{"style":293},[555],{"type":55,"value":430},{"type":49,"tag":280,"props":557,"children":558},{"style":299},[559],{"type":55,"value":435},{"type":49,"tag":280,"props":561,"children":562},{"style":293},[563],{"type":55,"value":351},{"type":49,"tag":280,"props":565,"children":566},{"class":282,"line":364},[567,571,576,580,584,588,592,596,600,604,608,612,616,620,624],{"type":49,"tag":280,"props":568,"children":569},{"style":368},[570],{"type":55,"value":371},{"type":49,"tag":280,"props":572,"children":573},{"style":299},[574],{"type":55,"value":575}," testnet ",{"type":49,"tag":280,"props":577,"children":578},{"style":293},[579],{"type":55,"value":381},{"type":49,"tag":280,"props":581,"children":582},{"style":293},[583],{"type":55,"value":386},{"type":49,"tag":280,"props":585,"children":586},{"style":389},[587],{"type":55,"value":312},{"type":49,"tag":280,"props":589,"children":590},{"style":299},[591],{"type":55,"value":396},{"type":49,"tag":280,"props":593,"children":594},{"style":293},[595],{"type":55,"value":401},{"type":49,"tag":280,"props":597,"children":598},{"style":404},[599],{"type":55,"value":407},{"type":49,"tag":280,"props":601,"children":602},{"style":293},[603],{"type":55,"value":412},{"type":49,"tag":280,"props":605,"children":606},{"style":299},[607],{"type":55,"value":321},{"type":49,"tag":280,"props":609,"children":610},{"style":293},[611],{"type":55,"value":179},{"type":49,"tag":280,"props":613,"children":614},{"style":299},[615],{"type":55,"value":425},{"type":49,"tag":280,"props":617,"children":618},{"style":293},[619],{"type":55,"value":430},{"type":49,"tag":280,"props":621,"children":622},{"style":299},[623],{"type":55,"value":435},{"type":49,"tag":280,"props":625,"children":626},{"style":293},[627],{"type":55,"value":351},{"type":49,"tag":280,"props":629,"children":630},{"class":282,"line":442},[631,635,640,644,648,652,656,660,664,668,672,676,681,685,689],{"type":49,"tag":280,"props":632,"children":633},{"style":368},[634],{"type":55,"value":371},{"type":49,"tag":280,"props":636,"children":637},{"style":299},[638],{"type":55,"value":639}," mainnet ",{"type":49,"tag":280,"props":641,"children":642},{"style":293},[643],{"type":55,"value":381},{"type":49,"tag":280,"props":645,"children":646},{"style":293},[647],{"type":55,"value":386},{"type":49,"tag":280,"props":649,"children":650},{"style":389},[651],{"type":55,"value":312},{"type":49,"tag":280,"props":653,"children":654},{"style":299},[655],{"type":55,"value":396},{"type":49,"tag":280,"props":657,"children":658},{"style":293},[659],{"type":55,"value":401},{"type":49,"tag":280,"props":661,"children":662},{"style":404},[663],{"type":55,"value":407},{"type":49,"tag":280,"props":665,"children":666},{"style":293},[667],{"type":55,"value":412},{"type":49,"tag":280,"props":669,"children":670},{"style":299},[671],{"type":55,"value":321},{"type":49,"tag":280,"props":673,"children":674},{"style":293},[675],{"type":55,"value":179},{"type":49,"tag":280,"props":677,"children":678},{"style":299},[679],{"type":55,"value":680},"MAINNET ",{"type":49,"tag":280,"props":682,"children":683},{"style":293},[684],{"type":55,"value":430},{"type":49,"tag":280,"props":686,"children":687},{"style":299},[688],{"type":55,"value":435},{"type":49,"tag":280,"props":690,"children":691},{"style":293},[692],{"type":55,"value":351},{"type":49,"tag":280,"props":694,"children":696},{"class":282,"line":695},5,[697],{"type":49,"tag":280,"props":698,"children":699},{"emptyLinePlaceholder":358},[700],{"type":55,"value":361},{"type":49,"tag":280,"props":702,"children":704},{"class":282,"line":703},6,[705],{"type":49,"tag":280,"props":706,"children":707},{"style":495},[708],{"type":55,"value":709},"\u002F\u002F Custom endpoints (network is REQUIRED in v5.2+)\n",{"type":49,"tag":280,"props":711,"children":713},{"class":282,"line":712},7,[714,718,723,727,731,735,739],{"type":49,"tag":280,"props":715,"children":716},{"style":368},[717],{"type":55,"value":371},{"type":49,"tag":280,"props":719,"children":720},{"style":299},[721],{"type":55,"value":722}," custom ",{"type":49,"tag":280,"props":724,"children":725},{"style":293},[726],{"type":55,"value":381},{"type":49,"tag":280,"props":728,"children":729},{"style":293},[730],{"type":55,"value":386},{"type":49,"tag":280,"props":732,"children":733},{"style":389},[734],{"type":55,"value":312},{"type":49,"tag":280,"props":736,"children":737},{"style":299},[738],{"type":55,"value":396},{"type":49,"tag":280,"props":740,"children":741},{"style":293},[742],{"type":55,"value":743},"{\n",{"type":49,"tag":280,"props":745,"children":746},{"class":282,"line":27},[747,752,756,760,764,769],{"type":49,"tag":280,"props":748,"children":749},{"style":404},[750],{"type":55,"value":751},"  network",{"type":49,"tag":280,"props":753,"children":754},{"style":293},[755],{"type":55,"value":412},{"type":49,"tag":280,"props":757,"children":758},{"style":299},[759],{"type":55,"value":321},{"type":49,"tag":280,"props":761,"children":762},{"style":293},[763],{"type":55,"value":179},{"type":49,"tag":280,"props":765,"children":766},{"style":299},[767],{"type":55,"value":768},"CUSTOM",{"type":49,"tag":280,"props":770,"children":771},{"style":293},[772],{"type":55,"value":773},",\n",{"type":49,"tag":280,"props":775,"children":777},{"class":282,"line":776},9,[778,783,787,791,796,800],{"type":49,"tag":280,"props":779,"children":780},{"style":404},[781],{"type":55,"value":782},"  fullnode",{"type":49,"tag":280,"props":784,"children":785},{"style":293},[786],{"type":55,"value":412},{"type":49,"tag":280,"props":788,"children":789},{"style":293},[790],{"type":55,"value":336},{"type":49,"tag":280,"props":792,"children":793},{"style":339},[794],{"type":55,"value":795},"https:\u002F\u002Fyour-fullnode.example.com\u002Fv1",{"type":49,"tag":280,"props":797,"children":798},{"style":293},[799],{"type":55,"value":346},{"type":49,"tag":280,"props":801,"children":802},{"style":293},[803],{"type":55,"value":773},{"type":49,"tag":280,"props":805,"children":807},{"class":282,"line":806},10,[808,813,817,821,826,830],{"type":49,"tag":280,"props":809,"children":810},{"style":404},[811],{"type":55,"value":812},"  indexer",{"type":49,"tag":280,"props":814,"children":815},{"style":293},[816],{"type":55,"value":412},{"type":49,"tag":280,"props":818,"children":819},{"style":293},[820],{"type":55,"value":336},{"type":49,"tag":280,"props":822,"children":823},{"style":339},[824],{"type":55,"value":825},"https:\u002F\u002Fyour-indexer.example.com\u002Fv1\u002Fgraphql",{"type":49,"tag":280,"props":827,"children":828},{"style":293},[829],{"type":55,"value":346},{"type":49,"tag":280,"props":831,"children":832},{"style":293},[833],{"type":55,"value":773},{"type":49,"tag":280,"props":835,"children":837},{"class":282,"line":836},11,[838,843,847,851,856],{"type":49,"tag":280,"props":839,"children":840},{"style":404},[841],{"type":55,"value":842},"  faucet",{"type":49,"tag":280,"props":844,"children":845},{"style":293},[846],{"type":55,"value":412},{"type":49,"tag":280,"props":848,"children":849},{"style":293},[850],{"type":55,"value":336},{"type":49,"tag":280,"props":852,"children":853},{"style":339},[854],{"type":55,"value":855},"https:\u002F\u002Fyour-faucet.example.com",{"type":49,"tag":280,"props":857,"children":858},{"style":293},[859],{"type":55,"value":860},"\"\n",{"type":49,"tag":280,"props":862,"children":864},{"class":282,"line":863},12,[865,869,873],{"type":49,"tag":280,"props":866,"children":867},{"style":293},[868],{"type":55,"value":430},{"type":49,"tag":280,"props":870,"children":871},{"style":299},[872],{"type":55,"value":435},{"type":49,"tag":280,"props":874,"children":875},{"style":293},[876],{"type":55,"value":351},{"type":49,"tag":260,"props":878,"children":879},{},[],{"type":49,"tag":58,"props":881,"children":883},{"id":882},"singleton-pattern-recommended",[884],{"type":55,"value":885},"Singleton pattern (recommended)",{"type":49,"tag":270,"props":887,"children":889},{"className":272,"code":888,"language":15,"meta":274,"style":274},"\u002F\u002F lib\u002Faptos.ts or similar\nimport { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nfunction getNetwork(): Network {\n  const raw = typeof process !== \"undefined\" ? process.env.APTOS_NETWORK : import.meta.env?.VITE_APP_NETWORK;\n  switch (raw) {\n    case \"mainnet\":\n      return Network.MAINNET;\n    case \"devnet\":\n      return Network.DEVNET;\n    default:\n      return Network.TESTNET;\n  }\n}\n\nconst config = new AptosConfig({ network: getNetwork() });\nexport const aptos = new Aptos(config);\n",[890],{"type":49,"tag":86,"props":891,"children":892},{"__ignoreMap":274},[893,901,956,963,991,1105,1132,1158,1183,1207,1231,1243,1267,1276,1285,1293,1354],{"type":49,"tag":280,"props":894,"children":895},{"class":282,"line":283},[896],{"type":49,"tag":280,"props":897,"children":898},{"style":495},[899],{"type":55,"value":900},"\u002F\u002F lib\u002Faptos.ts or similar\n",{"type":49,"tag":280,"props":902,"children":903},{"class":282,"line":354},[904,908,912,916,920,924,928,932,936,940,944,948,952],{"type":49,"tag":280,"props":905,"children":906},{"style":287},[907],{"type":55,"value":290},{"type":49,"tag":280,"props":909,"children":910},{"style":293},[911],{"type":55,"value":296},{"type":49,"tag":280,"props":913,"children":914},{"style":299},[915],{"type":55,"value":302},{"type":49,"tag":280,"props":917,"children":918},{"style":293},[919],{"type":55,"value":307},{"type":49,"tag":280,"props":921,"children":922},{"style":299},[923],{"type":55,"value":312},{"type":49,"tag":280,"props":925,"children":926},{"style":293},[927],{"type":55,"value":307},{"type":49,"tag":280,"props":929,"children":930},{"style":299},[931],{"type":55,"value":321},{"type":49,"tag":280,"props":933,"children":934},{"style":293},[935],{"type":55,"value":326},{"type":49,"tag":280,"props":937,"children":938},{"style":287},[939],{"type":55,"value":331},{"type":49,"tag":280,"props":941,"children":942},{"style":293},[943],{"type":55,"value":336},{"type":49,"tag":280,"props":945,"children":946},{"style":339},[947],{"type":55,"value":91},{"type":49,"tag":280,"props":949,"children":950},{"style":293},[951],{"type":55,"value":346},{"type":49,"tag":280,"props":953,"children":954},{"style":293},[955],{"type":55,"value":351},{"type":49,"tag":280,"props":957,"children":958},{"class":282,"line":364},[959],{"type":49,"tag":280,"props":960,"children":961},{"emptyLinePlaceholder":358},[962],{"type":55,"value":361},{"type":49,"tag":280,"props":964,"children":965},{"class":282,"line":442},[966,971,976,981,986],{"type":49,"tag":280,"props":967,"children":968},{"style":368},[969],{"type":55,"value":970},"function",{"type":49,"tag":280,"props":972,"children":973},{"style":389},[974],{"type":55,"value":975}," getNetwork",{"type":49,"tag":280,"props":977,"children":978},{"style":293},[979],{"type":55,"value":980},"():",{"type":49,"tag":280,"props":982,"children":984},{"style":983},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[985],{"type":55,"value":321},{"type":49,"tag":280,"props":987,"children":988},{"style":293},[989],{"type":55,"value":990}," {\n",{"type":49,"tag":280,"props":992,"children":993},{"class":282,"line":695},[994,999,1004,1009,1014,1019,1024,1028,1033,1037,1042,1046,1050,1055,1059,1064,1069,1074,1078,1083,1087,1091,1096,1101],{"type":49,"tag":280,"props":995,"children":996},{"style":368},[997],{"type":55,"value":998},"  const",{"type":49,"tag":280,"props":1000,"children":1001},{"style":299},[1002],{"type":55,"value":1003}," raw",{"type":49,"tag":280,"props":1005,"children":1006},{"style":293},[1007],{"type":55,"value":1008}," =",{"type":49,"tag":280,"props":1010,"children":1011},{"style":293},[1012],{"type":55,"value":1013}," typeof",{"type":49,"tag":280,"props":1015,"children":1016},{"style":299},[1017],{"type":55,"value":1018}," process",{"type":49,"tag":280,"props":1020,"children":1021},{"style":293},[1022],{"type":55,"value":1023}," !==",{"type":49,"tag":280,"props":1025,"children":1026},{"style":293},[1027],{"type":55,"value":336},{"type":49,"tag":280,"props":1029,"children":1030},{"style":339},[1031],{"type":55,"value":1032},"undefined",{"type":49,"tag":280,"props":1034,"children":1035},{"style":293},[1036],{"type":55,"value":346},{"type":49,"tag":280,"props":1038,"children":1039},{"style":293},[1040],{"type":55,"value":1041}," ?",{"type":49,"tag":280,"props":1043,"children":1044},{"style":299},[1045],{"type":55,"value":1018},{"type":49,"tag":280,"props":1047,"children":1048},{"style":293},[1049],{"type":55,"value":179},{"type":49,"tag":280,"props":1051,"children":1052},{"style":299},[1053],{"type":55,"value":1054},"env",{"type":49,"tag":280,"props":1056,"children":1057},{"style":293},[1058],{"type":55,"value":179},{"type":49,"tag":280,"props":1060,"children":1061},{"style":299},[1062],{"type":55,"value":1063},"APTOS_NETWORK",{"type":49,"tag":280,"props":1065,"children":1066},{"style":293},[1067],{"type":55,"value":1068}," :",{"type":49,"tag":280,"props":1070,"children":1071},{"style":287},[1072],{"type":55,"value":1073}," import",{"type":49,"tag":280,"props":1075,"children":1076},{"style":293},[1077],{"type":55,"value":179},{"type":49,"tag":280,"props":1079,"children":1080},{"style":299},[1081],{"type":55,"value":1082},"meta",{"type":49,"tag":280,"props":1084,"children":1085},{"style":293},[1086],{"type":55,"value":179},{"type":49,"tag":280,"props":1088,"children":1089},{"style":299},[1090],{"type":55,"value":1054},{"type":49,"tag":280,"props":1092,"children":1093},{"style":293},[1094],{"type":55,"value":1095},"?.",{"type":49,"tag":280,"props":1097,"children":1098},{"style":299},[1099],{"type":55,"value":1100},"VITE_APP_NETWORK",{"type":49,"tag":280,"props":1102,"children":1103},{"style":293},[1104],{"type":55,"value":351},{"type":49,"tag":280,"props":1106,"children":1107},{"class":282,"line":703},[1108,1113,1118,1123,1128],{"type":49,"tag":280,"props":1109,"children":1110},{"style":287},[1111],{"type":55,"value":1112},"  switch",{"type":49,"tag":280,"props":1114,"children":1115},{"style":404},[1116],{"type":55,"value":1117}," (",{"type":49,"tag":280,"props":1119,"children":1120},{"style":299},[1121],{"type":55,"value":1122},"raw",{"type":49,"tag":280,"props":1124,"children":1125},{"style":404},[1126],{"type":55,"value":1127},") ",{"type":49,"tag":280,"props":1129,"children":1130},{"style":293},[1131],{"type":55,"value":743},{"type":49,"tag":280,"props":1133,"children":1134},{"class":282,"line":712},[1135,1140,1144,1149,1153],{"type":49,"tag":280,"props":1136,"children":1137},{"style":287},[1138],{"type":55,"value":1139},"    case",{"type":49,"tag":280,"props":1141,"children":1142},{"style":293},[1143],{"type":55,"value":336},{"type":49,"tag":280,"props":1145,"children":1146},{"style":339},[1147],{"type":55,"value":1148},"mainnet",{"type":49,"tag":280,"props":1150,"children":1151},{"style":293},[1152],{"type":55,"value":346},{"type":49,"tag":280,"props":1154,"children":1155},{"style":293},[1156],{"type":55,"value":1157},":\n",{"type":49,"tag":280,"props":1159,"children":1160},{"class":282,"line":27},[1161,1166,1170,1174,1179],{"type":49,"tag":280,"props":1162,"children":1163},{"style":287},[1164],{"type":55,"value":1165},"      return",{"type":49,"tag":280,"props":1167,"children":1168},{"style":299},[1169],{"type":55,"value":321},{"type":49,"tag":280,"props":1171,"children":1172},{"style":293},[1173],{"type":55,"value":179},{"type":49,"tag":280,"props":1175,"children":1176},{"style":299},[1177],{"type":55,"value":1178},"MAINNET",{"type":49,"tag":280,"props":1180,"children":1181},{"style":293},[1182],{"type":55,"value":351},{"type":49,"tag":280,"props":1184,"children":1185},{"class":282,"line":776},[1186,1190,1194,1199,1203],{"type":49,"tag":280,"props":1187,"children":1188},{"style":287},[1189],{"type":55,"value":1139},{"type":49,"tag":280,"props":1191,"children":1192},{"style":293},[1193],{"type":55,"value":336},{"type":49,"tag":280,"props":1195,"children":1196},{"style":339},[1197],{"type":55,"value":1198},"devnet",{"type":49,"tag":280,"props":1200,"children":1201},{"style":293},[1202],{"type":55,"value":346},{"type":49,"tag":280,"props":1204,"children":1205},{"style":293},[1206],{"type":55,"value":1157},{"type":49,"tag":280,"props":1208,"children":1209},{"class":282,"line":806},[1210,1214,1218,1222,1227],{"type":49,"tag":280,"props":1211,"children":1212},{"style":287},[1213],{"type":55,"value":1165},{"type":49,"tag":280,"props":1215,"children":1216},{"style":299},[1217],{"type":55,"value":321},{"type":49,"tag":280,"props":1219,"children":1220},{"style":293},[1221],{"type":55,"value":179},{"type":49,"tag":280,"props":1223,"children":1224},{"style":299},[1225],{"type":55,"value":1226},"DEVNET",{"type":49,"tag":280,"props":1228,"children":1229},{"style":293},[1230],{"type":55,"value":351},{"type":49,"tag":280,"props":1232,"children":1233},{"class":282,"line":836},[1234,1239],{"type":49,"tag":280,"props":1235,"children":1236},{"style":287},[1237],{"type":55,"value":1238},"    default",{"type":49,"tag":280,"props":1240,"children":1241},{"style":293},[1242],{"type":55,"value":1157},{"type":49,"tag":280,"props":1244,"children":1245},{"class":282,"line":863},[1246,1250,1254,1258,1263],{"type":49,"tag":280,"props":1247,"children":1248},{"style":287},[1249],{"type":55,"value":1165},{"type":49,"tag":280,"props":1251,"children":1252},{"style":299},[1253],{"type":55,"value":321},{"type":49,"tag":280,"props":1255,"children":1256},{"style":293},[1257],{"type":55,"value":179},{"type":49,"tag":280,"props":1259,"children":1260},{"style":299},[1261],{"type":55,"value":1262},"TESTNET",{"type":49,"tag":280,"props":1264,"children":1265},{"style":293},[1266],{"type":55,"value":351},{"type":49,"tag":280,"props":1268,"children":1270},{"class":282,"line":1269},13,[1271],{"type":49,"tag":280,"props":1272,"children":1273},{"style":293},[1274],{"type":55,"value":1275},"  }\n",{"type":49,"tag":280,"props":1277,"children":1279},{"class":282,"line":1278},14,[1280],{"type":49,"tag":280,"props":1281,"children":1282},{"style":293},[1283],{"type":55,"value":1284},"}\n",{"type":49,"tag":280,"props":1286,"children":1288},{"class":282,"line":1287},15,[1289],{"type":49,"tag":280,"props":1290,"children":1291},{"emptyLinePlaceholder":358},[1292],{"type":55,"value":361},{"type":49,"tag":280,"props":1294,"children":1296},{"class":282,"line":1295},16,[1297,1301,1305,1309,1313,1317,1321,1325,1329,1333,1337,1342,1346,1350],{"type":49,"tag":280,"props":1298,"children":1299},{"style":368},[1300],{"type":55,"value":371},{"type":49,"tag":280,"props":1302,"children":1303},{"style":299},[1304],{"type":55,"value":376},{"type":49,"tag":280,"props":1306,"children":1307},{"style":293},[1308],{"type":55,"value":381},{"type":49,"tag":280,"props":1310,"children":1311},{"style":293},[1312],{"type":55,"value":386},{"type":49,"tag":280,"props":1314,"children":1315},{"style":389},[1316],{"type":55,"value":312},{"type":49,"tag":280,"props":1318,"children":1319},{"style":299},[1320],{"type":55,"value":396},{"type":49,"tag":280,"props":1322,"children":1323},{"style":293},[1324],{"type":55,"value":401},{"type":49,"tag":280,"props":1326,"children":1327},{"style":404},[1328],{"type":55,"value":407},{"type":49,"tag":280,"props":1330,"children":1331},{"style":293},[1332],{"type":55,"value":412},{"type":49,"tag":280,"props":1334,"children":1335},{"style":389},[1336],{"type":55,"value":975},{"type":49,"tag":280,"props":1338,"children":1339},{"style":299},[1340],{"type":55,"value":1341},"() ",{"type":49,"tag":280,"props":1343,"children":1344},{"style":293},[1345],{"type":55,"value":430},{"type":49,"tag":280,"props":1347,"children":1348},{"style":299},[1349],{"type":55,"value":435},{"type":49,"tag":280,"props":1351,"children":1352},{"style":293},[1353],{"type":55,"value":351},{"type":49,"tag":280,"props":1355,"children":1357},{"class":282,"line":1356},17,[1358,1363,1368,1372,1376,1380,1384,1388],{"type":49,"tag":280,"props":1359,"children":1360},{"style":287},[1361],{"type":55,"value":1362},"export",{"type":49,"tag":280,"props":1364,"children":1365},{"style":368},[1366],{"type":55,"value":1367}," const",{"type":49,"tag":280,"props":1369,"children":1370},{"style":299},[1371],{"type":55,"value":452},{"type":49,"tag":280,"props":1373,"children":1374},{"style":293},[1375],{"type":55,"value":381},{"type":49,"tag":280,"props":1377,"children":1378},{"style":293},[1379],{"type":55,"value":386},{"type":49,"tag":280,"props":1381,"children":1382},{"style":389},[1383],{"type":55,"value":302},{"type":49,"tag":280,"props":1385,"children":1386},{"style":299},[1387],{"type":55,"value":469},{"type":49,"tag":280,"props":1389,"children":1390},{"style":293},[1391],{"type":55,"value":351},{"type":49,"tag":260,"props":1393,"children":1394},{},[],{"type":49,"tag":58,"props":1396,"children":1398},{"id":1397},"optional-endpoints-override-per-service",[1399],{"type":55,"value":1400},"Optional endpoints (override per service)",{"type":49,"tag":270,"props":1402,"children":1404},{"className":272,"code":1403,"language":15,"meta":274,"style":274},"const config = new AptosConfig({\n  network: Network.TESTNET,\n  fullnode: \"https:\u002F\u002Ffullnode.testnet.aptoslabs.com\u002Fv1\", \u002F\u002F override default\n  indexer: \"https:\u002F\u002Findexer.testnet.aptoslabs.com\u002Fv1\u002Fgraphql\",\n  faucet: \"https:\u002F\u002Ffaucet.testnet.aptoslabs.com\",\n  pepper: \"https:\u002F\u002F...\", \u002F\u002F keyless pepper service\n  prover: \"https:\u002F\u002F...\" \u002F\u002F keyless prover\n});\nconst aptos = new Aptos(config);\n",[1405],{"type":49,"tag":86,"props":1406,"children":1407},{"__ignoreMap":274},[1408,1439,1466,1499,1527,1555,1589,1618,1633],{"type":49,"tag":280,"props":1409,"children":1410},{"class":282,"line":283},[1411,1415,1419,1423,1427,1431,1435],{"type":49,"tag":280,"props":1412,"children":1413},{"style":368},[1414],{"type":55,"value":371},{"type":49,"tag":280,"props":1416,"children":1417},{"style":299},[1418],{"type":55,"value":376},{"type":49,"tag":280,"props":1420,"children":1421},{"style":293},[1422],{"type":55,"value":381},{"type":49,"tag":280,"props":1424,"children":1425},{"style":293},[1426],{"type":55,"value":386},{"type":49,"tag":280,"props":1428,"children":1429},{"style":389},[1430],{"type":55,"value":312},{"type":49,"tag":280,"props":1432,"children":1433},{"style":299},[1434],{"type":55,"value":396},{"type":49,"tag":280,"props":1436,"children":1437},{"style":293},[1438],{"type":55,"value":743},{"type":49,"tag":280,"props":1440,"children":1441},{"class":282,"line":354},[1442,1446,1450,1454,1458,1462],{"type":49,"tag":280,"props":1443,"children":1444},{"style":404},[1445],{"type":55,"value":751},{"type":49,"tag":280,"props":1447,"children":1448},{"style":293},[1449],{"type":55,"value":412},{"type":49,"tag":280,"props":1451,"children":1452},{"style":299},[1453],{"type":55,"value":321},{"type":49,"tag":280,"props":1455,"children":1456},{"style":293},[1457],{"type":55,"value":179},{"type":49,"tag":280,"props":1459,"children":1460},{"style":299},[1461],{"type":55,"value":1262},{"type":49,"tag":280,"props":1463,"children":1464},{"style":293},[1465],{"type":55,"value":773},{"type":49,"tag":280,"props":1467,"children":1468},{"class":282,"line":364},[1469,1473,1477,1481,1486,1490,1494],{"type":49,"tag":280,"props":1470,"children":1471},{"style":404},[1472],{"type":55,"value":782},{"type":49,"tag":280,"props":1474,"children":1475},{"style":293},[1476],{"type":55,"value":412},{"type":49,"tag":280,"props":1478,"children":1479},{"style":293},[1480],{"type":55,"value":336},{"type":49,"tag":280,"props":1482,"children":1483},{"style":339},[1484],{"type":55,"value":1485},"https:\u002F\u002Ffullnode.testnet.aptoslabs.com\u002Fv1",{"type":49,"tag":280,"props":1487,"children":1488},{"style":293},[1489],{"type":55,"value":346},{"type":49,"tag":280,"props":1491,"children":1492},{"style":293},[1493],{"type":55,"value":307},{"type":49,"tag":280,"props":1495,"children":1496},{"style":495},[1497],{"type":55,"value":1498}," \u002F\u002F override default\n",{"type":49,"tag":280,"props":1500,"children":1501},{"class":282,"line":442},[1502,1506,1510,1514,1519,1523],{"type":49,"tag":280,"props":1503,"children":1504},{"style":404},[1505],{"type":55,"value":812},{"type":49,"tag":280,"props":1507,"children":1508},{"style":293},[1509],{"type":55,"value":412},{"type":49,"tag":280,"props":1511,"children":1512},{"style":293},[1513],{"type":55,"value":336},{"type":49,"tag":280,"props":1515,"children":1516},{"style":339},[1517],{"type":55,"value":1518},"https:\u002F\u002Findexer.testnet.aptoslabs.com\u002Fv1\u002Fgraphql",{"type":49,"tag":280,"props":1520,"children":1521},{"style":293},[1522],{"type":55,"value":346},{"type":49,"tag":280,"props":1524,"children":1525},{"style":293},[1526],{"type":55,"value":773},{"type":49,"tag":280,"props":1528,"children":1529},{"class":282,"line":695},[1530,1534,1538,1542,1547,1551],{"type":49,"tag":280,"props":1531,"children":1532},{"style":404},[1533],{"type":55,"value":842},{"type":49,"tag":280,"props":1535,"children":1536},{"style":293},[1537],{"type":55,"value":412},{"type":49,"tag":280,"props":1539,"children":1540},{"style":293},[1541],{"type":55,"value":336},{"type":49,"tag":280,"props":1543,"children":1544},{"style":339},[1545],{"type":55,"value":1546},"https:\u002F\u002Ffaucet.testnet.aptoslabs.com",{"type":49,"tag":280,"props":1548,"children":1549},{"style":293},[1550],{"type":55,"value":346},{"type":49,"tag":280,"props":1552,"children":1553},{"style":293},[1554],{"type":55,"value":773},{"type":49,"tag":280,"props":1556,"children":1557},{"class":282,"line":703},[1558,1563,1567,1571,1576,1580,1584],{"type":49,"tag":280,"props":1559,"children":1560},{"style":404},[1561],{"type":55,"value":1562},"  pepper",{"type":49,"tag":280,"props":1564,"children":1565},{"style":293},[1566],{"type":55,"value":412},{"type":49,"tag":280,"props":1568,"children":1569},{"style":293},[1570],{"type":55,"value":336},{"type":49,"tag":280,"props":1572,"children":1573},{"style":339},[1574],{"type":55,"value":1575},"https:\u002F\u002F...",{"type":49,"tag":280,"props":1577,"children":1578},{"style":293},[1579],{"type":55,"value":346},{"type":49,"tag":280,"props":1581,"children":1582},{"style":293},[1583],{"type":55,"value":307},{"type":49,"tag":280,"props":1585,"children":1586},{"style":495},[1587],{"type":55,"value":1588}," \u002F\u002F keyless pepper service\n",{"type":49,"tag":280,"props":1590,"children":1591},{"class":282,"line":712},[1592,1597,1601,1605,1609,1613],{"type":49,"tag":280,"props":1593,"children":1594},{"style":404},[1595],{"type":55,"value":1596},"  prover",{"type":49,"tag":280,"props":1598,"children":1599},{"style":293},[1600],{"type":55,"value":412},{"type":49,"tag":280,"props":1602,"children":1603},{"style":293},[1604],{"type":55,"value":336},{"type":49,"tag":280,"props":1606,"children":1607},{"style":339},[1608],{"type":55,"value":1575},{"type":49,"tag":280,"props":1610,"children":1611},{"style":293},[1612],{"type":55,"value":346},{"type":49,"tag":280,"props":1614,"children":1615},{"style":495},[1616],{"type":55,"value":1617}," \u002F\u002F keyless prover\n",{"type":49,"tag":280,"props":1619,"children":1620},{"class":282,"line":27},[1621,1625,1629],{"type":49,"tag":280,"props":1622,"children":1623},{"style":293},[1624],{"type":55,"value":430},{"type":49,"tag":280,"props":1626,"children":1627},{"style":299},[1628],{"type":55,"value":435},{"type":49,"tag":280,"props":1630,"children":1631},{"style":293},[1632],{"type":55,"value":351},{"type":49,"tag":280,"props":1634,"children":1635},{"class":282,"line":776},[1636,1640,1644,1648,1652,1656,1660],{"type":49,"tag":280,"props":1637,"children":1638},{"style":368},[1639],{"type":55,"value":371},{"type":49,"tag":280,"props":1641,"children":1642},{"style":299},[1643],{"type":55,"value":452},{"type":49,"tag":280,"props":1645,"children":1646},{"style":293},[1647],{"type":55,"value":381},{"type":49,"tag":280,"props":1649,"children":1650},{"style":293},[1651],{"type":55,"value":386},{"type":49,"tag":280,"props":1653,"children":1654},{"style":389},[1655],{"type":55,"value":302},{"type":49,"tag":280,"props":1657,"children":1658},{"style":299},[1659],{"type":55,"value":469},{"type":49,"tag":280,"props":1661,"children":1662},{"style":293},[1663],{"type":55,"value":351},{"type":49,"tag":260,"props":1665,"children":1666},{},[],{"type":49,"tag":58,"props":1668,"children":1670},{"id":1669},"client-config-http-timeouts-bun",[1671],{"type":55,"value":1672},"Client config (HTTP, timeouts, Bun)",{"type":49,"tag":270,"props":1674,"children":1676},{"className":272,"code":1675,"language":15,"meta":274,"style":274},"\u002F\u002F Disable HTTP\u002F2 when using Bun (recommended)\nconst config = new AptosConfig({\n  network: Network.TESTNET,\n  clientConfig: { http2: false }\n});\nconst aptos = new Aptos(config);\n",[1677],{"type":49,"tag":86,"props":1678,"children":1679},{"__ignoreMap":274},[1680,1688,1719,1746,1782,1797],{"type":49,"tag":280,"props":1681,"children":1682},{"class":282,"line":283},[1683],{"type":49,"tag":280,"props":1684,"children":1685},{"style":495},[1686],{"type":55,"value":1687},"\u002F\u002F Disable HTTP\u002F2 when using Bun (recommended)\n",{"type":49,"tag":280,"props":1689,"children":1690},{"class":282,"line":354},[1691,1695,1699,1703,1707,1711,1715],{"type":49,"tag":280,"props":1692,"children":1693},{"style":368},[1694],{"type":55,"value":371},{"type":49,"tag":280,"props":1696,"children":1697},{"style":299},[1698],{"type":55,"value":376},{"type":49,"tag":280,"props":1700,"children":1701},{"style":293},[1702],{"type":55,"value":381},{"type":49,"tag":280,"props":1704,"children":1705},{"style":293},[1706],{"type":55,"value":386},{"type":49,"tag":280,"props":1708,"children":1709},{"style":389},[1710],{"type":55,"value":312},{"type":49,"tag":280,"props":1712,"children":1713},{"style":299},[1714],{"type":55,"value":396},{"type":49,"tag":280,"props":1716,"children":1717},{"style":293},[1718],{"type":55,"value":743},{"type":49,"tag":280,"props":1720,"children":1721},{"class":282,"line":364},[1722,1726,1730,1734,1738,1742],{"type":49,"tag":280,"props":1723,"children":1724},{"style":404},[1725],{"type":55,"value":751},{"type":49,"tag":280,"props":1727,"children":1728},{"style":293},[1729],{"type":55,"value":412},{"type":49,"tag":280,"props":1731,"children":1732},{"style":299},[1733],{"type":55,"value":321},{"type":49,"tag":280,"props":1735,"children":1736},{"style":293},[1737],{"type":55,"value":179},{"type":49,"tag":280,"props":1739,"children":1740},{"style":299},[1741],{"type":55,"value":1262},{"type":49,"tag":280,"props":1743,"children":1744},{"style":293},[1745],{"type":55,"value":773},{"type":49,"tag":280,"props":1747,"children":1748},{"class":282,"line":442},[1749,1754,1758,1762,1767,1771,1777],{"type":49,"tag":280,"props":1750,"children":1751},{"style":404},[1752],{"type":55,"value":1753},"  clientConfig",{"type":49,"tag":280,"props":1755,"children":1756},{"style":293},[1757],{"type":55,"value":412},{"type":49,"tag":280,"props":1759,"children":1760},{"style":293},[1761],{"type":55,"value":296},{"type":49,"tag":280,"props":1763,"children":1764},{"style":404},[1765],{"type":55,"value":1766}," http2",{"type":49,"tag":280,"props":1768,"children":1769},{"style":293},[1770],{"type":55,"value":412},{"type":49,"tag":280,"props":1772,"children":1774},{"style":1773},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1775],{"type":55,"value":1776}," false",{"type":49,"tag":280,"props":1778,"children":1779},{"style":293},[1780],{"type":55,"value":1781}," }\n",{"type":49,"tag":280,"props":1783,"children":1784},{"class":282,"line":695},[1785,1789,1793],{"type":49,"tag":280,"props":1786,"children":1787},{"style":293},[1788],{"type":55,"value":430},{"type":49,"tag":280,"props":1790,"children":1791},{"style":299},[1792],{"type":55,"value":435},{"type":49,"tag":280,"props":1794,"children":1795},{"style":293},[1796],{"type":55,"value":351},{"type":49,"tag":280,"props":1798,"children":1799},{"class":282,"line":703},[1800,1804,1808,1812,1816,1820,1824],{"type":49,"tag":280,"props":1801,"children":1802},{"style":368},[1803],{"type":55,"value":371},{"type":49,"tag":280,"props":1805,"children":1806},{"style":299},[1807],{"type":55,"value":452},{"type":49,"tag":280,"props":1809,"children":1810},{"style":293},[1811],{"type":55,"value":381},{"type":49,"tag":280,"props":1813,"children":1814},{"style":293},[1815],{"type":55,"value":386},{"type":49,"tag":280,"props":1817,"children":1818},{"style":389},[1819],{"type":55,"value":302},{"type":49,"tag":280,"props":1821,"children":1822},{"style":299},[1823],{"type":55,"value":469},{"type":49,"tag":280,"props":1825,"children":1826},{"style":293},[1827],{"type":55,"value":351},{"type":49,"tag":260,"props":1829,"children":1830},{},[],{"type":49,"tag":58,"props":1832,"children":1834},{"id":1833},"using-the-client",[1835],{"type":55,"value":1836},"Using the client",{"type":49,"tag":65,"props":1838,"children":1839},{},[1840,1842,1847],{"type":55,"value":1841},"After construction, use the same ",{"type":49,"tag":86,"props":1843,"children":1845},{"className":1844},[],[1846],{"type":55,"value":8},{"type":55,"value":1848}," instance for:",{"type":49,"tag":1850,"props":1851,"children":1852},"ul",{},[1853,1886,1916,1932,1949],{"type":49,"tag":105,"props":1854,"children":1855},{},[1856,1861,1863,1869,1871,1877,1878,1884],{"type":49,"tag":71,"props":1857,"children":1858},{},[1859],{"type":55,"value":1860},"Account \u002F balance:",{"type":55,"value":1862}," ",{"type":49,"tag":86,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":55,"value":1868},"aptos.getAccountInfo()",{"type":55,"value":1870},", ",{"type":49,"tag":86,"props":1872,"children":1874},{"className":1873},[],[1875],{"type":55,"value":1876},"aptos.getBalance()",{"type":55,"value":1870},{"type":49,"tag":86,"props":1879,"children":1881},{"className":1880},[],[1882],{"type":55,"value":1883},"aptos.getAccountResources()",{"type":55,"value":1885},", etc.",{"type":49,"tag":105,"props":1887,"children":1888},{},[1889,1894,1895,1901,1902,1908,1909,1915],{"type":49,"tag":71,"props":1890,"children":1891},{},[1892],{"type":55,"value":1893},"Transactions:",{"type":55,"value":1862},{"type":49,"tag":86,"props":1896,"children":1898},{"className":1897},[],[1899],{"type":55,"value":1900},"aptos.transaction.build.simple()",{"type":55,"value":1870},{"type":49,"tag":86,"props":1903,"children":1905},{"className":1904},[],[1906],{"type":55,"value":1907},"aptos.signAndSubmitTransaction()",{"type":55,"value":773},{"type":49,"tag":86,"props":1910,"children":1912},{"className":1911},[],[1913],{"type":55,"value":1914},"aptos.waitForTransaction()",{"type":55,"value":179},{"type":49,"tag":105,"props":1917,"children":1918},{},[1919,1924,1925,1931],{"type":49,"tag":71,"props":1920,"children":1921},{},[1922],{"type":55,"value":1923},"View:",{"type":55,"value":1862},{"type":49,"tag":86,"props":1926,"children":1928},{"className":1927},[],[1929],{"type":55,"value":1930},"aptos.view()",{"type":55,"value":179},{"type":49,"tag":105,"props":1933,"children":1934},{},[1935,1940,1941,1947],{"type":49,"tag":71,"props":1936,"children":1937},{},[1938],{"type":55,"value":1939},"Faucet:",{"type":55,"value":1862},{"type":49,"tag":86,"props":1942,"children":1944},{"className":1943},[],[1945],{"type":55,"value":1946},"aptos.fundAccount()",{"type":55,"value":1948}," (devnet\u002Ftestnet).",{"type":49,"tag":105,"props":1950,"children":1951},{},[1952,1957,1958,1964,1965,1971,1972,1978,1979,1985,1986,1992,1993,1999],{"type":49,"tag":71,"props":1953,"children":1954},{},[1955],{"type":55,"value":1956},"Coin \u002F token \u002F object \u002F ANS \u002F staking:",{"type":55,"value":1862},{"type":49,"tag":86,"props":1959,"children":1961},{"className":1960},[],[1962],{"type":55,"value":1963},"aptos.coin.*",{"type":55,"value":1870},{"type":49,"tag":86,"props":1966,"children":1968},{"className":1967},[],[1969],{"type":55,"value":1970},"aptos.digitalAsset.*",{"type":55,"value":1870},{"type":49,"tag":86,"props":1973,"children":1975},{"className":1974},[],[1976],{"type":55,"value":1977},"aptos.fungibleAsset.*",{"type":55,"value":773},{"type":49,"tag":86,"props":1980,"children":1982},{"className":1981},[],[1983],{"type":55,"value":1984},"aptos.object.*",{"type":55,"value":1870},{"type":49,"tag":86,"props":1987,"children":1989},{"className":1988},[],[1990],{"type":55,"value":1991},"aptos.ans.*",{"type":55,"value":1870},{"type":49,"tag":86,"props":1994,"children":1996},{"className":1995},[],[1997],{"type":55,"value":1998},"aptos.staking.*",{"type":55,"value":179},{"type":49,"tag":260,"props":2001,"children":2002},{},[],{"type":49,"tag":58,"props":2004,"children":2006},{"id":2005},"common-mistakes",[2007],{"type":55,"value":2008},"Common mistakes",{"type":49,"tag":2010,"props":2011,"children":2012},"table",{},[2013,2032],{"type":49,"tag":2014,"props":2015,"children":2016},"thead",{},[2017],{"type":49,"tag":2018,"props":2019,"children":2020},"tr",{},[2021,2027],{"type":49,"tag":2022,"props":2023,"children":2024},"th",{},[2025],{"type":55,"value":2026},"Mistake",{"type":49,"tag":2022,"props":2028,"children":2029},{},[2030],{"type":55,"value":2031},"Correct approach",{"type":49,"tag":2033,"props":2034,"children":2035},"tbody",{},[2036,2057,2070,2091],{"type":49,"tag":2018,"props":2037,"children":2038},{},[2039,2045],{"type":49,"tag":2040,"props":2041,"children":2042},"td",{},[2043],{"type":55,"value":2044},"Creating Aptos in every function",{"type":49,"tag":2040,"props":2046,"children":2047},{},[2048,2050,2055],{"type":55,"value":2049},"One singleton; pass ",{"type":49,"tag":86,"props":2051,"children":2053},{"className":2052},[],[2054],{"type":55,"value":8},{"type":55,"value":2056}," or import from shared module",{"type":49,"tag":2018,"props":2058,"children":2059},{},[2060,2065],{"type":49,"tag":2040,"props":2061,"children":2062},{},[2063],{"type":55,"value":2064},"Using devnet for persistent dev",{"type":49,"tag":2040,"props":2066,"children":2067},{},[2068],{"type":55,"value":2069},"Prefer testnet; devnet resets",{"type":49,"tag":2018,"props":2071,"children":2072},{},[2073,2078],{"type":49,"tag":2040,"props":2074,"children":2075},{},[2076],{"type":55,"value":2077},"Custom URLs without Network.CUSTOM",{"type":49,"tag":2040,"props":2079,"children":2080},{},[2081,2083,2089],{"type":55,"value":2082},"Set ",{"type":49,"tag":86,"props":2084,"children":2086},{"className":2085},[],[2087],{"type":55,"value":2088},"network: Network.CUSTOM",{"type":55,"value":2090}," when providing fullnode\u002Findexer\u002Ffaucet",{"type":49,"tag":2018,"props":2092,"children":2093},{},[2094,2099],{"type":49,"tag":2040,"props":2095,"children":2096},{},[2097],{"type":55,"value":2098},"Forgetting http2: false on Bun",{"type":49,"tag":2040,"props":2100,"children":2101},{},[2102,2103,2109],{"type":55,"value":2082},{"type":49,"tag":86,"props":2104,"children":2106},{"className":2105},[],[2107],{"type":55,"value":2108},"clientConfig: { http2: false }",{"type":55,"value":2110}," for Bun",{"type":49,"tag":260,"props":2112,"children":2113},{},[],{"type":49,"tag":58,"props":2115,"children":2117},{"id":2116},"references",[2118],{"type":55,"value":2119},"References",{"type":49,"tag":1850,"props":2121,"children":2122},{},[2123,2141,2153],{"type":49,"tag":105,"props":2124,"children":2125},{},[2126,2128,2134,2135],{"type":55,"value":2127},"SDK: ",{"type":49,"tag":86,"props":2129,"children":2131},{"className":2130},[],[2132],{"type":55,"value":2133},"src\u002Fapi\u002Faptos.ts",{"type":55,"value":1870},{"type":49,"tag":86,"props":2136,"children":2138},{"className":2137},[],[2139],{"type":55,"value":2140},"src\u002Fapi\u002FaptosConfig.ts",{"type":49,"tag":105,"props":2142,"children":2143},{},[2144,2146],{"type":55,"value":2145},"Pattern: ",{"type":49,"tag":2147,"props":2148,"children":2150},"a",{"href":2149},"..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md",[2151],{"type":55,"value":2152},"TYPESCRIPT_SDK.md",{"type":49,"tag":105,"props":2154,"children":2155},{},[2156,2158,2164,2165,2171,2172,2178,2179],{"type":55,"value":2157},"Related: ",{"type":49,"tag":2147,"props":2159,"children":2161},{"href":2160},"..\u002Fts-sdk-account\u002FSKILL.md",[2162],{"type":55,"value":2163},"ts-sdk-account",{"type":55,"value":1870},{"type":49,"tag":2147,"props":2166,"children":2168},{"href":2167},"..\u002Fts-sdk-transactions\u002FSKILL.md",[2169],{"type":55,"value":2170},"ts-sdk-transactions",{"type":55,"value":773},{"type":49,"tag":2147,"props":2173,"children":2175},{"href":2174},"..\u002Fts-sdk-wallet-adapter\u002FSKILL.md",[2176],{"type":55,"value":2177},"ts-sdk-wallet-adapter",{"type":55,"value":1870},{"type":49,"tag":2147,"props":2180,"children":2182},{"href":2181},"..\u002Fuse-ts-sdk\u002FSKILL.md",[2183],{"type":55,"value":2184},"use-ts-sdk",{"type":49,"tag":2186,"props":2187,"children":2188},"style",{},[2189],{"type":55,"value":2190},"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":2192,"total":2345},[2193,2208,2225,2239,2253,2267,2281,2296,2308,2320,2330,2336],{"slug":2194,"name":2194,"fn":2195,"description":2196,"org":2197,"tags":2198,"stars":23,"repoUrl":24,"updatedAt":2207},"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},[2199,2201,2204],{"name":2200,"slug":30,"type":16},"Blockchain",{"name":2202,"slug":2203,"type":16},"Performance","performance",{"name":2205,"slug":2206,"type":16},"Smart Contracts","smart-contracts","2026-07-12T08:07:14.117466",{"slug":2209,"name":2209,"fn":2210,"description":2211,"org":2212,"tags":2213,"stars":23,"repoUrl":24,"updatedAt":2224},"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},[2214,2217,2218,2221],{"name":2215,"slug":2216,"type":16},"Next.js","next-js",{"name":14,"slug":15,"type":16},{"name":2219,"slug":2220,"type":16},"Vite","vite",{"name":2222,"slug":2223,"type":16},"Web3","web3","2026-07-12T08:07:30.595111",{"slug":2226,"name":2226,"fn":2227,"description":2228,"org":2229,"tags":2230,"stars":23,"repoUrl":24,"updatedAt":2238},"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},[2231,2234,2237],{"name":2232,"slug":2233,"type":16},"Deployment","deployment",{"name":2235,"slug":2236,"type":16},"Engineering","engineering",{"name":2205,"slug":2206,"type":16},"2026-07-12T08:07:16.798352",{"slug":2240,"name":2240,"fn":2241,"description":2242,"org":2243,"tags":2244,"stars":23,"repoUrl":24,"updatedAt":2252},"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},[2245,2246,2249],{"name":2235,"slug":2236,"type":16},{"name":2247,"slug":2248,"type":16},"QA","qa",{"name":2250,"slug":2251,"type":16},"Testing","testing","2026-07-12T08:07:18.0205",{"slug":2254,"name":2254,"fn":2255,"description":2256,"org":2257,"tags":2258,"stars":23,"repoUrl":24,"updatedAt":2266},"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},[2259,2262,2263],{"name":2260,"slug":2261,"type":16},"Code Analysis","code-analysis",{"name":2235,"slug":2236,"type":16},{"name":2264,"slug":2265,"type":16},"Migration","migration","2026-07-12T08:07:10.226223",{"slug":2268,"name":2268,"fn":2269,"description":2270,"org":2271,"tags":2272,"stars":23,"repoUrl":24,"updatedAt":2280},"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},[2273,2274,2277],{"name":2200,"slug":30,"type":16},{"name":2275,"slug":2276,"type":16},"Documentation","documentation",{"name":2278,"slug":2279,"type":16},"Search","search","2026-07-12T08:07:15.382039",{"slug":2282,"name":2282,"fn":2283,"description":2284,"org":2285,"tags":2286,"stars":23,"repoUrl":24,"updatedAt":2295},"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},[2287,2290,2291,2294],{"name":2288,"slug":2289,"type":16},"Audit","audit",{"name":2260,"slug":2261,"type":16},{"name":2292,"slug":2293,"type":16},"Security","security",{"name":2205,"slug":2206,"type":16},"2026-07-12T08:07:11.680215",{"slug":2297,"name":2297,"fn":2298,"description":2299,"org":2300,"tags":2301,"stars":23,"repoUrl":24,"updatedAt":2307},"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},[2302,2303,2306],{"name":18,"slug":19,"type":16},{"name":2304,"slug":2305,"type":16},"Payments","payments",{"name":2222,"slug":2223,"type":16},"2026-07-12T08:07:31.843242",{"slug":2163,"name":2163,"fn":2309,"description":2310,"org":2311,"tags":2312,"stars":23,"repoUrl":24,"updatedAt":2319},"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},[2313,2316,2317,2318],{"name":2314,"slug":2315,"type":16},"Auth","auth",{"name":2200,"slug":30,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:29.297415",{"slug":2321,"name":2321,"fn":2322,"description":2323,"org":2324,"tags":2325,"stars":23,"repoUrl":24,"updatedAt":2329},"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},[2326,2327,2328],{"name":2200,"slug":30,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:26.430378",{"slug":4,"name":4,"fn":5,"description":6,"org":2331,"tags":2332,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2333,2334,2335],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"slug":2170,"name":2170,"fn":2337,"description":2338,"org":2339,"tags":2340,"stars":23,"repoUrl":24,"updatedAt":2344},"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},[2341,2342,2343],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":2222,"slug":2223,"type":16},"2026-07-12T08:07:23.774257",24,{"items":2347,"total":1356},[2348,2354,2361,2367,2373,2379,2385],{"slug":2194,"name":2194,"fn":2195,"description":2196,"org":2349,"tags":2350,"stars":23,"repoUrl":24,"updatedAt":2207},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2351,2352,2353],{"name":2200,"slug":30,"type":16},{"name":2202,"slug":2203,"type":16},{"name":2205,"slug":2206,"type":16},{"slug":2209,"name":2209,"fn":2210,"description":2211,"org":2355,"tags":2356,"stars":23,"repoUrl":24,"updatedAt":2224},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2357,2358,2359,2360],{"name":2215,"slug":2216,"type":16},{"name":14,"slug":15,"type":16},{"name":2219,"slug":2220,"type":16},{"name":2222,"slug":2223,"type":16},{"slug":2226,"name":2226,"fn":2227,"description":2228,"org":2362,"tags":2363,"stars":23,"repoUrl":24,"updatedAt":2238},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2364,2365,2366],{"name":2232,"slug":2233,"type":16},{"name":2235,"slug":2236,"type":16},{"name":2205,"slug":2206,"type":16},{"slug":2240,"name":2240,"fn":2241,"description":2242,"org":2368,"tags":2369,"stars":23,"repoUrl":24,"updatedAt":2252},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2370,2371,2372],{"name":2235,"slug":2236,"type":16},{"name":2247,"slug":2248,"type":16},{"name":2250,"slug":2251,"type":16},{"slug":2254,"name":2254,"fn":2255,"description":2256,"org":2374,"tags":2375,"stars":23,"repoUrl":24,"updatedAt":2266},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2376,2377,2378],{"name":2260,"slug":2261,"type":16},{"name":2235,"slug":2236,"type":16},{"name":2264,"slug":2265,"type":16},{"slug":2268,"name":2268,"fn":2269,"description":2270,"org":2380,"tags":2381,"stars":23,"repoUrl":24,"updatedAt":2280},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2382,2383,2384],{"name":2200,"slug":30,"type":16},{"name":2275,"slug":2276,"type":16},{"name":2278,"slug":2279,"type":16},{"slug":2282,"name":2282,"fn":2283,"description":2284,"org":2386,"tags":2387,"stars":23,"repoUrl":24,"updatedAt":2295},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2388,2389,2390,2391],{"name":2288,"slug":2289,"type":16},{"name":2260,"slug":2261,"type":16},{"name":2292,"slug":2293,"type":16},{"name":2205,"slug":2206,"type":16}]