[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aptos-ts-sdk-types":3,"mdc-nmjlqm-key":33,"related-repo-aptos-ts-sdk-types":1775,"related-org-aptos-ts-sdk-types":1881},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":28,"sourceUrl":31,"mdContent":32},"ts-sdk-types","map TypeScript types for Aptos SDK","Move to TypeScript type mapping in @aptos-labs\u002Fts-sdk: u64\u002Fu128\u002Fu256 as bigint, address as string, TypeTag, functionArguments and typeArguments. Triggers on: 'typeArguments', 'functionArguments', 'Move to TypeScript', 'type mapping', 'TypeTag', 'bigint u128'.",{"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],{"name":14,"slug":15,"type":16},"TypeScript","typescript","tag",{"name":18,"slug":19,"type":16},"SDK","sdk",18,"https:\u002F\u002Fgithub.com\u002Faptos-labs\u002Faptos-agent-skills","2026-07-12T08:07:20.520454","MIT",8,[26,27],"agent-skills","blockchain",{"repoUrl":21,"stars":20,"forks":24,"topics":29,"description":30},[26,27],"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-types","---\nname: ts-sdk-types\ndescription:\n  \"Move to TypeScript type mapping in @aptos-labs\u002Fts-sdk: u64\u002Fu128\u002Fu256 as bigint, address as string, TypeTag,\n  functionArguments and typeArguments. Triggers on: 'typeArguments', 'functionArguments', 'Move to TypeScript', 'type\n  mapping', 'TypeTag', 'bigint u128'.\"\nlicense: MIT\nmetadata:\n  author: aptos-labs\n  version: \"1.0\"\n  category: sdk\n  tags: [\"typescript\", \"sdk\", \"types\", \"typetag\", \"bigint\", \"move\"]\n  priority: high\n---\n\n# TypeScript SDK: Types (Move ↔ TypeScript)\n\n## Purpose\n\nGuide **type mapping** between Move and TypeScript when using `@aptos-labs\u002Fts-sdk`: numeric types (especially\nu128\u002Fu256), address, TypeTag, and `functionArguments` \u002F `typeArguments`.\n\n## ALWAYS\n\n1. **Use `bigint` for u128 and u256** – in both view results and `functionArguments`; JavaScript `number` loses\n   precision above 2^53.\n2. **Use `string` for address in payloads** – e.g. `\"0x1\"` or `accountAddress.toString()`; SDK accepts\n   `AccountAddressInput` (string or AccountAddress).\n3. **Use `typeArguments` for generic Move functions** – e.g. coin type `[\"0x1::aptos_coin::AptosCoin\"]` for\n   `coin::balance` or `coin::transfer`.\n4. **Cast view results explicitly** when you know the Move return type – e.g. `BigInt(result[0] as string)` for u128.\n\n## NEVER\n\n1. **Do not use `number` for u128\u002Fu256** – precision loss; use `bigint`.\n2. **Do not pass raw number for large u64 in entry\u002Fview** – use `bigint` if value can exceed Number.MAX_SAFE_INTEGER.\n3. **Do not omit typeArguments** when the Move function has type parameters (e.g. `balance\u003CCoinType>`).\n\n---\n\n## Move → TypeScript (summary)\n\n| Move type           | TypeScript type            | Example                                              |\n| ------------------- | -------------------------- | ---------------------------------------------------- |\n| u8, u16, u32        | number                     | `255`, `65535`                                       |\n| u64                 | number \\| bigint           | Prefer bigint for large values                       |\n| u128, u256          | bigint                     | `BigInt(\"340282366920938463463374607431768211455\")`  |\n| i8..i64 (Move 2.3+) | number \\| bigint           | Use bigint for i64 when large                        |\n| i128, i256          | bigint                     | `BigInt(\"-...\")`                                     |\n| bool                | boolean                    | `true`                                               |\n| address             | string                     | `\"0x1\"`                                              |\n| signer              | —                          | Not passed from TS; signer is the transaction sender |\n| vector\u003Cu8>          | Uint8Array \\| string (hex) | `new Uint8Array([1,2,3])` or hex                     |\n| vector\u003CT>           | T[]                        | `[1, 2, 3]`                                          |\n| String              | string                     | `\"hello\"`                                            |\n| Object\u003CT>           | string (object address)    | `objectAddress.toString()`                           |\n| Option\u003CT>           | T \\| null                  | Value or `null`                                      |\n\n---\n\n## functionArguments\n\nOrder and types must match the Move entry\u002Fview function parameters:\n\n```typescript\n\u002F\u002F Move: public fun transfer\u003CCoinType>(to: address, amount: u64)\nawait aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: \"0x1::coin::transfer\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [\n      \"0xrecipient...\", \u002F\u002F address as string\n      1000n \u002F\u002F u64 as bigint (or number if small)\n    ]\n  }\n});\n```\n\n---\n\n## typeArguments\n\nFor generic Move functions, pass full type strings (`address::module::StructName`):\n\n```typescript\n\u002F\u002F Move: balance\u003CCoinType>(addr): u64\ntypeArguments: [\"0x1::aptos_coin::AptosCoin\"];\n\n\u002F\u002F Move: transfer\u003CCoinType>(to, amount)\ntypeArguments: [\"0x1::aptos_coin::AptosCoin\"];\n```\n\n---\n\n## View return types\n\n```typescript\nconst result = await aptos.view({\n  payload: {\n    function: \"0x1::coin::balance\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [accountAddress]\n  }\n});\n\u002F\u002F result is an array; u128 often returned as string in JSON\nconst balance = BigInt(result[0] as string);\n```\n\n---\n\n## TypeTag (advanced)\n\nWhen building payloads programmatically or parsing type strings:\n\n```typescript\nimport { TypeTag } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Parser for type tag strings\nimport { parseTypeTag } from \"@aptos-labs\u002Fts-sdk\";\nconst tag = parseTypeTag(\"0x1::aptos_coin::AptosCoin\");\n```\n\nUse `typeArguments` as string array in simple cases; use TypeTag when the SDK API expects it.\n\n---\n\n## Object \u002F resource address in arguments\n\nPass object address as string (LONG or SHORT per AIP-40):\n\n```typescript\nfunctionArguments: [\n  nftObjectAddress.toString(), \u002F\u002F or \"0x...\"\n  price\n];\n```\n\n---\n\n## Common mistakes\n\n| Mistake                                  | Correct approach                                    |\n| ---------------------------------------- | --------------------------------------------------- |\n| Passing number for u128 amount           | Use `1000000n` or `BigInt(\"...\")`                   |\n| Omitting typeArguments for coin::balance | Add `typeArguments: [\"0x1::aptos_coin::AptosCoin\"]` |\n| Using result[0] as number for u128       | Use `BigInt(result[0] as string)`                   |\n| Wrong order of functionArguments         | Match Move parameter order exactly                  |\n\n---\n\n## References\n\n- SDK: `src\u002Ftransactions\u002FtypeTag\u002F`, `src\u002Ftransactions\u002Finstances\u002FtransactionArgument.ts`, view and build APIs\n- Pattern: [TYPESCRIPT_SDK.md](..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md)\n- Related: [ts-sdk-view-and-query](..\u002Fts-sdk-view-and-query\u002FSKILL.md),\n  [ts-sdk-transactions](..\u002Fts-sdk-transactions\u002FSKILL.md), [use-ts-sdk](..\u002Fuse-ts-sdk\u002FSKILL.md)\n",{"data":34,"body":43},{"name":4,"description":6,"license":23,"metadata":35},{"author":11,"version":36,"category":19,"tags":37,"priority":42},"1.0",[15,19,38,39,40,41],"types","typetag","bigint","move","high",{"type":44,"children":45},"root",[46,55,62,101,107,241,247,308,312,318,647,650,655,660,964,967,972,985,1088,1091,1097,1327,1330,1336,1341,1491,1502,1505,1511,1516,1588,1591,1597,1699,1702,1708,1769],{"type":47,"tag":48,"props":49,"children":51},"element","h1",{"id":50},"typescript-sdk-types-move-typescript",[52],{"type":53,"value":54},"text","TypeScript SDK: Types (Move ↔ TypeScript)",{"type":47,"tag":56,"props":57,"children":59},"h2",{"id":58},"purpose",[60],{"type":53,"value":61},"Purpose",{"type":47,"tag":63,"props":64,"children":65},"p",{},[66,68,74,76,83,85,91,93,99],{"type":53,"value":67},"Guide ",{"type":47,"tag":69,"props":70,"children":71},"strong",{},[72],{"type":53,"value":73},"type mapping",{"type":53,"value":75}," between Move and TypeScript when using ",{"type":47,"tag":77,"props":78,"children":80},"code",{"className":79},[],[81],{"type":53,"value":82},"@aptos-labs\u002Fts-sdk",{"type":53,"value":84},": numeric types (especially\nu128\u002Fu256), address, TypeTag, and ",{"type":47,"tag":77,"props":86,"children":88},{"className":87},[],[89],{"type":53,"value":90},"functionArguments",{"type":53,"value":92}," \u002F ",{"type":47,"tag":77,"props":94,"children":96},{"className":95},[],[97],{"type":53,"value":98},"typeArguments",{"type":53,"value":100},".",{"type":47,"tag":56,"props":102,"children":104},{"id":103},"always",[105],{"type":53,"value":106},"ALWAYS",{"type":47,"tag":108,"props":109,"children":110},"ol",{},[111,144,185,223],{"type":47,"tag":112,"props":113,"children":114},"li",{},[115,127,129,134,136,142],{"type":47,"tag":69,"props":116,"children":117},{},[118,120,125],{"type":53,"value":119},"Use ",{"type":47,"tag":77,"props":121,"children":123},{"className":122},[],[124],{"type":53,"value":40},{"type":53,"value":126}," for u128 and u256",{"type":53,"value":128}," – in both view results and ",{"type":47,"tag":77,"props":130,"children":132},{"className":131},[],[133],{"type":53,"value":90},{"type":53,"value":135},"; JavaScript ",{"type":47,"tag":77,"props":137,"children":139},{"className":138},[],[140],{"type":53,"value":141},"number",{"type":53,"value":143}," loses\nprecision above 2^53.",{"type":47,"tag":112,"props":145,"children":146},{},[147,159,161,167,169,175,177,183],{"type":47,"tag":69,"props":148,"children":149},{},[150,151,157],{"type":53,"value":119},{"type":47,"tag":77,"props":152,"children":154},{"className":153},[],[155],{"type":53,"value":156},"string",{"type":53,"value":158}," for address in payloads",{"type":53,"value":160}," – e.g. ",{"type":47,"tag":77,"props":162,"children":164},{"className":163},[],[165],{"type":53,"value":166},"\"0x1\"",{"type":53,"value":168}," or ",{"type":47,"tag":77,"props":170,"children":172},{"className":171},[],[173],{"type":53,"value":174},"accountAddress.toString()",{"type":53,"value":176},"; SDK accepts\n",{"type":47,"tag":77,"props":178,"children":180},{"className":179},[],[181],{"type":53,"value":182},"AccountAddressInput",{"type":53,"value":184}," (string or AccountAddress).",{"type":47,"tag":112,"props":186,"children":187},{},[188,199,201,207,209,215,216,222],{"type":47,"tag":69,"props":189,"children":190},{},[191,192,197],{"type":53,"value":119},{"type":47,"tag":77,"props":193,"children":195},{"className":194},[],[196],{"type":53,"value":98},{"type":53,"value":198}," for generic Move functions",{"type":53,"value":200}," – e.g. coin type ",{"type":47,"tag":77,"props":202,"children":204},{"className":203},[],[205],{"type":53,"value":206},"[\"0x1::aptos_coin::AptosCoin\"]",{"type":53,"value":208}," for\n",{"type":47,"tag":77,"props":210,"children":212},{"className":211},[],[213],{"type":53,"value":214},"coin::balance",{"type":53,"value":168},{"type":47,"tag":77,"props":217,"children":219},{"className":218},[],[220],{"type":53,"value":221},"coin::transfer",{"type":53,"value":100},{"type":47,"tag":112,"props":224,"children":225},{},[226,231,233,239],{"type":47,"tag":69,"props":227,"children":228},{},[229],{"type":53,"value":230},"Cast view results explicitly",{"type":53,"value":232}," when you know the Move return type – e.g. ",{"type":47,"tag":77,"props":234,"children":236},{"className":235},[],[237],{"type":53,"value":238},"BigInt(result[0] as string)",{"type":53,"value":240}," for u128.",{"type":47,"tag":56,"props":242,"children":244},{"id":243},"never",[245],{"type":53,"value":246},"NEVER",{"type":47,"tag":108,"props":248,"children":249},{},[250,273,290],{"type":47,"tag":112,"props":251,"children":252},{},[253,265,267,272],{"type":47,"tag":69,"props":254,"children":255},{},[256,258,263],{"type":53,"value":257},"Do not use ",{"type":47,"tag":77,"props":259,"children":261},{"className":260},[],[262],{"type":53,"value":141},{"type":53,"value":264}," for u128\u002Fu256",{"type":53,"value":266}," – precision loss; use ",{"type":47,"tag":77,"props":268,"children":270},{"className":269},[],[271],{"type":53,"value":40},{"type":53,"value":100},{"type":47,"tag":112,"props":274,"children":275},{},[276,281,283,288],{"type":47,"tag":69,"props":277,"children":278},{},[279],{"type":53,"value":280},"Do not pass raw number for large u64 in entry\u002Fview",{"type":53,"value":282}," – use ",{"type":47,"tag":77,"props":284,"children":286},{"className":285},[],[287],{"type":53,"value":40},{"type":53,"value":289}," if value can exceed Number.MAX_SAFE_INTEGER.",{"type":47,"tag":112,"props":291,"children":292},{},[293,298,300,306],{"type":47,"tag":69,"props":294,"children":295},{},[296],{"type":53,"value":297},"Do not omit typeArguments",{"type":53,"value":299}," when the Move function has type parameters (e.g. ",{"type":47,"tag":77,"props":301,"children":303},{"className":302},[],[304],{"type":53,"value":305},"balance\u003CCoinType>",{"type":53,"value":307},").",{"type":47,"tag":309,"props":310,"children":311},"hr",{},[],{"type":47,"tag":56,"props":313,"children":315},{"id":314},"move-typescript-summary",[316],{"type":53,"value":317},"Move → TypeScript (summary)",{"type":47,"tag":319,"props":320,"children":321},"table",{},[322,346],{"type":47,"tag":323,"props":324,"children":325},"thead",{},[326],{"type":47,"tag":327,"props":328,"children":329},"tr",{},[330,336,341],{"type":47,"tag":331,"props":332,"children":333},"th",{},[334],{"type":53,"value":335},"Move type",{"type":47,"tag":331,"props":337,"children":338},{},[339],{"type":53,"value":340},"TypeScript type",{"type":47,"tag":331,"props":342,"children":343},{},[344],{"type":53,"value":345},"Example",{"type":47,"tag":347,"props":348,"children":349},"tbody",{},[350,380,398,419,436,457,479,499,517,545,574,595,620],{"type":47,"tag":327,"props":351,"children":352},{},[353,359,363],{"type":47,"tag":354,"props":355,"children":356},"td",{},[357],{"type":53,"value":358},"u8, u16, u32",{"type":47,"tag":354,"props":360,"children":361},{},[362],{"type":53,"value":141},{"type":47,"tag":354,"props":364,"children":365},{},[366,372,374],{"type":47,"tag":77,"props":367,"children":369},{"className":368},[],[370],{"type":53,"value":371},"255",{"type":53,"value":373},", ",{"type":47,"tag":77,"props":375,"children":377},{"className":376},[],[378],{"type":53,"value":379},"65535",{"type":47,"tag":327,"props":381,"children":382},{},[383,388,393],{"type":47,"tag":354,"props":384,"children":385},{},[386],{"type":53,"value":387},"u64",{"type":47,"tag":354,"props":389,"children":390},{},[391],{"type":53,"value":392},"number | bigint",{"type":47,"tag":354,"props":394,"children":395},{},[396],{"type":53,"value":397},"Prefer bigint for large values",{"type":47,"tag":327,"props":399,"children":400},{},[401,406,410],{"type":47,"tag":354,"props":402,"children":403},{},[404],{"type":53,"value":405},"u128, u256",{"type":47,"tag":354,"props":407,"children":408},{},[409],{"type":53,"value":40},{"type":47,"tag":354,"props":411,"children":412},{},[413],{"type":47,"tag":77,"props":414,"children":416},{"className":415},[],[417],{"type":53,"value":418},"BigInt(\"340282366920938463463374607431768211455\")",{"type":47,"tag":327,"props":420,"children":421},{},[422,427,431],{"type":47,"tag":354,"props":423,"children":424},{},[425],{"type":53,"value":426},"i8..i64 (Move 2.3+)",{"type":47,"tag":354,"props":428,"children":429},{},[430],{"type":53,"value":392},{"type":47,"tag":354,"props":432,"children":433},{},[434],{"type":53,"value":435},"Use bigint for i64 when large",{"type":47,"tag":327,"props":437,"children":438},{},[439,444,448],{"type":47,"tag":354,"props":440,"children":441},{},[442],{"type":53,"value":443},"i128, i256",{"type":47,"tag":354,"props":445,"children":446},{},[447],{"type":53,"value":40},{"type":47,"tag":354,"props":449,"children":450},{},[451],{"type":47,"tag":77,"props":452,"children":454},{"className":453},[],[455],{"type":53,"value":456},"BigInt(\"-...\")",{"type":47,"tag":327,"props":458,"children":459},{},[460,465,470],{"type":47,"tag":354,"props":461,"children":462},{},[463],{"type":53,"value":464},"bool",{"type":47,"tag":354,"props":466,"children":467},{},[468],{"type":53,"value":469},"boolean",{"type":47,"tag":354,"props":471,"children":472},{},[473],{"type":47,"tag":77,"props":474,"children":476},{"className":475},[],[477],{"type":53,"value":478},"true",{"type":47,"tag":327,"props":480,"children":481},{},[482,487,491],{"type":47,"tag":354,"props":483,"children":484},{},[485],{"type":53,"value":486},"address",{"type":47,"tag":354,"props":488,"children":489},{},[490],{"type":53,"value":156},{"type":47,"tag":354,"props":492,"children":493},{},[494],{"type":47,"tag":77,"props":495,"children":497},{"className":496},[],[498],{"type":53,"value":166},{"type":47,"tag":327,"props":500,"children":501},{},[502,507,512],{"type":47,"tag":354,"props":503,"children":504},{},[505],{"type":53,"value":506},"signer",{"type":47,"tag":354,"props":508,"children":509},{},[510],{"type":53,"value":511},"—",{"type":47,"tag":354,"props":513,"children":514},{},[515],{"type":53,"value":516},"Not passed from TS; signer is the transaction sender",{"type":47,"tag":327,"props":518,"children":519},{},[520,529,534],{"type":47,"tag":354,"props":521,"children":522},{},[523,525],{"type":53,"value":524},"vector",{"type":47,"tag":526,"props":527,"children":528},"u8",{},[],{"type":47,"tag":354,"props":530,"children":531},{},[532],{"type":53,"value":533},"Uint8Array | string (hex)",{"type":47,"tag":354,"props":535,"children":536},{},[537,543],{"type":47,"tag":77,"props":538,"children":540},{"className":539},[],[541],{"type":53,"value":542},"new Uint8Array([1,2,3])",{"type":53,"value":544}," or hex",{"type":47,"tag":327,"props":546,"children":547},{},[548,556,565],{"type":47,"tag":354,"props":549,"children":550},{},[551,552],{"type":53,"value":524},{"type":47,"tag":553,"props":554,"children":555},"t",{},[],{"type":47,"tag":354,"props":557,"children":558},{},[559,561],{"type":53,"value":560},"T",{"type":47,"tag":562,"props":563,"children":564},"span",{},[],{"type":47,"tag":354,"props":566,"children":567},{},[568],{"type":47,"tag":77,"props":569,"children":571},{"className":570},[],[572],{"type":53,"value":573},"[1, 2, 3]",{"type":47,"tag":327,"props":575,"children":576},{},[577,582,586],{"type":47,"tag":354,"props":578,"children":579},{},[580],{"type":53,"value":581},"String",{"type":47,"tag":354,"props":583,"children":584},{},[585],{"type":53,"value":156},{"type":47,"tag":354,"props":587,"children":588},{},[589],{"type":47,"tag":77,"props":590,"children":592},{"className":591},[],[593],{"type":53,"value":594},"\"hello\"",{"type":47,"tag":327,"props":596,"children":597},{},[598,606,611],{"type":47,"tag":354,"props":599,"children":600},{},[601,603],{"type":53,"value":602},"Object",{"type":47,"tag":553,"props":604,"children":605},{},[],{"type":47,"tag":354,"props":607,"children":608},{},[609],{"type":53,"value":610},"string (object address)",{"type":47,"tag":354,"props":612,"children":613},{},[614],{"type":47,"tag":77,"props":615,"children":617},{"className":616},[],[618],{"type":53,"value":619},"objectAddress.toString()",{"type":47,"tag":327,"props":621,"children":622},{},[623,631,636],{"type":47,"tag":354,"props":624,"children":625},{},[626,628],{"type":53,"value":627},"Option",{"type":47,"tag":553,"props":629,"children":630},{},[],{"type":47,"tag":354,"props":632,"children":633},{},[634],{"type":53,"value":635},"T | null",{"type":47,"tag":354,"props":637,"children":638},{},[639,641],{"type":53,"value":640},"Value or ",{"type":47,"tag":77,"props":642,"children":644},{"className":643},[],[645],{"type":53,"value":646},"null",{"type":47,"tag":309,"props":648,"children":649},{},[],{"type":47,"tag":56,"props":651,"children":653},{"id":652},"functionarguments",[654],{"type":53,"value":90},{"type":47,"tag":63,"props":656,"children":657},{},[658],{"type":53,"value":659},"Order and types must match the Move entry\u002Fview function parameters:",{"type":47,"tag":661,"props":662,"children":666},"pre",{"className":663,"code":664,"language":15,"meta":665,"style":665},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Move: public fun transfer\u003CCoinType>(to: address, amount: u64)\nawait aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: \"0x1::coin::transfer\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [\n      \"0xrecipient...\", \u002F\u002F address as string\n      1000n \u002F\u002F u64 as bigint (or number if small)\n    ]\n  }\n});\n","",[667],{"type":47,"tag":77,"props":668,"children":669},{"__ignoreMap":665},[670,681,736,770,788,821,861,879,906,927,936,945],{"type":47,"tag":562,"props":671,"children":674},{"class":672,"line":673},"line",1,[675],{"type":47,"tag":562,"props":676,"children":678},{"style":677},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[679],{"type":53,"value":680},"\u002F\u002F Move: public fun transfer\u003CCoinType>(to: address, amount: u64)\n",{"type":47,"tag":562,"props":682,"children":684},{"class":672,"line":683},2,[685,691,697,702,707,711,716,720,726,731],{"type":47,"tag":562,"props":686,"children":688},{"style":687},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[689],{"type":53,"value":690},"await",{"type":47,"tag":562,"props":692,"children":694},{"style":693},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[695],{"type":53,"value":696}," aptos",{"type":47,"tag":562,"props":698,"children":700},{"style":699},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[701],{"type":53,"value":100},{"type":47,"tag":562,"props":703,"children":704},{"style":693},[705],{"type":53,"value":706},"transaction",{"type":47,"tag":562,"props":708,"children":709},{"style":699},[710],{"type":53,"value":100},{"type":47,"tag":562,"props":712,"children":713},{"style":693},[714],{"type":53,"value":715},"build",{"type":47,"tag":562,"props":717,"children":718},{"style":699},[719],{"type":53,"value":100},{"type":47,"tag":562,"props":721,"children":723},{"style":722},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[724],{"type":53,"value":725},"simple",{"type":47,"tag":562,"props":727,"children":728},{"style":693},[729],{"type":53,"value":730},"(",{"type":47,"tag":562,"props":732,"children":733},{"style":699},[734],{"type":53,"value":735},"{\n",{"type":47,"tag":562,"props":737,"children":739},{"class":672,"line":738},3,[740,746,751,756,760,765],{"type":47,"tag":562,"props":741,"children":743},{"style":742},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[744],{"type":53,"value":745},"  sender",{"type":47,"tag":562,"props":747,"children":748},{"style":699},[749],{"type":53,"value":750},":",{"type":47,"tag":562,"props":752,"children":753},{"style":693},[754],{"type":53,"value":755}," account",{"type":47,"tag":562,"props":757,"children":758},{"style":699},[759],{"type":53,"value":100},{"type":47,"tag":562,"props":761,"children":762},{"style":693},[763],{"type":53,"value":764},"accountAddress",{"type":47,"tag":562,"props":766,"children":767},{"style":699},[768],{"type":53,"value":769},",\n",{"type":47,"tag":562,"props":771,"children":773},{"class":672,"line":772},4,[774,779,783],{"type":47,"tag":562,"props":775,"children":776},{"style":742},[777],{"type":53,"value":778},"  data",{"type":47,"tag":562,"props":780,"children":781},{"style":699},[782],{"type":53,"value":750},{"type":47,"tag":562,"props":784,"children":785},{"style":699},[786],{"type":53,"value":787}," {\n",{"type":47,"tag":562,"props":789,"children":791},{"class":672,"line":790},5,[792,797,801,806,812,817],{"type":47,"tag":562,"props":793,"children":794},{"style":742},[795],{"type":53,"value":796},"    function",{"type":47,"tag":562,"props":798,"children":799},{"style":699},[800],{"type":53,"value":750},{"type":47,"tag":562,"props":802,"children":803},{"style":699},[804],{"type":53,"value":805}," \"",{"type":47,"tag":562,"props":807,"children":809},{"style":808},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[810],{"type":53,"value":811},"0x1::coin::transfer",{"type":47,"tag":562,"props":813,"children":814},{"style":699},[815],{"type":53,"value":816},"\"",{"type":47,"tag":562,"props":818,"children":819},{"style":699},[820],{"type":53,"value":769},{"type":47,"tag":562,"props":822,"children":824},{"class":672,"line":823},6,[825,830,834,839,843,848,852,857],{"type":47,"tag":562,"props":826,"children":827},{"style":742},[828],{"type":53,"value":829},"    typeArguments",{"type":47,"tag":562,"props":831,"children":832},{"style":699},[833],{"type":53,"value":750},{"type":47,"tag":562,"props":835,"children":836},{"style":693},[837],{"type":53,"value":838}," [",{"type":47,"tag":562,"props":840,"children":841},{"style":699},[842],{"type":53,"value":816},{"type":47,"tag":562,"props":844,"children":845},{"style":808},[846],{"type":53,"value":847},"0x1::aptos_coin::AptosCoin",{"type":47,"tag":562,"props":849,"children":850},{"style":699},[851],{"type":53,"value":816},{"type":47,"tag":562,"props":853,"children":854},{"style":693},[855],{"type":53,"value":856},"]",{"type":47,"tag":562,"props":858,"children":859},{"style":699},[860],{"type":53,"value":769},{"type":47,"tag":562,"props":862,"children":864},{"class":672,"line":863},7,[865,870,874],{"type":47,"tag":562,"props":866,"children":867},{"style":742},[868],{"type":53,"value":869},"    functionArguments",{"type":47,"tag":562,"props":871,"children":872},{"style":699},[873],{"type":53,"value":750},{"type":47,"tag":562,"props":875,"children":876},{"style":693},[877],{"type":53,"value":878}," [\n",{"type":47,"tag":562,"props":880,"children":881},{"class":672,"line":24},[882,887,892,896,901],{"type":47,"tag":562,"props":883,"children":884},{"style":699},[885],{"type":53,"value":886},"      \"",{"type":47,"tag":562,"props":888,"children":889},{"style":808},[890],{"type":53,"value":891},"0xrecipient...",{"type":47,"tag":562,"props":893,"children":894},{"style":699},[895],{"type":53,"value":816},{"type":47,"tag":562,"props":897,"children":898},{"style":699},[899],{"type":53,"value":900},",",{"type":47,"tag":562,"props":902,"children":903},{"style":677},[904],{"type":53,"value":905}," \u002F\u002F address as string\n",{"type":47,"tag":562,"props":907,"children":909},{"class":672,"line":908},9,[910,916,922],{"type":47,"tag":562,"props":911,"children":913},{"style":912},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[914],{"type":53,"value":915},"      1000",{"type":47,"tag":562,"props":917,"children":919},{"style":918},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[920],{"type":53,"value":921},"n",{"type":47,"tag":562,"props":923,"children":924},{"style":677},[925],{"type":53,"value":926}," \u002F\u002F u64 as bigint (or number if small)\n",{"type":47,"tag":562,"props":928,"children":930},{"class":672,"line":929},10,[931],{"type":47,"tag":562,"props":932,"children":933},{"style":693},[934],{"type":53,"value":935},"    ]\n",{"type":47,"tag":562,"props":937,"children":939},{"class":672,"line":938},11,[940],{"type":47,"tag":562,"props":941,"children":942},{"style":699},[943],{"type":53,"value":944},"  }\n",{"type":47,"tag":562,"props":946,"children":948},{"class":672,"line":947},12,[949,954,959],{"type":47,"tag":562,"props":950,"children":951},{"style":699},[952],{"type":53,"value":953},"}",{"type":47,"tag":562,"props":955,"children":956},{"style":693},[957],{"type":53,"value":958},")",{"type":47,"tag":562,"props":960,"children":961},{"style":699},[962],{"type":53,"value":963},";\n",{"type":47,"tag":309,"props":965,"children":966},{},[],{"type":47,"tag":56,"props":968,"children":970},{"id":969},"typearguments",[971],{"type":53,"value":98},{"type":47,"tag":63,"props":973,"children":974},{},[975,977,983],{"type":53,"value":976},"For generic Move functions, pass full type strings (",{"type":47,"tag":77,"props":978,"children":980},{"className":979},[],[981],{"type":53,"value":982},"address::module::StructName",{"type":53,"value":984},"):",{"type":47,"tag":661,"props":986,"children":988},{"className":663,"code":987,"language":15,"meta":665,"style":665},"\u002F\u002F Move: balance\u003CCoinType>(addr): u64\ntypeArguments: [\"0x1::aptos_coin::AptosCoin\"];\n\n\u002F\u002F Move: transfer\u003CCoinType>(to, amount)\ntypeArguments: [\"0x1::aptos_coin::AptosCoin\"];\n",[989],{"type":47,"tag":77,"props":990,"children":991},{"__ignoreMap":665},[992,1000,1036,1045,1053],{"type":47,"tag":562,"props":993,"children":994},{"class":672,"line":673},[995],{"type":47,"tag":562,"props":996,"children":997},{"style":677},[998],{"type":53,"value":999},"\u002F\u002F Move: balance\u003CCoinType>(addr): u64\n",{"type":47,"tag":562,"props":1001,"children":1002},{"class":672,"line":683},[1003,1008,1012,1016,1020,1024,1028,1032],{"type":47,"tag":562,"props":1004,"children":1006},{"style":1005},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1007],{"type":53,"value":98},{"type":47,"tag":562,"props":1009,"children":1010},{"style":699},[1011],{"type":53,"value":750},{"type":47,"tag":562,"props":1013,"children":1014},{"style":693},[1015],{"type":53,"value":838},{"type":47,"tag":562,"props":1017,"children":1018},{"style":699},[1019],{"type":53,"value":816},{"type":47,"tag":562,"props":1021,"children":1022},{"style":808},[1023],{"type":53,"value":847},{"type":47,"tag":562,"props":1025,"children":1026},{"style":699},[1027],{"type":53,"value":816},{"type":47,"tag":562,"props":1029,"children":1030},{"style":693},[1031],{"type":53,"value":856},{"type":47,"tag":562,"props":1033,"children":1034},{"style":699},[1035],{"type":53,"value":963},{"type":47,"tag":562,"props":1037,"children":1038},{"class":672,"line":738},[1039],{"type":47,"tag":562,"props":1040,"children":1042},{"emptyLinePlaceholder":1041},true,[1043],{"type":53,"value":1044},"\n",{"type":47,"tag":562,"props":1046,"children":1047},{"class":672,"line":772},[1048],{"type":47,"tag":562,"props":1049,"children":1050},{"style":677},[1051],{"type":53,"value":1052},"\u002F\u002F Move: transfer\u003CCoinType>(to, amount)\n",{"type":47,"tag":562,"props":1054,"children":1055},{"class":672,"line":790},[1056,1060,1064,1068,1072,1076,1080,1084],{"type":47,"tag":562,"props":1057,"children":1058},{"style":1005},[1059],{"type":53,"value":98},{"type":47,"tag":562,"props":1061,"children":1062},{"style":699},[1063],{"type":53,"value":750},{"type":47,"tag":562,"props":1065,"children":1066},{"style":693},[1067],{"type":53,"value":838},{"type":47,"tag":562,"props":1069,"children":1070},{"style":699},[1071],{"type":53,"value":816},{"type":47,"tag":562,"props":1073,"children":1074},{"style":808},[1075],{"type":53,"value":847},{"type":47,"tag":562,"props":1077,"children":1078},{"style":699},[1079],{"type":53,"value":816},{"type":47,"tag":562,"props":1081,"children":1082},{"style":693},[1083],{"type":53,"value":856},{"type":47,"tag":562,"props":1085,"children":1086},{"style":699},[1087],{"type":53,"value":963},{"type":47,"tag":309,"props":1089,"children":1090},{},[],{"type":47,"tag":56,"props":1092,"children":1094},{"id":1093},"view-return-types",[1095],{"type":53,"value":1096},"View return types",{"type":47,"tag":661,"props":1098,"children":1100},{"className":663,"code":1099,"language":15,"meta":665,"style":665},"const result = await aptos.view({\n  payload: {\n    function: \"0x1::coin::balance\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [accountAddress]\n  }\n});\n\u002F\u002F result is an array; u128 often returned as string in JSON\nconst balance = BigInt(result[0] as string);\n",[1101],{"type":47,"tag":77,"props":1102,"children":1103},{"__ignoreMap":665},[1104,1148,1164,1192,1227,1243,1250,1265,1273],{"type":47,"tag":562,"props":1105,"children":1106},{"class":672,"line":673},[1107,1112,1117,1122,1127,1131,1135,1140,1144],{"type":47,"tag":562,"props":1108,"children":1109},{"style":918},[1110],{"type":53,"value":1111},"const",{"type":47,"tag":562,"props":1113,"children":1114},{"style":693},[1115],{"type":53,"value":1116}," result ",{"type":47,"tag":562,"props":1118,"children":1119},{"style":699},[1120],{"type":53,"value":1121},"=",{"type":47,"tag":562,"props":1123,"children":1124},{"style":687},[1125],{"type":53,"value":1126}," await",{"type":47,"tag":562,"props":1128,"children":1129},{"style":693},[1130],{"type":53,"value":696},{"type":47,"tag":562,"props":1132,"children":1133},{"style":699},[1134],{"type":53,"value":100},{"type":47,"tag":562,"props":1136,"children":1137},{"style":722},[1138],{"type":53,"value":1139},"view",{"type":47,"tag":562,"props":1141,"children":1142},{"style":693},[1143],{"type":53,"value":730},{"type":47,"tag":562,"props":1145,"children":1146},{"style":699},[1147],{"type":53,"value":735},{"type":47,"tag":562,"props":1149,"children":1150},{"class":672,"line":683},[1151,1156,1160],{"type":47,"tag":562,"props":1152,"children":1153},{"style":742},[1154],{"type":53,"value":1155},"  payload",{"type":47,"tag":562,"props":1157,"children":1158},{"style":699},[1159],{"type":53,"value":750},{"type":47,"tag":562,"props":1161,"children":1162},{"style":699},[1163],{"type":53,"value":787},{"type":47,"tag":562,"props":1165,"children":1166},{"class":672,"line":738},[1167,1171,1175,1179,1184,1188],{"type":47,"tag":562,"props":1168,"children":1169},{"style":742},[1170],{"type":53,"value":796},{"type":47,"tag":562,"props":1172,"children":1173},{"style":699},[1174],{"type":53,"value":750},{"type":47,"tag":562,"props":1176,"children":1177},{"style":699},[1178],{"type":53,"value":805},{"type":47,"tag":562,"props":1180,"children":1181},{"style":808},[1182],{"type":53,"value":1183},"0x1::coin::balance",{"type":47,"tag":562,"props":1185,"children":1186},{"style":699},[1187],{"type":53,"value":816},{"type":47,"tag":562,"props":1189,"children":1190},{"style":699},[1191],{"type":53,"value":769},{"type":47,"tag":562,"props":1193,"children":1194},{"class":672,"line":772},[1195,1199,1203,1207,1211,1215,1219,1223],{"type":47,"tag":562,"props":1196,"children":1197},{"style":742},[1198],{"type":53,"value":829},{"type":47,"tag":562,"props":1200,"children":1201},{"style":699},[1202],{"type":53,"value":750},{"type":47,"tag":562,"props":1204,"children":1205},{"style":693},[1206],{"type":53,"value":838},{"type":47,"tag":562,"props":1208,"children":1209},{"style":699},[1210],{"type":53,"value":816},{"type":47,"tag":562,"props":1212,"children":1213},{"style":808},[1214],{"type":53,"value":847},{"type":47,"tag":562,"props":1216,"children":1217},{"style":699},[1218],{"type":53,"value":816},{"type":47,"tag":562,"props":1220,"children":1221},{"style":693},[1222],{"type":53,"value":856},{"type":47,"tag":562,"props":1224,"children":1225},{"style":699},[1226],{"type":53,"value":769},{"type":47,"tag":562,"props":1228,"children":1229},{"class":672,"line":790},[1230,1234,1238],{"type":47,"tag":562,"props":1231,"children":1232},{"style":742},[1233],{"type":53,"value":869},{"type":47,"tag":562,"props":1235,"children":1236},{"style":699},[1237],{"type":53,"value":750},{"type":47,"tag":562,"props":1239,"children":1240},{"style":693},[1241],{"type":53,"value":1242}," [accountAddress]\n",{"type":47,"tag":562,"props":1244,"children":1245},{"class":672,"line":823},[1246],{"type":47,"tag":562,"props":1247,"children":1248},{"style":699},[1249],{"type":53,"value":944},{"type":47,"tag":562,"props":1251,"children":1252},{"class":672,"line":863},[1253,1257,1261],{"type":47,"tag":562,"props":1254,"children":1255},{"style":699},[1256],{"type":53,"value":953},{"type":47,"tag":562,"props":1258,"children":1259},{"style":693},[1260],{"type":53,"value":958},{"type":47,"tag":562,"props":1262,"children":1263},{"style":699},[1264],{"type":53,"value":963},{"type":47,"tag":562,"props":1266,"children":1267},{"class":672,"line":24},[1268],{"type":47,"tag":562,"props":1269,"children":1270},{"style":677},[1271],{"type":53,"value":1272},"\u002F\u002F result is an array; u128 often returned as string in JSON\n",{"type":47,"tag":562,"props":1274,"children":1275},{"class":672,"line":908},[1276,1280,1285,1289,1294,1299,1304,1309,1314,1319,1323],{"type":47,"tag":562,"props":1277,"children":1278},{"style":918},[1279],{"type":53,"value":1111},{"type":47,"tag":562,"props":1281,"children":1282},{"style":693},[1283],{"type":53,"value":1284}," balance ",{"type":47,"tag":562,"props":1286,"children":1287},{"style":699},[1288],{"type":53,"value":1121},{"type":47,"tag":562,"props":1290,"children":1291},{"style":722},[1292],{"type":53,"value":1293}," BigInt",{"type":47,"tag":562,"props":1295,"children":1296},{"style":693},[1297],{"type":53,"value":1298},"(result[",{"type":47,"tag":562,"props":1300,"children":1301},{"style":912},[1302],{"type":53,"value":1303},"0",{"type":47,"tag":562,"props":1305,"children":1306},{"style":693},[1307],{"type":53,"value":1308},"] ",{"type":47,"tag":562,"props":1310,"children":1311},{"style":687},[1312],{"type":53,"value":1313},"as",{"type":47,"tag":562,"props":1315,"children":1316},{"style":1005},[1317],{"type":53,"value":1318}," string",{"type":47,"tag":562,"props":1320,"children":1321},{"style":693},[1322],{"type":53,"value":958},{"type":47,"tag":562,"props":1324,"children":1325},{"style":699},[1326],{"type":53,"value":963},{"type":47,"tag":309,"props":1328,"children":1329},{},[],{"type":47,"tag":56,"props":1331,"children":1333},{"id":1332},"typetag-advanced",[1334],{"type":53,"value":1335},"TypeTag (advanced)",{"type":47,"tag":63,"props":1337,"children":1338},{},[1339],{"type":53,"value":1340},"When building payloads programmatically or parsing type strings:",{"type":47,"tag":661,"props":1342,"children":1344},{"className":663,"code":1343,"language":15,"meta":665,"style":665},"import { TypeTag } from \"@aptos-labs\u002Fts-sdk\";\n\n\u002F\u002F Parser for type tag strings\nimport { parseTypeTag } from \"@aptos-labs\u002Fts-sdk\";\nconst tag = parseTypeTag(\"0x1::aptos_coin::AptosCoin\");\n",[1345],{"type":47,"tag":77,"props":1346,"children":1347},{"__ignoreMap":665},[1348,1392,1399,1407,1447],{"type":47,"tag":562,"props":1349,"children":1350},{"class":672,"line":673},[1351,1356,1361,1366,1371,1376,1380,1384,1388],{"type":47,"tag":562,"props":1352,"children":1353},{"style":687},[1354],{"type":53,"value":1355},"import",{"type":47,"tag":562,"props":1357,"children":1358},{"style":699},[1359],{"type":53,"value":1360}," {",{"type":47,"tag":562,"props":1362,"children":1363},{"style":693},[1364],{"type":53,"value":1365}," TypeTag",{"type":47,"tag":562,"props":1367,"children":1368},{"style":699},[1369],{"type":53,"value":1370}," }",{"type":47,"tag":562,"props":1372,"children":1373},{"style":687},[1374],{"type":53,"value":1375}," from",{"type":47,"tag":562,"props":1377,"children":1378},{"style":699},[1379],{"type":53,"value":805},{"type":47,"tag":562,"props":1381,"children":1382},{"style":808},[1383],{"type":53,"value":82},{"type":47,"tag":562,"props":1385,"children":1386},{"style":699},[1387],{"type":53,"value":816},{"type":47,"tag":562,"props":1389,"children":1390},{"style":699},[1391],{"type":53,"value":963},{"type":47,"tag":562,"props":1393,"children":1394},{"class":672,"line":683},[1395],{"type":47,"tag":562,"props":1396,"children":1397},{"emptyLinePlaceholder":1041},[1398],{"type":53,"value":1044},{"type":47,"tag":562,"props":1400,"children":1401},{"class":672,"line":738},[1402],{"type":47,"tag":562,"props":1403,"children":1404},{"style":677},[1405],{"type":53,"value":1406},"\u002F\u002F Parser for type tag strings\n",{"type":47,"tag":562,"props":1408,"children":1409},{"class":672,"line":772},[1410,1414,1418,1423,1427,1431,1435,1439,1443],{"type":47,"tag":562,"props":1411,"children":1412},{"style":687},[1413],{"type":53,"value":1355},{"type":47,"tag":562,"props":1415,"children":1416},{"style":699},[1417],{"type":53,"value":1360},{"type":47,"tag":562,"props":1419,"children":1420},{"style":693},[1421],{"type":53,"value":1422}," parseTypeTag",{"type":47,"tag":562,"props":1424,"children":1425},{"style":699},[1426],{"type":53,"value":1370},{"type":47,"tag":562,"props":1428,"children":1429},{"style":687},[1430],{"type":53,"value":1375},{"type":47,"tag":562,"props":1432,"children":1433},{"style":699},[1434],{"type":53,"value":805},{"type":47,"tag":562,"props":1436,"children":1437},{"style":808},[1438],{"type":53,"value":82},{"type":47,"tag":562,"props":1440,"children":1441},{"style":699},[1442],{"type":53,"value":816},{"type":47,"tag":562,"props":1444,"children":1445},{"style":699},[1446],{"type":53,"value":963},{"type":47,"tag":562,"props":1448,"children":1449},{"class":672,"line":790},[1450,1454,1459,1463,1467,1471,1475,1479,1483,1487],{"type":47,"tag":562,"props":1451,"children":1452},{"style":918},[1453],{"type":53,"value":1111},{"type":47,"tag":562,"props":1455,"children":1456},{"style":693},[1457],{"type":53,"value":1458}," tag ",{"type":47,"tag":562,"props":1460,"children":1461},{"style":699},[1462],{"type":53,"value":1121},{"type":47,"tag":562,"props":1464,"children":1465},{"style":722},[1466],{"type":53,"value":1422},{"type":47,"tag":562,"props":1468,"children":1469},{"style":693},[1470],{"type":53,"value":730},{"type":47,"tag":562,"props":1472,"children":1473},{"style":699},[1474],{"type":53,"value":816},{"type":47,"tag":562,"props":1476,"children":1477},{"style":808},[1478],{"type":53,"value":847},{"type":47,"tag":562,"props":1480,"children":1481},{"style":699},[1482],{"type":53,"value":816},{"type":47,"tag":562,"props":1484,"children":1485},{"style":693},[1486],{"type":53,"value":958},{"type":47,"tag":562,"props":1488,"children":1489},{"style":699},[1490],{"type":53,"value":963},{"type":47,"tag":63,"props":1492,"children":1493},{},[1494,1495,1500],{"type":53,"value":119},{"type":47,"tag":77,"props":1496,"children":1498},{"className":1497},[],[1499],{"type":53,"value":98},{"type":53,"value":1501}," as string array in simple cases; use TypeTag when the SDK API expects it.",{"type":47,"tag":309,"props":1503,"children":1504},{},[],{"type":47,"tag":56,"props":1506,"children":1508},{"id":1507},"object-resource-address-in-arguments",[1509],{"type":53,"value":1510},"Object \u002F resource address in arguments",{"type":47,"tag":63,"props":1512,"children":1513},{},[1514],{"type":53,"value":1515},"Pass object address as string (LONG or SHORT per AIP-40):",{"type":47,"tag":661,"props":1517,"children":1519},{"className":663,"code":1518,"language":15,"meta":665,"style":665},"functionArguments: [\n  nftObjectAddress.toString(), \u002F\u002F or \"0x...\"\n  price\n];\n",[1520],{"type":47,"tag":77,"props":1521,"children":1522},{"__ignoreMap":665},[1523,1538,1569,1577],{"type":47,"tag":562,"props":1524,"children":1525},{"class":672,"line":673},[1526,1530,1534],{"type":47,"tag":562,"props":1527,"children":1528},{"style":1005},[1529],{"type":53,"value":90},{"type":47,"tag":562,"props":1531,"children":1532},{"style":699},[1533],{"type":53,"value":750},{"type":47,"tag":562,"props":1535,"children":1536},{"style":693},[1537],{"type":53,"value":878},{"type":47,"tag":562,"props":1539,"children":1540},{"class":672,"line":683},[1541,1546,1550,1555,1560,1564],{"type":47,"tag":562,"props":1542,"children":1543},{"style":693},[1544],{"type":53,"value":1545},"  nftObjectAddress",{"type":47,"tag":562,"props":1547,"children":1548},{"style":699},[1549],{"type":53,"value":100},{"type":47,"tag":562,"props":1551,"children":1552},{"style":722},[1553],{"type":53,"value":1554},"toString",{"type":47,"tag":562,"props":1556,"children":1557},{"style":693},[1558],{"type":53,"value":1559},"()",{"type":47,"tag":562,"props":1561,"children":1562},{"style":699},[1563],{"type":53,"value":900},{"type":47,"tag":562,"props":1565,"children":1566},{"style":677},[1567],{"type":53,"value":1568}," \u002F\u002F or \"0x...\"\n",{"type":47,"tag":562,"props":1570,"children":1571},{"class":672,"line":738},[1572],{"type":47,"tag":562,"props":1573,"children":1574},{"style":693},[1575],{"type":53,"value":1576},"  price\n",{"type":47,"tag":562,"props":1578,"children":1579},{"class":672,"line":772},[1580,1584],{"type":47,"tag":562,"props":1581,"children":1582},{"style":693},[1583],{"type":53,"value":856},{"type":47,"tag":562,"props":1585,"children":1586},{"style":699},[1587],{"type":53,"value":963},{"type":47,"tag":309,"props":1589,"children":1590},{},[],{"type":47,"tag":56,"props":1592,"children":1594},{"id":1593},"common-mistakes",[1595],{"type":53,"value":1596},"Common mistakes",{"type":47,"tag":319,"props":1598,"children":1599},{},[1600,1616],{"type":47,"tag":323,"props":1601,"children":1602},{},[1603],{"type":47,"tag":327,"props":1604,"children":1605},{},[1606,1611],{"type":47,"tag":331,"props":1607,"children":1608},{},[1609],{"type":53,"value":1610},"Mistake",{"type":47,"tag":331,"props":1612,"children":1613},{},[1614],{"type":53,"value":1615},"Correct approach",{"type":47,"tag":347,"props":1617,"children":1618},{},[1619,1644,1663,1686],{"type":47,"tag":327,"props":1620,"children":1621},{},[1622,1627],{"type":47,"tag":354,"props":1623,"children":1624},{},[1625],{"type":53,"value":1626},"Passing number for u128 amount",{"type":47,"tag":354,"props":1628,"children":1629},{},[1630,1631,1637,1638],{"type":53,"value":119},{"type":47,"tag":77,"props":1632,"children":1634},{"className":1633},[],[1635],{"type":53,"value":1636},"1000000n",{"type":53,"value":168},{"type":47,"tag":77,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":53,"value":1643},"BigInt(\"...\")",{"type":47,"tag":327,"props":1645,"children":1646},{},[1647,1652],{"type":47,"tag":354,"props":1648,"children":1649},{},[1650],{"type":53,"value":1651},"Omitting typeArguments for coin::balance",{"type":47,"tag":354,"props":1653,"children":1654},{},[1655,1657],{"type":53,"value":1656},"Add ",{"type":47,"tag":77,"props":1658,"children":1660},{"className":1659},[],[1661],{"type":53,"value":1662},"typeArguments: [\"0x1::aptos_coin::AptosCoin\"]",{"type":47,"tag":327,"props":1664,"children":1665},{},[1666,1677],{"type":47,"tag":354,"props":1667,"children":1668},{},[1669,1671,1675],{"type":53,"value":1670},"Using result",{"type":47,"tag":562,"props":1672,"children":1673},{},[1674],{"type":53,"value":1303},{"type":53,"value":1676}," as number for u128",{"type":47,"tag":354,"props":1678,"children":1679},{},[1680,1681],{"type":53,"value":119},{"type":47,"tag":77,"props":1682,"children":1684},{"className":1683},[],[1685],{"type":53,"value":238},{"type":47,"tag":327,"props":1687,"children":1688},{},[1689,1694],{"type":47,"tag":354,"props":1690,"children":1691},{},[1692],{"type":53,"value":1693},"Wrong order of functionArguments",{"type":47,"tag":354,"props":1695,"children":1696},{},[1697],{"type":53,"value":1698},"Match Move parameter order exactly",{"type":47,"tag":309,"props":1700,"children":1701},{},[],{"type":47,"tag":56,"props":1703,"children":1705},{"id":1704},"references",[1706],{"type":53,"value":1707},"References",{"type":47,"tag":1709,"props":1710,"children":1711},"ul",{},[1712,1732,1744],{"type":47,"tag":112,"props":1713,"children":1714},{},[1715,1717,1723,1724,1730],{"type":53,"value":1716},"SDK: ",{"type":47,"tag":77,"props":1718,"children":1720},{"className":1719},[],[1721],{"type":53,"value":1722},"src\u002Ftransactions\u002FtypeTag\u002F",{"type":53,"value":373},{"type":47,"tag":77,"props":1725,"children":1727},{"className":1726},[],[1728],{"type":53,"value":1729},"src\u002Ftransactions\u002Finstances\u002FtransactionArgument.ts",{"type":53,"value":1731},", view and build APIs",{"type":47,"tag":112,"props":1733,"children":1734},{},[1735,1737],{"type":53,"value":1736},"Pattern: ",{"type":47,"tag":1738,"props":1739,"children":1741},"a",{"href":1740},"..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md",[1742],{"type":53,"value":1743},"TYPESCRIPT_SDK.md",{"type":47,"tag":112,"props":1745,"children":1746},{},[1747,1749,1755,1756,1762,1763],{"type":53,"value":1748},"Related: ",{"type":47,"tag":1738,"props":1750,"children":1752},{"href":1751},"..\u002Fts-sdk-view-and-query\u002FSKILL.md",[1753],{"type":53,"value":1754},"ts-sdk-view-and-query",{"type":53,"value":769},{"type":47,"tag":1738,"props":1757,"children":1759},{"href":1758},"..\u002Fts-sdk-transactions\u002FSKILL.md",[1760],{"type":53,"value":1761},"ts-sdk-transactions",{"type":53,"value":373},{"type":47,"tag":1738,"props":1764,"children":1766},{"href":1765},"..\u002Fuse-ts-sdk\u002FSKILL.md",[1767],{"type":53,"value":1768},"use-ts-sdk",{"type":47,"tag":1770,"props":1771,"children":1772},"style",{},[1773],{"type":53,"value":1774},"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":1776,"total":1880},[1777,1792,1809,1823,1837,1851,1865],{"slug":1778,"name":1778,"fn":1779,"description":1780,"org":1781,"tags":1782,"stars":20,"repoUrl":21,"updatedAt":1791},"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},[1783,1785,1788],{"name":1784,"slug":27,"type":16},"Blockchain",{"name":1786,"slug":1787,"type":16},"Performance","performance",{"name":1789,"slug":1790,"type":16},"Smart Contracts","smart-contracts","2026-07-12T08:07:14.117466",{"slug":1793,"name":1793,"fn":1794,"description":1795,"org":1796,"tags":1797,"stars":20,"repoUrl":21,"updatedAt":1808},"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},[1798,1801,1802,1805],{"name":1799,"slug":1800,"type":16},"Next.js","next-js",{"name":14,"slug":15,"type":16},{"name":1803,"slug":1804,"type":16},"Vite","vite",{"name":1806,"slug":1807,"type":16},"Web3","web3","2026-07-12T08:07:30.595111",{"slug":1810,"name":1810,"fn":1811,"description":1812,"org":1813,"tags":1814,"stars":20,"repoUrl":21,"updatedAt":1822},"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},[1815,1818,1821],{"name":1816,"slug":1817,"type":16},"Deployment","deployment",{"name":1819,"slug":1820,"type":16},"Engineering","engineering",{"name":1789,"slug":1790,"type":16},"2026-07-12T08:07:16.798352",{"slug":1824,"name":1824,"fn":1825,"description":1826,"org":1827,"tags":1828,"stars":20,"repoUrl":21,"updatedAt":1836},"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},[1829,1830,1833],{"name":1819,"slug":1820,"type":16},{"name":1831,"slug":1832,"type":16},"QA","qa",{"name":1834,"slug":1835,"type":16},"Testing","testing","2026-07-12T08:07:18.0205",{"slug":1838,"name":1838,"fn":1839,"description":1840,"org":1841,"tags":1842,"stars":20,"repoUrl":21,"updatedAt":1850},"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},[1843,1846,1847],{"name":1844,"slug":1845,"type":16},"Code Analysis","code-analysis",{"name":1819,"slug":1820,"type":16},{"name":1848,"slug":1849,"type":16},"Migration","migration","2026-07-12T08:07:10.226223",{"slug":1852,"name":1852,"fn":1853,"description":1854,"org":1855,"tags":1856,"stars":20,"repoUrl":21,"updatedAt":1864},"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},[1857,1858,1861],{"name":1784,"slug":27,"type":16},{"name":1859,"slug":1860,"type":16},"Documentation","documentation",{"name":1862,"slug":1863,"type":16},"Search","search","2026-07-12T08:07:15.382039",{"slug":1866,"name":1866,"fn":1867,"description":1868,"org":1869,"tags":1870,"stars":20,"repoUrl":21,"updatedAt":1879},"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},[1871,1874,1875,1878],{"name":1872,"slug":1873,"type":16},"Audit","audit",{"name":1844,"slug":1845,"type":16},{"name":1876,"slug":1877,"type":16},"Security","security",{"name":1789,"slug":1790,"type":16},"2026-07-12T08:07:11.680215",17,{"items":1882,"total":1983},[1883,1889,1896,1902,1908,1914,1920,1927,1941,1954,1964,1974],{"slug":1778,"name":1778,"fn":1779,"description":1780,"org":1884,"tags":1885,"stars":20,"repoUrl":21,"updatedAt":1791},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1886,1887,1888],{"name":1784,"slug":27,"type":16},{"name":1786,"slug":1787,"type":16},{"name":1789,"slug":1790,"type":16},{"slug":1793,"name":1793,"fn":1794,"description":1795,"org":1890,"tags":1891,"stars":20,"repoUrl":21,"updatedAt":1808},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1892,1893,1894,1895],{"name":1799,"slug":1800,"type":16},{"name":14,"slug":15,"type":16},{"name":1803,"slug":1804,"type":16},{"name":1806,"slug":1807,"type":16},{"slug":1810,"name":1810,"fn":1811,"description":1812,"org":1897,"tags":1898,"stars":20,"repoUrl":21,"updatedAt":1822},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1899,1900,1901],{"name":1816,"slug":1817,"type":16},{"name":1819,"slug":1820,"type":16},{"name":1789,"slug":1790,"type":16},{"slug":1824,"name":1824,"fn":1825,"description":1826,"org":1903,"tags":1904,"stars":20,"repoUrl":21,"updatedAt":1836},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1905,1906,1907],{"name":1819,"slug":1820,"type":16},{"name":1831,"slug":1832,"type":16},{"name":1834,"slug":1835,"type":16},{"slug":1838,"name":1838,"fn":1839,"description":1840,"org":1909,"tags":1910,"stars":20,"repoUrl":21,"updatedAt":1850},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1911,1912,1913],{"name":1844,"slug":1845,"type":16},{"name":1819,"slug":1820,"type":16},{"name":1848,"slug":1849,"type":16},{"slug":1852,"name":1852,"fn":1853,"description":1854,"org":1915,"tags":1916,"stars":20,"repoUrl":21,"updatedAt":1864},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1917,1918,1919],{"name":1784,"slug":27,"type":16},{"name":1859,"slug":1860,"type":16},{"name":1862,"slug":1863,"type":16},{"slug":1866,"name":1866,"fn":1867,"description":1868,"org":1921,"tags":1922,"stars":20,"repoUrl":21,"updatedAt":1879},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1923,1924,1925,1926],{"name":1872,"slug":1873,"type":16},{"name":1844,"slug":1845,"type":16},{"name":1876,"slug":1877,"type":16},{"name":1789,"slug":1790,"type":16},{"slug":1928,"name":1928,"fn":1929,"description":1930,"org":1931,"tags":1932,"stars":20,"repoUrl":21,"updatedAt":1940},"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},[1933,1936,1939],{"name":1934,"slug":1935,"type":16},"API Development","api-development",{"name":1937,"slug":1938,"type":16},"Payments","payments",{"name":1806,"slug":1807,"type":16},"2026-07-12T08:07:31.843242",{"slug":1942,"name":1942,"fn":1943,"description":1944,"org":1945,"tags":1946,"stars":20,"repoUrl":21,"updatedAt":1953},"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},[1947,1950,1951,1952],{"name":1948,"slug":1949,"type":16},"Auth","auth",{"name":1784,"slug":27,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:29.297415",{"slug":1955,"name":1955,"fn":1956,"description":1957,"org":1958,"tags":1959,"stars":20,"repoUrl":21,"updatedAt":1963},"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},[1960,1961,1962],{"name":1784,"slug":27,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:26.430378",{"slug":1965,"name":1965,"fn":1966,"description":1967,"org":1968,"tags":1969,"stars":20,"repoUrl":21,"updatedAt":1973},"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},[1970,1971,1972],{"name":1934,"slug":1935,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:21.933342",{"slug":1761,"name":1761,"fn":1975,"description":1976,"org":1977,"tags":1978,"stars":20,"repoUrl":21,"updatedAt":1982},"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},[1979,1980,1981],{"name":1934,"slug":1935,"type":16},{"name":14,"slug":15,"type":16},{"name":1806,"slug":1807,"type":16},"2026-07-12T08:07:23.774257",24]