[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aptos-ts-sdk-transactions":3,"mdc--7690c-key":36,"related-org-aptos-ts-sdk-transactions":3861,"related-repo-aptos-ts-sdk-transactions":4014},{"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-transactions","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},"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},"Web3","web3",{"name":21,"slug":22,"type":16},"API Development","api-development",18,"https:\u002F\u002Fgithub.com\u002Faptos-labs\u002Faptos-agent-skills","2026-07-12T08:07:23.774257","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-transactions","---\nname: ts-sdk-transactions\ndescription:\n  \"How to build, sign, submit, and simulate transactions in @aptos-labs\u002Fts-sdk. Covers build.simple(),\n  signAndSubmitTransaction(), waitForTransaction(), simulate, sponsored (fee payer), and multi-agent. Triggers on:\n  'build.simple', 'signAndSubmitTransaction', 'transaction.build', 'waitForTransaction', 'signAsFeePayer', 'SDK\n  transaction', 'sponsored transaction', 'multi-agent transaction'.\"\nlicense: MIT\nmetadata:\n  author: aptos-labs\n  version: \"1.0\"\n  category: sdk\n  tags: [\"typescript\", \"sdk\", \"transaction\", \"submit\", \"simulate\", \"sponsored\", \"multi-agent\"]\n  priority: high\n---\n\n# TypeScript SDK: Transactions\n\n## Purpose\n\nGuide **building, signing, submitting, and simulating** transactions with `@aptos-labs\u002Fts-sdk`. Use the build → sign →\nsubmit → wait pattern; optionally simulate before submit.\n\n## ALWAYS\n\n1. **Call `aptos.waitForTransaction({ transactionHash })` after submit** – do not assume transaction is committed after\n   `signAndSubmitTransaction`.\n2. **Use `aptos.transaction.build.simple()` for entry function payloads** – pass `sender` and\n   `data: { function, functionArguments, typeArguments? }`.\n3. **Simulate before submit for critical\u002Fhigh-value flows** – use `aptos.transaction.simulate.simple()` and check\n   `success` and `vm_status`.\n4. **Use the same Account instance for signer** that you use for `sender` address when building (e.g.\n   `account.accountAddress` as sender, `account` as signer).\n\n## NEVER\n\n1. **Do not skip `waitForTransaction`** – submission returns when the tx is accepted, not when it is committed.\n2. **Do not use deprecated `scriptComposer`** (removed in v6) – use separate transactions or batch patterns.\n3. **Do not use `number` for u64\u002Fu128\u002Fu256 in `functionArguments`** – use `bigint` where required to avoid precision\n   loss.\n\n---\n\n## Standard flow (simple transaction)\n\n```typescript\nimport { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nconst aptos = new Aptos(new AptosConfig({ network: Network.TESTNET }));\nconst MODULE_ADDRESS = \"0x...\";\n\n\u002F\u002F 1. Build\nconst transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\n\u002F\u002F 2. Sign and submit\nconst pendingTx = await aptos.signAndSubmitTransaction({\n  signer: account,\n  transaction\n});\n\n\u002F\u002F 3. Wait for commitment\nconst committedTx = await aptos.waitForTransaction({\n  transactionHash: pendingTx.hash\n});\n\nif (!committedTx.success) {\n  throw new Error(`Tx failed: ${committedTx.vm_status}`);\n}\n```\n\n---\n\n## Build options\n\n```typescript\n\u002F\u002F With type arguments (e.g. coin type)\nconst transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: \"0x1::coin::transfer\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [recipientAddress, amount]\n  }\n});\n\n\u002F\u002F Optional: max gas, expiry, etc. (see SDK types for full options)\nconst transactionWithOptions = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: { function: \"...\", functionArguments: [] },\n  options: {\n    maxGasAmount: 2000n,\n    gasUnitPrice: 100n,\n    expireTimestamp: BigInt(Math.floor(Date.now() \u002F 1000) + 600)\n  }\n});\n```\n\n---\n\n## Simulation (before submit)\n\n```typescript\nconst transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\nconst [simResult] = await aptos.transaction.simulate.simple({\n  signerPublicKey: account.publicKey,\n  transaction\n});\n\nif (!simResult.success) {\n  throw new Error(`Simulation failed: ${simResult.vm_status}`);\n}\nconsole.log(\"Gas used:\", simResult.gas_used);\n```\n\n---\n\n## Sponsored transactions (fee payer)\n\n```typescript\n\u002F\u002F 1. Build with fee payer\nconst transaction = await aptos.transaction.build.simple({\n  sender: sender.accountAddress,\n  withFeePayer: true,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\n\u002F\u002F 2. Sender signs\nconst senderAuth = aptos.transaction.sign({\n  signer: sender,\n  transaction\n});\n\n\u002F\u002F 3. Fee payer signs (different method)\nconst feePayerAuth = aptos.transaction.signAsFeePayer({\n  signer: feePayer,\n  transaction\n});\n\n\u002F\u002F 4. Submit with both authenticators\nconst pendingTx = await aptos.transaction.submit.simple({\n  transaction,\n  senderAuthenticator: senderAuth,\n  feePayerAuthenticator: feePayerAuth\n});\n\nawait aptos.waitForTransaction({ transactionHash: pendingTx.hash });\n```\n\n---\n\n## Multi-agent transactions\n\n```typescript\nconst transaction = await aptos.transaction.build.multiAgent({\n  sender: alice.accountAddress,\n  secondarySignerAddresses: [bob.accountAddress],\n  data: {\n    function: `${MODULE_ADDRESS}::escrow::exchange`,\n    functionArguments: [itemAddress, amount]\n  }\n});\n\nconst aliceAuth = aptos.transaction.sign({ signer: alice, transaction });\nconst bobAuth = aptos.transaction.sign({ signer: bob, transaction });\n\nconst pendingTx = await aptos.transaction.submit.multiAgent({\n  transaction,\n  senderAuthenticator: aliceAuth,\n  additionalSignersAuthenticators: [bobAuth]\n});\n\nawait aptos.waitForTransaction({ transactionHash: pendingTx.hash });\n```\n\n---\n\n## waitForTransaction options\n\n```typescript\nconst committed = await aptos.waitForTransaction({\n  transactionHash: pendingTx.hash,\n  options: {\n    timeoutSecs: 60,\n    checkSuccess: true \u002F\u002F throw if tx failed\n  }\n});\n```\n\n---\n\n## Gas profiling\n\n```typescript\nconst gasProfile = await aptos.gasProfile({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::module::function_name`,\n    functionArguments: []\n  }\n});\nconsole.log(\"Gas profile:\", gasProfile);\n```\n\n---\n\n## Common mistakes\n\n| Mistake                        | Correct approach                                                                              |\n| ------------------------------ | --------------------------------------------------------------------------------------------- |\n| Not calling waitForTransaction | Always wait and check `committedTx.success`                                                   |\n| Using number for large amounts | Use `bigint` for u64\u002Fu128\u002Fu256 in functionArguments                                           |\n| Wrong signer for submit        | Use the Account whose address is the sender (or fee payer \u002F additional signer as appropriate) |\n| Assuming scriptComposer exists | Use separate transactions or batch; scriptComposer removed in v6                              |\n\n---\n\n## References\n\n- SDK: `src\u002Fapi\u002Ftransaction.ts`, `src\u002Finternal\u002FtransactionSubmission.ts`, `src\u002Finternal\u002Ftransaction.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-client](..\u002Fts-sdk-client\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":48},{"name":4,"description":6,"license":26,"metadata":38},{"author":11,"version":39,"category":40,"tags":41,"priority":47},"1.0","sdk",[15,40,42,43,44,45,46],"transaction","submit","simulate","sponsored","multi-agent","high",{"type":49,"children":50},"root",[51,60,67,90,96,226,232,298,302,308,1059,1062,1068,1622,1625,1631,2087,2090,2096,2712,2715,2721,3291,3294,3300,3454,3457,3463,3671,3674,3680,3772,3775,3781,3855],{"type":52,"tag":53,"props":54,"children":56},"element","h1",{"id":55},"typescript-sdk-transactions",[57],{"type":58,"value":59},"text","TypeScript SDK: Transactions",{"type":52,"tag":61,"props":62,"children":64},"h2",{"id":63},"purpose",[65],{"type":58,"value":66},"Purpose",{"type":52,"tag":68,"props":69,"children":70},"p",{},[71,73,79,81,88],{"type":58,"value":72},"Guide ",{"type":52,"tag":74,"props":75,"children":76},"strong",{},[77],{"type":58,"value":78},"building, signing, submitting, and simulating",{"type":58,"value":80}," transactions with ",{"type":52,"tag":82,"props":83,"children":85},"code",{"className":84},[],[86],{"type":58,"value":87},"@aptos-labs\u002Fts-sdk",{"type":58,"value":89},". Use the build → sign →\nsubmit → wait pattern; optionally simulate before submit.",{"type":52,"tag":61,"props":91,"children":93},{"id":92},"always",[94],{"type":58,"value":95},"ALWAYS",{"type":52,"tag":97,"props":98,"children":99},"ol",{},[100,127,160,193],{"type":52,"tag":101,"props":102,"children":103},"li",{},[104,117,119,125],{"type":52,"tag":74,"props":105,"children":106},{},[107,109,115],{"type":58,"value":108},"Call ",{"type":52,"tag":82,"props":110,"children":112},{"className":111},[],[113],{"type":58,"value":114},"aptos.waitForTransaction({ transactionHash })",{"type":58,"value":116}," after submit",{"type":58,"value":118}," – do not assume transaction is committed after\n",{"type":52,"tag":82,"props":120,"children":122},{"className":121},[],[123],{"type":58,"value":124},"signAndSubmitTransaction",{"type":58,"value":126},".",{"type":52,"tag":101,"props":128,"children":129},{},[130,143,145,151,153,159],{"type":52,"tag":74,"props":131,"children":132},{},[133,135,141],{"type":58,"value":134},"Use ",{"type":52,"tag":82,"props":136,"children":138},{"className":137},[],[139],{"type":58,"value":140},"aptos.transaction.build.simple()",{"type":58,"value":142}," for entry function payloads",{"type":58,"value":144}," – pass ",{"type":52,"tag":82,"props":146,"children":148},{"className":147},[],[149],{"type":58,"value":150},"sender",{"type":58,"value":152}," and\n",{"type":52,"tag":82,"props":154,"children":156},{"className":155},[],[157],{"type":58,"value":158},"data: { function, functionArguments, typeArguments? }",{"type":58,"value":126},{"type":52,"tag":101,"props":161,"children":162},{},[163,168,170,176,178,184,186,192],{"type":52,"tag":74,"props":164,"children":165},{},[166],{"type":58,"value":167},"Simulate before submit for critical\u002Fhigh-value flows",{"type":58,"value":169}," – use ",{"type":52,"tag":82,"props":171,"children":173},{"className":172},[],[174],{"type":58,"value":175},"aptos.transaction.simulate.simple()",{"type":58,"value":177}," and check\n",{"type":52,"tag":82,"props":179,"children":181},{"className":180},[],[182],{"type":58,"value":183},"success",{"type":58,"value":185}," and ",{"type":52,"tag":82,"props":187,"children":189},{"className":188},[],[190],{"type":58,"value":191},"vm_status",{"type":58,"value":126},{"type":52,"tag":101,"props":194,"children":195},{},[196,201,203,208,210,216,218,224],{"type":52,"tag":74,"props":197,"children":198},{},[199],{"type":58,"value":200},"Use the same Account instance for signer",{"type":58,"value":202}," that you use for ",{"type":52,"tag":82,"props":204,"children":206},{"className":205},[],[207],{"type":58,"value":150},{"type":58,"value":209}," address when building (e.g.\n",{"type":52,"tag":82,"props":211,"children":213},{"className":212},[],[214],{"type":58,"value":215},"account.accountAddress",{"type":58,"value":217}," as sender, ",{"type":52,"tag":82,"props":219,"children":221},{"className":220},[],[222],{"type":58,"value":223},"account",{"type":58,"value":225}," as signer).",{"type":52,"tag":61,"props":227,"children":229},{"id":228},"never",[230],{"type":58,"value":231},"NEVER",{"type":52,"tag":97,"props":233,"children":234},{},[235,251,267],{"type":52,"tag":101,"props":236,"children":237},{},[238,249],{"type":52,"tag":74,"props":239,"children":240},{},[241,243],{"type":58,"value":242},"Do not skip ",{"type":52,"tag":82,"props":244,"children":246},{"className":245},[],[247],{"type":58,"value":248},"waitForTransaction",{"type":58,"value":250}," – submission returns when the tx is accepted, not when it is committed.",{"type":52,"tag":101,"props":252,"children":253},{},[254,265],{"type":52,"tag":74,"props":255,"children":256},{},[257,259],{"type":58,"value":258},"Do not use deprecated ",{"type":52,"tag":82,"props":260,"children":262},{"className":261},[],[263],{"type":58,"value":264},"scriptComposer",{"type":58,"value":266}," (removed in v6) – use separate transactions or batch patterns.",{"type":52,"tag":101,"props":268,"children":269},{},[270,289,290,296],{"type":52,"tag":74,"props":271,"children":272},{},[273,275,281,283],{"type":58,"value":274},"Do not use ",{"type":52,"tag":82,"props":276,"children":278},{"className":277},[],[279],{"type":58,"value":280},"number",{"type":58,"value":282}," for u64\u002Fu128\u002Fu256 in ",{"type":52,"tag":82,"props":284,"children":286},{"className":285},[],[287],{"type":58,"value":288},"functionArguments",{"type":58,"value":169},{"type":52,"tag":82,"props":291,"children":293},{"className":292},[],[294],{"type":58,"value":295},"bigint",{"type":58,"value":297}," where required to avoid precision\nloss.",{"type":52,"tag":299,"props":300,"children":301},"hr",{},[],{"type":52,"tag":61,"props":303,"children":305},{"id":304},"standard-flow-simple-transaction",[306],{"type":58,"value":307},"Standard flow (simple transaction)",{"type":52,"tag":309,"props":310,"children":314},"pre",{"className":311,"code":312,"language":15,"meta":313,"style":313},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Aptos, AptosConfig, Network } from \"@aptos-labs\u002Fts-sdk\";\n\nconst aptos = new Aptos(new AptosConfig({ network: Network.TESTNET }));\nconst MODULE_ADDRESS = \"0x...\";\n\n\u002F\u002F 1. Build\nconst transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\n\u002F\u002F 2. Sign and submit\nconst pendingTx = await aptos.signAndSubmitTransaction({\n  signer: account,\n  transaction\n});\n\n\u002F\u002F 3. Wait for commitment\nconst committedTx = await aptos.waitForTransaction({\n  transactionHash: pendingTx.hash\n});\n\nif (!committedTx.success) {\n  throw new Error(`Tx failed: ${committedTx.vm_status}`);\n}\n","",[315],{"type":52,"tag":82,"props":316,"children":317},{"__ignoreMap":313},[318,391,401,492,526,534,544,606,637,655,696,714,723,740,748,757,798,819,827,843,851,860,901,928,944,952,989,1050],{"type":52,"tag":319,"props":320,"children":323},"span",{"class":321,"line":322},"line",1,[324,330,336,342,347,352,356,361,366,371,376,381,386],{"type":52,"tag":319,"props":325,"children":327},{"style":326},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[328],{"type":58,"value":329},"import",{"type":52,"tag":319,"props":331,"children":333},{"style":332},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[334],{"type":58,"value":335}," {",{"type":52,"tag":319,"props":337,"children":339},{"style":338},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[340],{"type":58,"value":341}," Aptos",{"type":52,"tag":319,"props":343,"children":344},{"style":332},[345],{"type":58,"value":346},",",{"type":52,"tag":319,"props":348,"children":349},{"style":338},[350],{"type":58,"value":351}," AptosConfig",{"type":52,"tag":319,"props":353,"children":354},{"style":332},[355],{"type":58,"value":346},{"type":52,"tag":319,"props":357,"children":358},{"style":338},[359],{"type":58,"value":360}," Network",{"type":52,"tag":319,"props":362,"children":363},{"style":332},[364],{"type":58,"value":365}," }",{"type":52,"tag":319,"props":367,"children":368},{"style":326},[369],{"type":58,"value":370}," from",{"type":52,"tag":319,"props":372,"children":373},{"style":332},[374],{"type":58,"value":375}," \"",{"type":52,"tag":319,"props":377,"children":379},{"style":378},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[380],{"type":58,"value":87},{"type":52,"tag":319,"props":382,"children":383},{"style":332},[384],{"type":58,"value":385},"\"",{"type":52,"tag":319,"props":387,"children":388},{"style":332},[389],{"type":58,"value":390},";\n",{"type":52,"tag":319,"props":392,"children":394},{"class":321,"line":393},2,[395],{"type":52,"tag":319,"props":396,"children":398},{"emptyLinePlaceholder":397},true,[399],{"type":58,"value":400},"\n",{"type":52,"tag":319,"props":402,"children":404},{"class":321,"line":403},3,[405,411,416,421,426,431,436,441,445,449,454,460,465,469,473,478,483,488],{"type":52,"tag":319,"props":406,"children":408},{"style":407},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[409],{"type":58,"value":410},"const",{"type":52,"tag":319,"props":412,"children":413},{"style":338},[414],{"type":58,"value":415}," aptos ",{"type":52,"tag":319,"props":417,"children":418},{"style":332},[419],{"type":58,"value":420},"=",{"type":52,"tag":319,"props":422,"children":423},{"style":332},[424],{"type":58,"value":425}," new",{"type":52,"tag":319,"props":427,"children":429},{"style":428},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[430],{"type":58,"value":341},{"type":52,"tag":319,"props":432,"children":433},{"style":338},[434],{"type":58,"value":435},"(",{"type":52,"tag":319,"props":437,"children":438},{"style":332},[439],{"type":58,"value":440},"new",{"type":52,"tag":319,"props":442,"children":443},{"style":428},[444],{"type":58,"value":351},{"type":52,"tag":319,"props":446,"children":447},{"style":338},[448],{"type":58,"value":435},{"type":52,"tag":319,"props":450,"children":451},{"style":332},[452],{"type":58,"value":453},"{",{"type":52,"tag":319,"props":455,"children":457},{"style":456},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[458],{"type":58,"value":459}," network",{"type":52,"tag":319,"props":461,"children":462},{"style":332},[463],{"type":58,"value":464},":",{"type":52,"tag":319,"props":466,"children":467},{"style":338},[468],{"type":58,"value":360},{"type":52,"tag":319,"props":470,"children":471},{"style":332},[472],{"type":58,"value":126},{"type":52,"tag":319,"props":474,"children":475},{"style":338},[476],{"type":58,"value":477},"TESTNET ",{"type":52,"tag":319,"props":479,"children":480},{"style":332},[481],{"type":58,"value":482},"}",{"type":52,"tag":319,"props":484,"children":485},{"style":338},[486],{"type":58,"value":487},"))",{"type":52,"tag":319,"props":489,"children":490},{"style":332},[491],{"type":58,"value":390},{"type":52,"tag":319,"props":493,"children":495},{"class":321,"line":494},4,[496,500,505,509,513,518,522],{"type":52,"tag":319,"props":497,"children":498},{"style":407},[499],{"type":58,"value":410},{"type":52,"tag":319,"props":501,"children":502},{"style":338},[503],{"type":58,"value":504}," MODULE_ADDRESS ",{"type":52,"tag":319,"props":506,"children":507},{"style":332},[508],{"type":58,"value":420},{"type":52,"tag":319,"props":510,"children":511},{"style":332},[512],{"type":58,"value":375},{"type":52,"tag":319,"props":514,"children":515},{"style":378},[516],{"type":58,"value":517},"0x...",{"type":52,"tag":319,"props":519,"children":520},{"style":332},[521],{"type":58,"value":385},{"type":52,"tag":319,"props":523,"children":524},{"style":332},[525],{"type":58,"value":390},{"type":52,"tag":319,"props":527,"children":529},{"class":321,"line":528},5,[530],{"type":52,"tag":319,"props":531,"children":532},{"emptyLinePlaceholder":397},[533],{"type":58,"value":400},{"type":52,"tag":319,"props":535,"children":537},{"class":321,"line":536},6,[538],{"type":52,"tag":319,"props":539,"children":541},{"style":540},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[542],{"type":58,"value":543},"\u002F\u002F 1. Build\n",{"type":52,"tag":319,"props":545,"children":547},{"class":321,"line":546},7,[548,552,557,561,566,571,575,579,583,588,592,597,601],{"type":52,"tag":319,"props":549,"children":550},{"style":407},[551],{"type":58,"value":410},{"type":52,"tag":319,"props":553,"children":554},{"style":338},[555],{"type":58,"value":556}," transaction ",{"type":52,"tag":319,"props":558,"children":559},{"style":332},[560],{"type":58,"value":420},{"type":52,"tag":319,"props":562,"children":563},{"style":326},[564],{"type":58,"value":565}," await",{"type":52,"tag":319,"props":567,"children":568},{"style":338},[569],{"type":58,"value":570}," aptos",{"type":52,"tag":319,"props":572,"children":573},{"style":332},[574],{"type":58,"value":126},{"type":52,"tag":319,"props":576,"children":577},{"style":338},[578],{"type":58,"value":42},{"type":52,"tag":319,"props":580,"children":581},{"style":332},[582],{"type":58,"value":126},{"type":52,"tag":319,"props":584,"children":585},{"style":338},[586],{"type":58,"value":587},"build",{"type":52,"tag":319,"props":589,"children":590},{"style":332},[591],{"type":58,"value":126},{"type":52,"tag":319,"props":593,"children":594},{"style":428},[595],{"type":58,"value":596},"simple",{"type":52,"tag":319,"props":598,"children":599},{"style":338},[600],{"type":58,"value":435},{"type":52,"tag":319,"props":602,"children":603},{"style":332},[604],{"type":58,"value":605},"{\n",{"type":52,"tag":319,"props":607,"children":608},{"class":321,"line":27},[609,614,618,623,627,632],{"type":52,"tag":319,"props":610,"children":611},{"style":456},[612],{"type":58,"value":613},"  sender",{"type":52,"tag":319,"props":615,"children":616},{"style":332},[617],{"type":58,"value":464},{"type":52,"tag":319,"props":619,"children":620},{"style":338},[621],{"type":58,"value":622}," account",{"type":52,"tag":319,"props":624,"children":625},{"style":332},[626],{"type":58,"value":126},{"type":52,"tag":319,"props":628,"children":629},{"style":338},[630],{"type":58,"value":631},"accountAddress",{"type":52,"tag":319,"props":633,"children":634},{"style":332},[635],{"type":58,"value":636},",\n",{"type":52,"tag":319,"props":638,"children":640},{"class":321,"line":639},9,[641,646,650],{"type":52,"tag":319,"props":642,"children":643},{"style":456},[644],{"type":58,"value":645},"  data",{"type":52,"tag":319,"props":647,"children":648},{"style":332},[649],{"type":58,"value":464},{"type":52,"tag":319,"props":651,"children":652},{"style":332},[653],{"type":58,"value":654}," {\n",{"type":52,"tag":319,"props":656,"children":658},{"class":321,"line":657},10,[659,664,668,673,678,682,687,692],{"type":52,"tag":319,"props":660,"children":661},{"style":456},[662],{"type":58,"value":663},"    function",{"type":52,"tag":319,"props":665,"children":666},{"style":332},[667],{"type":58,"value":464},{"type":52,"tag":319,"props":669,"children":670},{"style":332},[671],{"type":58,"value":672}," `${",{"type":52,"tag":319,"props":674,"children":675},{"style":338},[676],{"type":58,"value":677},"MODULE_ADDRESS",{"type":52,"tag":319,"props":679,"children":680},{"style":332},[681],{"type":58,"value":482},{"type":52,"tag":319,"props":683,"children":684},{"style":378},[685],{"type":58,"value":686},"::counter::increment",{"type":52,"tag":319,"props":688,"children":689},{"style":332},[690],{"type":58,"value":691},"`",{"type":52,"tag":319,"props":693,"children":694},{"style":332},[695],{"type":58,"value":636},{"type":52,"tag":319,"props":697,"children":699},{"class":321,"line":698},11,[700,705,709],{"type":52,"tag":319,"props":701,"children":702},{"style":456},[703],{"type":58,"value":704},"    functionArguments",{"type":52,"tag":319,"props":706,"children":707},{"style":332},[708],{"type":58,"value":464},{"type":52,"tag":319,"props":710,"children":711},{"style":338},[712],{"type":58,"value":713}," []\n",{"type":52,"tag":319,"props":715,"children":717},{"class":321,"line":716},12,[718],{"type":52,"tag":319,"props":719,"children":720},{"style":332},[721],{"type":58,"value":722},"  }\n",{"type":52,"tag":319,"props":724,"children":726},{"class":321,"line":725},13,[727,731,736],{"type":52,"tag":319,"props":728,"children":729},{"style":332},[730],{"type":58,"value":482},{"type":52,"tag":319,"props":732,"children":733},{"style":338},[734],{"type":58,"value":735},")",{"type":52,"tag":319,"props":737,"children":738},{"style":332},[739],{"type":58,"value":390},{"type":52,"tag":319,"props":741,"children":743},{"class":321,"line":742},14,[744],{"type":52,"tag":319,"props":745,"children":746},{"emptyLinePlaceholder":397},[747],{"type":58,"value":400},{"type":52,"tag":319,"props":749,"children":751},{"class":321,"line":750},15,[752],{"type":52,"tag":319,"props":753,"children":754},{"style":540},[755],{"type":58,"value":756},"\u002F\u002F 2. Sign and submit\n",{"type":52,"tag":319,"props":758,"children":760},{"class":321,"line":759},16,[761,765,770,774,778,782,786,790,794],{"type":52,"tag":319,"props":762,"children":763},{"style":407},[764],{"type":58,"value":410},{"type":52,"tag":319,"props":766,"children":767},{"style":338},[768],{"type":58,"value":769}," pendingTx ",{"type":52,"tag":319,"props":771,"children":772},{"style":332},[773],{"type":58,"value":420},{"type":52,"tag":319,"props":775,"children":776},{"style":326},[777],{"type":58,"value":565},{"type":52,"tag":319,"props":779,"children":780},{"style":338},[781],{"type":58,"value":570},{"type":52,"tag":319,"props":783,"children":784},{"style":332},[785],{"type":58,"value":126},{"type":52,"tag":319,"props":787,"children":788},{"style":428},[789],{"type":58,"value":124},{"type":52,"tag":319,"props":791,"children":792},{"style":338},[793],{"type":58,"value":435},{"type":52,"tag":319,"props":795,"children":796},{"style":332},[797],{"type":58,"value":605},{"type":52,"tag":319,"props":799,"children":801},{"class":321,"line":800},17,[802,807,811,815],{"type":52,"tag":319,"props":803,"children":804},{"style":456},[805],{"type":58,"value":806},"  signer",{"type":52,"tag":319,"props":808,"children":809},{"style":332},[810],{"type":58,"value":464},{"type":52,"tag":319,"props":812,"children":813},{"style":338},[814],{"type":58,"value":622},{"type":52,"tag":319,"props":816,"children":817},{"style":332},[818],{"type":58,"value":636},{"type":52,"tag":319,"props":820,"children":821},{"class":321,"line":23},[822],{"type":52,"tag":319,"props":823,"children":824},{"style":338},[825],{"type":58,"value":826},"  transaction\n",{"type":52,"tag":319,"props":828,"children":830},{"class":321,"line":829},19,[831,835,839],{"type":52,"tag":319,"props":832,"children":833},{"style":332},[834],{"type":58,"value":482},{"type":52,"tag":319,"props":836,"children":837},{"style":338},[838],{"type":58,"value":735},{"type":52,"tag":319,"props":840,"children":841},{"style":332},[842],{"type":58,"value":390},{"type":52,"tag":319,"props":844,"children":846},{"class":321,"line":845},20,[847],{"type":52,"tag":319,"props":848,"children":849},{"emptyLinePlaceholder":397},[850],{"type":58,"value":400},{"type":52,"tag":319,"props":852,"children":854},{"class":321,"line":853},21,[855],{"type":52,"tag":319,"props":856,"children":857},{"style":540},[858],{"type":58,"value":859},"\u002F\u002F 3. Wait for commitment\n",{"type":52,"tag":319,"props":861,"children":863},{"class":321,"line":862},22,[864,868,873,877,881,885,889,893,897],{"type":52,"tag":319,"props":865,"children":866},{"style":407},[867],{"type":58,"value":410},{"type":52,"tag":319,"props":869,"children":870},{"style":338},[871],{"type":58,"value":872}," committedTx ",{"type":52,"tag":319,"props":874,"children":875},{"style":332},[876],{"type":58,"value":420},{"type":52,"tag":319,"props":878,"children":879},{"style":326},[880],{"type":58,"value":565},{"type":52,"tag":319,"props":882,"children":883},{"style":338},[884],{"type":58,"value":570},{"type":52,"tag":319,"props":886,"children":887},{"style":332},[888],{"type":58,"value":126},{"type":52,"tag":319,"props":890,"children":891},{"style":428},[892],{"type":58,"value":248},{"type":52,"tag":319,"props":894,"children":895},{"style":338},[896],{"type":58,"value":435},{"type":52,"tag":319,"props":898,"children":899},{"style":332},[900],{"type":58,"value":605},{"type":52,"tag":319,"props":902,"children":904},{"class":321,"line":903},23,[905,910,914,919,923],{"type":52,"tag":319,"props":906,"children":907},{"style":456},[908],{"type":58,"value":909},"  transactionHash",{"type":52,"tag":319,"props":911,"children":912},{"style":332},[913],{"type":58,"value":464},{"type":52,"tag":319,"props":915,"children":916},{"style":338},[917],{"type":58,"value":918}," pendingTx",{"type":52,"tag":319,"props":920,"children":921},{"style":332},[922],{"type":58,"value":126},{"type":52,"tag":319,"props":924,"children":925},{"style":338},[926],{"type":58,"value":927},"hash\n",{"type":52,"tag":319,"props":929,"children":931},{"class":321,"line":930},24,[932,936,940],{"type":52,"tag":319,"props":933,"children":934},{"style":332},[935],{"type":58,"value":482},{"type":52,"tag":319,"props":937,"children":938},{"style":338},[939],{"type":58,"value":735},{"type":52,"tag":319,"props":941,"children":942},{"style":332},[943],{"type":58,"value":390},{"type":52,"tag":319,"props":945,"children":947},{"class":321,"line":946},25,[948],{"type":52,"tag":319,"props":949,"children":950},{"emptyLinePlaceholder":397},[951],{"type":58,"value":400},{"type":52,"tag":319,"props":953,"children":955},{"class":321,"line":954},26,[956,961,966,971,976,980,985],{"type":52,"tag":319,"props":957,"children":958},{"style":326},[959],{"type":58,"value":960},"if",{"type":52,"tag":319,"props":962,"children":963},{"style":338},[964],{"type":58,"value":965}," (",{"type":52,"tag":319,"props":967,"children":968},{"style":332},[969],{"type":58,"value":970},"!",{"type":52,"tag":319,"props":972,"children":973},{"style":338},[974],{"type":58,"value":975},"committedTx",{"type":52,"tag":319,"props":977,"children":978},{"style":332},[979],{"type":58,"value":126},{"type":52,"tag":319,"props":981,"children":982},{"style":338},[983],{"type":58,"value":984},"success) ",{"type":52,"tag":319,"props":986,"children":987},{"style":332},[988],{"type":58,"value":605},{"type":52,"tag":319,"props":990,"children":992},{"class":321,"line":991},27,[993,998,1002,1007,1011,1015,1020,1025,1029,1033,1037,1042,1046],{"type":52,"tag":319,"props":994,"children":995},{"style":326},[996],{"type":58,"value":997},"  throw",{"type":52,"tag":319,"props":999,"children":1000},{"style":332},[1001],{"type":58,"value":425},{"type":52,"tag":319,"props":1003,"children":1004},{"style":428},[1005],{"type":58,"value":1006}," Error",{"type":52,"tag":319,"props":1008,"children":1009},{"style":456},[1010],{"type":58,"value":435},{"type":52,"tag":319,"props":1012,"children":1013},{"style":332},[1014],{"type":58,"value":691},{"type":52,"tag":319,"props":1016,"children":1017},{"style":378},[1018],{"type":58,"value":1019},"Tx failed: ",{"type":52,"tag":319,"props":1021,"children":1022},{"style":332},[1023],{"type":58,"value":1024},"${",{"type":52,"tag":319,"props":1026,"children":1027},{"style":338},[1028],{"type":58,"value":975},{"type":52,"tag":319,"props":1030,"children":1031},{"style":332},[1032],{"type":58,"value":126},{"type":52,"tag":319,"props":1034,"children":1035},{"style":338},[1036],{"type":58,"value":191},{"type":52,"tag":319,"props":1038,"children":1039},{"style":332},[1040],{"type":58,"value":1041},"}`",{"type":52,"tag":319,"props":1043,"children":1044},{"style":456},[1045],{"type":58,"value":735},{"type":52,"tag":319,"props":1047,"children":1048},{"style":332},[1049],{"type":58,"value":390},{"type":52,"tag":319,"props":1051,"children":1053},{"class":321,"line":1052},28,[1054],{"type":52,"tag":319,"props":1055,"children":1056},{"style":332},[1057],{"type":58,"value":1058},"}\n",{"type":52,"tag":299,"props":1060,"children":1061},{},[],{"type":52,"tag":61,"props":1063,"children":1065},{"id":1064},"build-options",[1066],{"type":58,"value":1067},"Build options",{"type":52,"tag":309,"props":1069,"children":1071},{"className":311,"code":1070,"language":15,"meta":313,"style":313},"\u002F\u002F With type arguments (e.g. coin type)\nconst transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: \"0x1::coin::transfer\",\n    typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n    functionArguments: [recipientAddress, amount]\n  }\n});\n\n\u002F\u002F Optional: max gas, expiry, etc. (see SDK types for full options)\nconst transactionWithOptions = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: { function: \"...\", functionArguments: [] },\n  options: {\n    maxGasAmount: 2000n,\n    gasUnitPrice: 100n,\n    expireTimestamp: BigInt(Math.floor(Date.now() \u002F 1000) + 600)\n  }\n});\n",[1072],{"type":52,"tag":82,"props":1073,"children":1074},{"__ignoreMap":313},[1075,1083,1138,1165,1180,1208,1247,1272,1279,1294,1301,1309,1365,1392,1452,1468,1495,1520,1600,1607],{"type":52,"tag":319,"props":1076,"children":1077},{"class":321,"line":322},[1078],{"type":52,"tag":319,"props":1079,"children":1080},{"style":540},[1081],{"type":58,"value":1082},"\u002F\u002F With type arguments (e.g. coin type)\n",{"type":52,"tag":319,"props":1084,"children":1085},{"class":321,"line":393},[1086,1090,1094,1098,1102,1106,1110,1114,1118,1122,1126,1130,1134],{"type":52,"tag":319,"props":1087,"children":1088},{"style":407},[1089],{"type":58,"value":410},{"type":52,"tag":319,"props":1091,"children":1092},{"style":338},[1093],{"type":58,"value":556},{"type":52,"tag":319,"props":1095,"children":1096},{"style":332},[1097],{"type":58,"value":420},{"type":52,"tag":319,"props":1099,"children":1100},{"style":326},[1101],{"type":58,"value":565},{"type":52,"tag":319,"props":1103,"children":1104},{"style":338},[1105],{"type":58,"value":570},{"type":52,"tag":319,"props":1107,"children":1108},{"style":332},[1109],{"type":58,"value":126},{"type":52,"tag":319,"props":1111,"children":1112},{"style":338},[1113],{"type":58,"value":42},{"type":52,"tag":319,"props":1115,"children":1116},{"style":332},[1117],{"type":58,"value":126},{"type":52,"tag":319,"props":1119,"children":1120},{"style":338},[1121],{"type":58,"value":587},{"type":52,"tag":319,"props":1123,"children":1124},{"style":332},[1125],{"type":58,"value":126},{"type":52,"tag":319,"props":1127,"children":1128},{"style":428},[1129],{"type":58,"value":596},{"type":52,"tag":319,"props":1131,"children":1132},{"style":338},[1133],{"type":58,"value":435},{"type":52,"tag":319,"props":1135,"children":1136},{"style":332},[1137],{"type":58,"value":605},{"type":52,"tag":319,"props":1139,"children":1140},{"class":321,"line":403},[1141,1145,1149,1153,1157,1161],{"type":52,"tag":319,"props":1142,"children":1143},{"style":456},[1144],{"type":58,"value":613},{"type":52,"tag":319,"props":1146,"children":1147},{"style":332},[1148],{"type":58,"value":464},{"type":52,"tag":319,"props":1150,"children":1151},{"style":338},[1152],{"type":58,"value":622},{"type":52,"tag":319,"props":1154,"children":1155},{"style":332},[1156],{"type":58,"value":126},{"type":52,"tag":319,"props":1158,"children":1159},{"style":338},[1160],{"type":58,"value":631},{"type":52,"tag":319,"props":1162,"children":1163},{"style":332},[1164],{"type":58,"value":636},{"type":52,"tag":319,"props":1166,"children":1167},{"class":321,"line":494},[1168,1172,1176],{"type":52,"tag":319,"props":1169,"children":1170},{"style":456},[1171],{"type":58,"value":645},{"type":52,"tag":319,"props":1173,"children":1174},{"style":332},[1175],{"type":58,"value":464},{"type":52,"tag":319,"props":1177,"children":1178},{"style":332},[1179],{"type":58,"value":654},{"type":52,"tag":319,"props":1181,"children":1182},{"class":321,"line":528},[1183,1187,1191,1195,1200,1204],{"type":52,"tag":319,"props":1184,"children":1185},{"style":456},[1186],{"type":58,"value":663},{"type":52,"tag":319,"props":1188,"children":1189},{"style":332},[1190],{"type":58,"value":464},{"type":52,"tag":319,"props":1192,"children":1193},{"style":332},[1194],{"type":58,"value":375},{"type":52,"tag":319,"props":1196,"children":1197},{"style":378},[1198],{"type":58,"value":1199},"0x1::coin::transfer",{"type":52,"tag":319,"props":1201,"children":1202},{"style":332},[1203],{"type":58,"value":385},{"type":52,"tag":319,"props":1205,"children":1206},{"style":332},[1207],{"type":58,"value":636},{"type":52,"tag":319,"props":1209,"children":1210},{"class":321,"line":536},[1211,1216,1220,1225,1229,1234,1238,1243],{"type":52,"tag":319,"props":1212,"children":1213},{"style":456},[1214],{"type":58,"value":1215},"    typeArguments",{"type":52,"tag":319,"props":1217,"children":1218},{"style":332},[1219],{"type":58,"value":464},{"type":52,"tag":319,"props":1221,"children":1222},{"style":338},[1223],{"type":58,"value":1224}," [",{"type":52,"tag":319,"props":1226,"children":1227},{"style":332},[1228],{"type":58,"value":385},{"type":52,"tag":319,"props":1230,"children":1231},{"style":378},[1232],{"type":58,"value":1233},"0x1::aptos_coin::AptosCoin",{"type":52,"tag":319,"props":1235,"children":1236},{"style":332},[1237],{"type":58,"value":385},{"type":52,"tag":319,"props":1239,"children":1240},{"style":338},[1241],{"type":58,"value":1242},"]",{"type":52,"tag":319,"props":1244,"children":1245},{"style":332},[1246],{"type":58,"value":636},{"type":52,"tag":319,"props":1248,"children":1249},{"class":321,"line":546},[1250,1254,1258,1263,1267],{"type":52,"tag":319,"props":1251,"children":1252},{"style":456},[1253],{"type":58,"value":704},{"type":52,"tag":319,"props":1255,"children":1256},{"style":332},[1257],{"type":58,"value":464},{"type":52,"tag":319,"props":1259,"children":1260},{"style":338},[1261],{"type":58,"value":1262}," [recipientAddress",{"type":52,"tag":319,"props":1264,"children":1265},{"style":332},[1266],{"type":58,"value":346},{"type":52,"tag":319,"props":1268,"children":1269},{"style":338},[1270],{"type":58,"value":1271}," amount]\n",{"type":52,"tag":319,"props":1273,"children":1274},{"class":321,"line":27},[1275],{"type":52,"tag":319,"props":1276,"children":1277},{"style":332},[1278],{"type":58,"value":722},{"type":52,"tag":319,"props":1280,"children":1281},{"class":321,"line":639},[1282,1286,1290],{"type":52,"tag":319,"props":1283,"children":1284},{"style":332},[1285],{"type":58,"value":482},{"type":52,"tag":319,"props":1287,"children":1288},{"style":338},[1289],{"type":58,"value":735},{"type":52,"tag":319,"props":1291,"children":1292},{"style":332},[1293],{"type":58,"value":390},{"type":52,"tag":319,"props":1295,"children":1296},{"class":321,"line":657},[1297],{"type":52,"tag":319,"props":1298,"children":1299},{"emptyLinePlaceholder":397},[1300],{"type":58,"value":400},{"type":52,"tag":319,"props":1302,"children":1303},{"class":321,"line":698},[1304],{"type":52,"tag":319,"props":1305,"children":1306},{"style":540},[1307],{"type":58,"value":1308},"\u002F\u002F Optional: max gas, expiry, etc. (see SDK types for full options)\n",{"type":52,"tag":319,"props":1310,"children":1311},{"class":321,"line":716},[1312,1316,1321,1325,1329,1333,1337,1341,1345,1349,1353,1357,1361],{"type":52,"tag":319,"props":1313,"children":1314},{"style":407},[1315],{"type":58,"value":410},{"type":52,"tag":319,"props":1317,"children":1318},{"style":338},[1319],{"type":58,"value":1320}," transactionWithOptions ",{"type":52,"tag":319,"props":1322,"children":1323},{"style":332},[1324],{"type":58,"value":420},{"type":52,"tag":319,"props":1326,"children":1327},{"style":326},[1328],{"type":58,"value":565},{"type":52,"tag":319,"props":1330,"children":1331},{"style":338},[1332],{"type":58,"value":570},{"type":52,"tag":319,"props":1334,"children":1335},{"style":332},[1336],{"type":58,"value":126},{"type":52,"tag":319,"props":1338,"children":1339},{"style":338},[1340],{"type":58,"value":42},{"type":52,"tag":319,"props":1342,"children":1343},{"style":332},[1344],{"type":58,"value":126},{"type":52,"tag":319,"props":1346,"children":1347},{"style":338},[1348],{"type":58,"value":587},{"type":52,"tag":319,"props":1350,"children":1351},{"style":332},[1352],{"type":58,"value":126},{"type":52,"tag":319,"props":1354,"children":1355},{"style":428},[1356],{"type":58,"value":596},{"type":52,"tag":319,"props":1358,"children":1359},{"style":338},[1360],{"type":58,"value":435},{"type":52,"tag":319,"props":1362,"children":1363},{"style":332},[1364],{"type":58,"value":605},{"type":52,"tag":319,"props":1366,"children":1367},{"class":321,"line":725},[1368,1372,1376,1380,1384,1388],{"type":52,"tag":319,"props":1369,"children":1370},{"style":456},[1371],{"type":58,"value":613},{"type":52,"tag":319,"props":1373,"children":1374},{"style":332},[1375],{"type":58,"value":464},{"type":52,"tag":319,"props":1377,"children":1378},{"style":338},[1379],{"type":58,"value":622},{"type":52,"tag":319,"props":1381,"children":1382},{"style":332},[1383],{"type":58,"value":126},{"type":52,"tag":319,"props":1385,"children":1386},{"style":338},[1387],{"type":58,"value":631},{"type":52,"tag":319,"props":1389,"children":1390},{"style":332},[1391],{"type":58,"value":636},{"type":52,"tag":319,"props":1393,"children":1394},{"class":321,"line":742},[1395,1399,1403,1407,1412,1416,1420,1425,1429,1433,1438,1442,1447],{"type":52,"tag":319,"props":1396,"children":1397},{"style":456},[1398],{"type":58,"value":645},{"type":52,"tag":319,"props":1400,"children":1401},{"style":332},[1402],{"type":58,"value":464},{"type":52,"tag":319,"props":1404,"children":1405},{"style":332},[1406],{"type":58,"value":335},{"type":52,"tag":319,"props":1408,"children":1409},{"style":456},[1410],{"type":58,"value":1411}," function",{"type":52,"tag":319,"props":1413,"children":1414},{"style":332},[1415],{"type":58,"value":464},{"type":52,"tag":319,"props":1417,"children":1418},{"style":332},[1419],{"type":58,"value":375},{"type":52,"tag":319,"props":1421,"children":1422},{"style":378},[1423],{"type":58,"value":1424},"...",{"type":52,"tag":319,"props":1426,"children":1427},{"style":332},[1428],{"type":58,"value":385},{"type":52,"tag":319,"props":1430,"children":1431},{"style":332},[1432],{"type":58,"value":346},{"type":52,"tag":319,"props":1434,"children":1435},{"style":456},[1436],{"type":58,"value":1437}," functionArguments",{"type":52,"tag":319,"props":1439,"children":1440},{"style":332},[1441],{"type":58,"value":464},{"type":52,"tag":319,"props":1443,"children":1444},{"style":338},[1445],{"type":58,"value":1446}," [] ",{"type":52,"tag":319,"props":1448,"children":1449},{"style":332},[1450],{"type":58,"value":1451},"},\n",{"type":52,"tag":319,"props":1453,"children":1454},{"class":321,"line":750},[1455,1460,1464],{"type":52,"tag":319,"props":1456,"children":1457},{"style":456},[1458],{"type":58,"value":1459},"  options",{"type":52,"tag":319,"props":1461,"children":1462},{"style":332},[1463],{"type":58,"value":464},{"type":52,"tag":319,"props":1465,"children":1466},{"style":332},[1467],{"type":58,"value":654},{"type":52,"tag":319,"props":1469,"children":1470},{"class":321,"line":759},[1471,1476,1480,1486,1491],{"type":52,"tag":319,"props":1472,"children":1473},{"style":456},[1474],{"type":58,"value":1475},"    maxGasAmount",{"type":52,"tag":319,"props":1477,"children":1478},{"style":332},[1479],{"type":58,"value":464},{"type":52,"tag":319,"props":1481,"children":1483},{"style":1482},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1484],{"type":58,"value":1485}," 2000",{"type":52,"tag":319,"props":1487,"children":1488},{"style":407},[1489],{"type":58,"value":1490},"n",{"type":52,"tag":319,"props":1492,"children":1493},{"style":332},[1494],{"type":58,"value":636},{"type":52,"tag":319,"props":1496,"children":1497},{"class":321,"line":800},[1498,1503,1507,1512,1516],{"type":52,"tag":319,"props":1499,"children":1500},{"style":456},[1501],{"type":58,"value":1502},"    gasUnitPrice",{"type":52,"tag":319,"props":1504,"children":1505},{"style":332},[1506],{"type":58,"value":464},{"type":52,"tag":319,"props":1508,"children":1509},{"style":1482},[1510],{"type":58,"value":1511}," 100",{"type":52,"tag":319,"props":1513,"children":1514},{"style":407},[1515],{"type":58,"value":1490},{"type":52,"tag":319,"props":1517,"children":1518},{"style":332},[1519],{"type":58,"value":636},{"type":52,"tag":319,"props":1521,"children":1522},{"class":321,"line":23},[1523,1528,1532,1537,1542,1546,1551,1556,1560,1565,1570,1575,1580,1585,1590,1595],{"type":52,"tag":319,"props":1524,"children":1525},{"style":456},[1526],{"type":58,"value":1527},"    expireTimestamp",{"type":52,"tag":319,"props":1529,"children":1530},{"style":332},[1531],{"type":58,"value":464},{"type":52,"tag":319,"props":1533,"children":1534},{"style":428},[1535],{"type":58,"value":1536}," BigInt",{"type":52,"tag":319,"props":1538,"children":1539},{"style":338},[1540],{"type":58,"value":1541},"(Math",{"type":52,"tag":319,"props":1543,"children":1544},{"style":332},[1545],{"type":58,"value":126},{"type":52,"tag":319,"props":1547,"children":1548},{"style":428},[1549],{"type":58,"value":1550},"floor",{"type":52,"tag":319,"props":1552,"children":1553},{"style":338},[1554],{"type":58,"value":1555},"(Date",{"type":52,"tag":319,"props":1557,"children":1558},{"style":332},[1559],{"type":58,"value":126},{"type":52,"tag":319,"props":1561,"children":1562},{"style":428},[1563],{"type":58,"value":1564},"now",{"type":52,"tag":319,"props":1566,"children":1567},{"style":338},[1568],{"type":58,"value":1569},"() ",{"type":52,"tag":319,"props":1571,"children":1572},{"style":332},[1573],{"type":58,"value":1574},"\u002F",{"type":52,"tag":319,"props":1576,"children":1577},{"style":1482},[1578],{"type":58,"value":1579}," 1000",{"type":52,"tag":319,"props":1581,"children":1582},{"style":338},[1583],{"type":58,"value":1584},") ",{"type":52,"tag":319,"props":1586,"children":1587},{"style":332},[1588],{"type":58,"value":1589},"+",{"type":52,"tag":319,"props":1591,"children":1592},{"style":1482},[1593],{"type":58,"value":1594}," 600",{"type":52,"tag":319,"props":1596,"children":1597},{"style":338},[1598],{"type":58,"value":1599},")\n",{"type":52,"tag":319,"props":1601,"children":1602},{"class":321,"line":829},[1603],{"type":52,"tag":319,"props":1604,"children":1605},{"style":332},[1606],{"type":58,"value":722},{"type":52,"tag":319,"props":1608,"children":1609},{"class":321,"line":845},[1610,1614,1618],{"type":52,"tag":319,"props":1611,"children":1612},{"style":332},[1613],{"type":58,"value":482},{"type":52,"tag":319,"props":1615,"children":1616},{"style":338},[1617],{"type":58,"value":735},{"type":52,"tag":319,"props":1619,"children":1620},{"style":332},[1621],{"type":58,"value":390},{"type":52,"tag":299,"props":1623,"children":1624},{},[],{"type":52,"tag":61,"props":1626,"children":1628},{"id":1627},"simulation-before-submit",[1629],{"type":58,"value":1630},"Simulation (before submit)",{"type":52,"tag":309,"props":1632,"children":1634},{"className":311,"code":1633,"language":15,"meta":313,"style":313},"const transaction = await aptos.transaction.build.simple({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\nconst [simResult] = await aptos.transaction.simulate.simple({\n  signerPublicKey: account.publicKey,\n  transaction\n});\n\nif (!simResult.success) {\n  throw new Error(`Simulation failed: ${simResult.vm_status}`);\n}\nconsole.log(\"Gas used:\", simResult.gas_used);\n",[1635],{"type":52,"tag":82,"props":1636,"children":1637},{"__ignoreMap":313},[1638,1693,1720,1735,1770,1785,1792,1807,1814,1879,1908,1915,1930,1937,1968,2024,2031],{"type":52,"tag":319,"props":1639,"children":1640},{"class":321,"line":322},[1641,1645,1649,1653,1657,1661,1665,1669,1673,1677,1681,1685,1689],{"type":52,"tag":319,"props":1642,"children":1643},{"style":407},[1644],{"type":58,"value":410},{"type":52,"tag":319,"props":1646,"children":1647},{"style":338},[1648],{"type":58,"value":556},{"type":52,"tag":319,"props":1650,"children":1651},{"style":332},[1652],{"type":58,"value":420},{"type":52,"tag":319,"props":1654,"children":1655},{"style":326},[1656],{"type":58,"value":565},{"type":52,"tag":319,"props":1658,"children":1659},{"style":338},[1660],{"type":58,"value":570},{"type":52,"tag":319,"props":1662,"children":1663},{"style":332},[1664],{"type":58,"value":126},{"type":52,"tag":319,"props":1666,"children":1667},{"style":338},[1668],{"type":58,"value":42},{"type":52,"tag":319,"props":1670,"children":1671},{"style":332},[1672],{"type":58,"value":126},{"type":52,"tag":319,"props":1674,"children":1675},{"style":338},[1676],{"type":58,"value":587},{"type":52,"tag":319,"props":1678,"children":1679},{"style":332},[1680],{"type":58,"value":126},{"type":52,"tag":319,"props":1682,"children":1683},{"style":428},[1684],{"type":58,"value":596},{"type":52,"tag":319,"props":1686,"children":1687},{"style":338},[1688],{"type":58,"value":435},{"type":52,"tag":319,"props":1690,"children":1691},{"style":332},[1692],{"type":58,"value":605},{"type":52,"tag":319,"props":1694,"children":1695},{"class":321,"line":393},[1696,1700,1704,1708,1712,1716],{"type":52,"tag":319,"props":1697,"children":1698},{"style":456},[1699],{"type":58,"value":613},{"type":52,"tag":319,"props":1701,"children":1702},{"style":332},[1703],{"type":58,"value":464},{"type":52,"tag":319,"props":1705,"children":1706},{"style":338},[1707],{"type":58,"value":622},{"type":52,"tag":319,"props":1709,"children":1710},{"style":332},[1711],{"type":58,"value":126},{"type":52,"tag":319,"props":1713,"children":1714},{"style":338},[1715],{"type":58,"value":631},{"type":52,"tag":319,"props":1717,"children":1718},{"style":332},[1719],{"type":58,"value":636},{"type":52,"tag":319,"props":1721,"children":1722},{"class":321,"line":403},[1723,1727,1731],{"type":52,"tag":319,"props":1724,"children":1725},{"style":456},[1726],{"type":58,"value":645},{"type":52,"tag":319,"props":1728,"children":1729},{"style":332},[1730],{"type":58,"value":464},{"type":52,"tag":319,"props":1732,"children":1733},{"style":332},[1734],{"type":58,"value":654},{"type":52,"tag":319,"props":1736,"children":1737},{"class":321,"line":494},[1738,1742,1746,1750,1754,1758,1762,1766],{"type":52,"tag":319,"props":1739,"children":1740},{"style":456},[1741],{"type":58,"value":663},{"type":52,"tag":319,"props":1743,"children":1744},{"style":332},[1745],{"type":58,"value":464},{"type":52,"tag":319,"props":1747,"children":1748},{"style":332},[1749],{"type":58,"value":672},{"type":52,"tag":319,"props":1751,"children":1752},{"style":338},[1753],{"type":58,"value":677},{"type":52,"tag":319,"props":1755,"children":1756},{"style":332},[1757],{"type":58,"value":482},{"type":52,"tag":319,"props":1759,"children":1760},{"style":378},[1761],{"type":58,"value":686},{"type":52,"tag":319,"props":1763,"children":1764},{"style":332},[1765],{"type":58,"value":691},{"type":52,"tag":319,"props":1767,"children":1768},{"style":332},[1769],{"type":58,"value":636},{"type":52,"tag":319,"props":1771,"children":1772},{"class":321,"line":528},[1773,1777,1781],{"type":52,"tag":319,"props":1774,"children":1775},{"style":456},[1776],{"type":58,"value":704},{"type":52,"tag":319,"props":1778,"children":1779},{"style":332},[1780],{"type":58,"value":464},{"type":52,"tag":319,"props":1782,"children":1783},{"style":338},[1784],{"type":58,"value":713},{"type":52,"tag":319,"props":1786,"children":1787},{"class":321,"line":536},[1788],{"type":52,"tag":319,"props":1789,"children":1790},{"style":332},[1791],{"type":58,"value":722},{"type":52,"tag":319,"props":1793,"children":1794},{"class":321,"line":546},[1795,1799,1803],{"type":52,"tag":319,"props":1796,"children":1797},{"style":332},[1798],{"type":58,"value":482},{"type":52,"tag":319,"props":1800,"children":1801},{"style":338},[1802],{"type":58,"value":735},{"type":52,"tag":319,"props":1804,"children":1805},{"style":332},[1806],{"type":58,"value":390},{"type":52,"tag":319,"props":1808,"children":1809},{"class":321,"line":27},[1810],{"type":52,"tag":319,"props":1811,"children":1812},{"emptyLinePlaceholder":397},[1813],{"type":58,"value":400},{"type":52,"tag":319,"props":1815,"children":1816},{"class":321,"line":639},[1817,1821,1825,1830,1834,1839,1843,1847,1851,1855,1859,1863,1867,1871,1875],{"type":52,"tag":319,"props":1818,"children":1819},{"style":407},[1820],{"type":58,"value":410},{"type":52,"tag":319,"props":1822,"children":1823},{"style":332},[1824],{"type":58,"value":1224},{"type":52,"tag":319,"props":1826,"children":1827},{"style":338},[1828],{"type":58,"value":1829},"simResult",{"type":52,"tag":319,"props":1831,"children":1832},{"style":332},[1833],{"type":58,"value":1242},{"type":52,"tag":319,"props":1835,"children":1836},{"style":332},[1837],{"type":58,"value":1838}," =",{"type":52,"tag":319,"props":1840,"children":1841},{"style":326},[1842],{"type":58,"value":565},{"type":52,"tag":319,"props":1844,"children":1845},{"style":338},[1846],{"type":58,"value":570},{"type":52,"tag":319,"props":1848,"children":1849},{"style":332},[1850],{"type":58,"value":126},{"type":52,"tag":319,"props":1852,"children":1853},{"style":338},[1854],{"type":58,"value":42},{"type":52,"tag":319,"props":1856,"children":1857},{"style":332},[1858],{"type":58,"value":126},{"type":52,"tag":319,"props":1860,"children":1861},{"style":338},[1862],{"type":58,"value":44},{"type":52,"tag":319,"props":1864,"children":1865},{"style":332},[1866],{"type":58,"value":126},{"type":52,"tag":319,"props":1868,"children":1869},{"style":428},[1870],{"type":58,"value":596},{"type":52,"tag":319,"props":1872,"children":1873},{"style":338},[1874],{"type":58,"value":435},{"type":52,"tag":319,"props":1876,"children":1877},{"style":332},[1878],{"type":58,"value":605},{"type":52,"tag":319,"props":1880,"children":1881},{"class":321,"line":657},[1882,1887,1891,1895,1899,1904],{"type":52,"tag":319,"props":1883,"children":1884},{"style":456},[1885],{"type":58,"value":1886},"  signerPublicKey",{"type":52,"tag":319,"props":1888,"children":1889},{"style":332},[1890],{"type":58,"value":464},{"type":52,"tag":319,"props":1892,"children":1893},{"style":338},[1894],{"type":58,"value":622},{"type":52,"tag":319,"props":1896,"children":1897},{"style":332},[1898],{"type":58,"value":126},{"type":52,"tag":319,"props":1900,"children":1901},{"style":338},[1902],{"type":58,"value":1903},"publicKey",{"type":52,"tag":319,"props":1905,"children":1906},{"style":332},[1907],{"type":58,"value":636},{"type":52,"tag":319,"props":1909,"children":1910},{"class":321,"line":698},[1911],{"type":52,"tag":319,"props":1912,"children":1913},{"style":338},[1914],{"type":58,"value":826},{"type":52,"tag":319,"props":1916,"children":1917},{"class":321,"line":716},[1918,1922,1926],{"type":52,"tag":319,"props":1919,"children":1920},{"style":332},[1921],{"type":58,"value":482},{"type":52,"tag":319,"props":1923,"children":1924},{"style":338},[1925],{"type":58,"value":735},{"type":52,"tag":319,"props":1927,"children":1928},{"style":332},[1929],{"type":58,"value":390},{"type":52,"tag":319,"props":1931,"children":1932},{"class":321,"line":725},[1933],{"type":52,"tag":319,"props":1934,"children":1935},{"emptyLinePlaceholder":397},[1936],{"type":58,"value":400},{"type":52,"tag":319,"props":1938,"children":1939},{"class":321,"line":742},[1940,1944,1948,1952,1956,1960,1964],{"type":52,"tag":319,"props":1941,"children":1942},{"style":326},[1943],{"type":58,"value":960},{"type":52,"tag":319,"props":1945,"children":1946},{"style":338},[1947],{"type":58,"value":965},{"type":52,"tag":319,"props":1949,"children":1950},{"style":332},[1951],{"type":58,"value":970},{"type":52,"tag":319,"props":1953,"children":1954},{"style":338},[1955],{"type":58,"value":1829},{"type":52,"tag":319,"props":1957,"children":1958},{"style":332},[1959],{"type":58,"value":126},{"type":52,"tag":319,"props":1961,"children":1962},{"style":338},[1963],{"type":58,"value":984},{"type":52,"tag":319,"props":1965,"children":1966},{"style":332},[1967],{"type":58,"value":605},{"type":52,"tag":319,"props":1969,"children":1970},{"class":321,"line":750},[1971,1975,1979,1983,1987,1991,1996,2000,2004,2008,2012,2016,2020],{"type":52,"tag":319,"props":1972,"children":1973},{"style":326},[1974],{"type":58,"value":997},{"type":52,"tag":319,"props":1976,"children":1977},{"style":332},[1978],{"type":58,"value":425},{"type":52,"tag":319,"props":1980,"children":1981},{"style":428},[1982],{"type":58,"value":1006},{"type":52,"tag":319,"props":1984,"children":1985},{"style":456},[1986],{"type":58,"value":435},{"type":52,"tag":319,"props":1988,"children":1989},{"style":332},[1990],{"type":58,"value":691},{"type":52,"tag":319,"props":1992,"children":1993},{"style":378},[1994],{"type":58,"value":1995},"Simulation failed: ",{"type":52,"tag":319,"props":1997,"children":1998},{"style":332},[1999],{"type":58,"value":1024},{"type":52,"tag":319,"props":2001,"children":2002},{"style":338},[2003],{"type":58,"value":1829},{"type":52,"tag":319,"props":2005,"children":2006},{"style":332},[2007],{"type":58,"value":126},{"type":52,"tag":319,"props":2009,"children":2010},{"style":338},[2011],{"type":58,"value":191},{"type":52,"tag":319,"props":2013,"children":2014},{"style":332},[2015],{"type":58,"value":1041},{"type":52,"tag":319,"props":2017,"children":2018},{"style":456},[2019],{"type":58,"value":735},{"type":52,"tag":319,"props":2021,"children":2022},{"style":332},[2023],{"type":58,"value":390},{"type":52,"tag":319,"props":2025,"children":2026},{"class":321,"line":759},[2027],{"type":52,"tag":319,"props":2028,"children":2029},{"style":332},[2030],{"type":58,"value":1058},{"type":52,"tag":319,"props":2032,"children":2033},{"class":321,"line":800},[2034,2039,2043,2048,2052,2056,2061,2065,2069,2074,2078,2083],{"type":52,"tag":319,"props":2035,"children":2036},{"style":338},[2037],{"type":58,"value":2038},"console",{"type":52,"tag":319,"props":2040,"children":2041},{"style":332},[2042],{"type":58,"value":126},{"type":52,"tag":319,"props":2044,"children":2045},{"style":428},[2046],{"type":58,"value":2047},"log",{"type":52,"tag":319,"props":2049,"children":2050},{"style":338},[2051],{"type":58,"value":435},{"type":52,"tag":319,"props":2053,"children":2054},{"style":332},[2055],{"type":58,"value":385},{"type":52,"tag":319,"props":2057,"children":2058},{"style":378},[2059],{"type":58,"value":2060},"Gas used:",{"type":52,"tag":319,"props":2062,"children":2063},{"style":332},[2064],{"type":58,"value":385},{"type":52,"tag":319,"props":2066,"children":2067},{"style":332},[2068],{"type":58,"value":346},{"type":52,"tag":319,"props":2070,"children":2071},{"style":338},[2072],{"type":58,"value":2073}," simResult",{"type":52,"tag":319,"props":2075,"children":2076},{"style":332},[2077],{"type":58,"value":126},{"type":52,"tag":319,"props":2079,"children":2080},{"style":338},[2081],{"type":58,"value":2082},"gas_used)",{"type":52,"tag":319,"props":2084,"children":2085},{"style":332},[2086],{"type":58,"value":390},{"type":52,"tag":299,"props":2088,"children":2089},{},[],{"type":52,"tag":61,"props":2091,"children":2093},{"id":2092},"sponsored-transactions-fee-payer",[2094],{"type":58,"value":2095},"Sponsored transactions (fee payer)",{"type":52,"tag":309,"props":2097,"children":2099},{"className":311,"code":2098,"language":15,"meta":313,"style":313},"\u002F\u002F 1. Build with fee payer\nconst transaction = await aptos.transaction.build.simple({\n  sender: sender.accountAddress,\n  withFeePayer: true,\n  data: {\n    function: `${MODULE_ADDRESS}::counter::increment`,\n    functionArguments: []\n  }\n});\n\n\u002F\u002F 2. Sender signs\nconst senderAuth = aptos.transaction.sign({\n  signer: sender,\n  transaction\n});\n\n\u002F\u002F 3. Fee payer signs (different method)\nconst feePayerAuth = aptos.transaction.signAsFeePayer({\n  signer: feePayer,\n  transaction\n});\n\n\u002F\u002F 4. Submit with both authenticators\nconst pendingTx = await aptos.transaction.submit.simple({\n  transaction,\n  senderAuthenticator: senderAuth,\n  feePayerAuthenticator: feePayerAuth\n});\n\nawait aptos.waitForTransaction({ transactionHash: pendingTx.hash });\n",[2100],{"type":52,"tag":82,"props":2101,"children":2102},{"__ignoreMap":313},[2103,2111,2166,2194,2216,2231,2266,2281,2288,2303,2310,2318,2363,2382,2389,2404,2411,2419,2464,2484,2491,2506,2513,2521,2576,2588,2609,2626,2641,2649],{"type":52,"tag":319,"props":2104,"children":2105},{"class":321,"line":322},[2106],{"type":52,"tag":319,"props":2107,"children":2108},{"style":540},[2109],{"type":58,"value":2110},"\u002F\u002F 1. Build with fee payer\n",{"type":52,"tag":319,"props":2112,"children":2113},{"class":321,"line":393},[2114,2118,2122,2126,2130,2134,2138,2142,2146,2150,2154,2158,2162],{"type":52,"tag":319,"props":2115,"children":2116},{"style":407},[2117],{"type":58,"value":410},{"type":52,"tag":319,"props":2119,"children":2120},{"style":338},[2121],{"type":58,"value":556},{"type":52,"tag":319,"props":2123,"children":2124},{"style":332},[2125],{"type":58,"value":420},{"type":52,"tag":319,"props":2127,"children":2128},{"style":326},[2129],{"type":58,"value":565},{"type":52,"tag":319,"props":2131,"children":2132},{"style":338},[2133],{"type":58,"value":570},{"type":52,"tag":319,"props":2135,"children":2136},{"style":332},[2137],{"type":58,"value":126},{"type":52,"tag":319,"props":2139,"children":2140},{"style":338},[2141],{"type":58,"value":42},{"type":52,"tag":319,"props":2143,"children":2144},{"style":332},[2145],{"type":58,"value":126},{"type":52,"tag":319,"props":2147,"children":2148},{"style":338},[2149],{"type":58,"value":587},{"type":52,"tag":319,"props":2151,"children":2152},{"style":332},[2153],{"type":58,"value":126},{"type":52,"tag":319,"props":2155,"children":2156},{"style":428},[2157],{"type":58,"value":596},{"type":52,"tag":319,"props":2159,"children":2160},{"style":338},[2161],{"type":58,"value":435},{"type":52,"tag":319,"props":2163,"children":2164},{"style":332},[2165],{"type":58,"value":605},{"type":52,"tag":319,"props":2167,"children":2168},{"class":321,"line":403},[2169,2173,2177,2182,2186,2190],{"type":52,"tag":319,"props":2170,"children":2171},{"style":456},[2172],{"type":58,"value":613},{"type":52,"tag":319,"props":2174,"children":2175},{"style":332},[2176],{"type":58,"value":464},{"type":52,"tag":319,"props":2178,"children":2179},{"style":338},[2180],{"type":58,"value":2181}," sender",{"type":52,"tag":319,"props":2183,"children":2184},{"style":332},[2185],{"type":58,"value":126},{"type":52,"tag":319,"props":2187,"children":2188},{"style":338},[2189],{"type":58,"value":631},{"type":52,"tag":319,"props":2191,"children":2192},{"style":332},[2193],{"type":58,"value":636},{"type":52,"tag":319,"props":2195,"children":2196},{"class":321,"line":494},[2197,2202,2206,2212],{"type":52,"tag":319,"props":2198,"children":2199},{"style":456},[2200],{"type":58,"value":2201},"  withFeePayer",{"type":52,"tag":319,"props":2203,"children":2204},{"style":332},[2205],{"type":58,"value":464},{"type":52,"tag":319,"props":2207,"children":2209},{"style":2208},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[2210],{"type":58,"value":2211}," true",{"type":52,"tag":319,"props":2213,"children":2214},{"style":332},[2215],{"type":58,"value":636},{"type":52,"tag":319,"props":2217,"children":2218},{"class":321,"line":528},[2219,2223,2227],{"type":52,"tag":319,"props":2220,"children":2221},{"style":456},[2222],{"type":58,"value":645},{"type":52,"tag":319,"props":2224,"children":2225},{"style":332},[2226],{"type":58,"value":464},{"type":52,"tag":319,"props":2228,"children":2229},{"style":332},[2230],{"type":58,"value":654},{"type":52,"tag":319,"props":2232,"children":2233},{"class":321,"line":536},[2234,2238,2242,2246,2250,2254,2258,2262],{"type":52,"tag":319,"props":2235,"children":2236},{"style":456},[2237],{"type":58,"value":663},{"type":52,"tag":319,"props":2239,"children":2240},{"style":332},[2241],{"type":58,"value":464},{"type":52,"tag":319,"props":2243,"children":2244},{"style":332},[2245],{"type":58,"value":672},{"type":52,"tag":319,"props":2247,"children":2248},{"style":338},[2249],{"type":58,"value":677},{"type":52,"tag":319,"props":2251,"children":2252},{"style":332},[2253],{"type":58,"value":482},{"type":52,"tag":319,"props":2255,"children":2256},{"style":378},[2257],{"type":58,"value":686},{"type":52,"tag":319,"props":2259,"children":2260},{"style":332},[2261],{"type":58,"value":691},{"type":52,"tag":319,"props":2263,"children":2264},{"style":332},[2265],{"type":58,"value":636},{"type":52,"tag":319,"props":2267,"children":2268},{"class":321,"line":546},[2269,2273,2277],{"type":52,"tag":319,"props":2270,"children":2271},{"style":456},[2272],{"type":58,"value":704},{"type":52,"tag":319,"props":2274,"children":2275},{"style":332},[2276],{"type":58,"value":464},{"type":52,"tag":319,"props":2278,"children":2279},{"style":338},[2280],{"type":58,"value":713},{"type":52,"tag":319,"props":2282,"children":2283},{"class":321,"line":27},[2284],{"type":52,"tag":319,"props":2285,"children":2286},{"style":332},[2287],{"type":58,"value":722},{"type":52,"tag":319,"props":2289,"children":2290},{"class":321,"line":639},[2291,2295,2299],{"type":52,"tag":319,"props":2292,"children":2293},{"style":332},[2294],{"type":58,"value":482},{"type":52,"tag":319,"props":2296,"children":2297},{"style":338},[2298],{"type":58,"value":735},{"type":52,"tag":319,"props":2300,"children":2301},{"style":332},[2302],{"type":58,"value":390},{"type":52,"tag":319,"props":2304,"children":2305},{"class":321,"line":657},[2306],{"type":52,"tag":319,"props":2307,"children":2308},{"emptyLinePlaceholder":397},[2309],{"type":58,"value":400},{"type":52,"tag":319,"props":2311,"children":2312},{"class":321,"line":698},[2313],{"type":52,"tag":319,"props":2314,"children":2315},{"style":540},[2316],{"type":58,"value":2317},"\u002F\u002F 2. Sender signs\n",{"type":52,"tag":319,"props":2319,"children":2320},{"class":321,"line":716},[2321,2325,2330,2334,2338,2342,2346,2350,2355,2359],{"type":52,"tag":319,"props":2322,"children":2323},{"style":407},[2324],{"type":58,"value":410},{"type":52,"tag":319,"props":2326,"children":2327},{"style":338},[2328],{"type":58,"value":2329}," senderAuth ",{"type":52,"tag":319,"props":2331,"children":2332},{"style":332},[2333],{"type":58,"value":420},{"type":52,"tag":319,"props":2335,"children":2336},{"style":338},[2337],{"type":58,"value":570},{"type":52,"tag":319,"props":2339,"children":2340},{"style":332},[2341],{"type":58,"value":126},{"type":52,"tag":319,"props":2343,"children":2344},{"style":338},[2345],{"type":58,"value":42},{"type":52,"tag":319,"props":2347,"children":2348},{"style":332},[2349],{"type":58,"value":126},{"type":52,"tag":319,"props":2351,"children":2352},{"style":428},[2353],{"type":58,"value":2354},"sign",{"type":52,"tag":319,"props":2356,"children":2357},{"style":338},[2358],{"type":58,"value":435},{"type":52,"tag":319,"props":2360,"children":2361},{"style":332},[2362],{"type":58,"value":605},{"type":52,"tag":319,"props":2364,"children":2365},{"class":321,"line":725},[2366,2370,2374,2378],{"type":52,"tag":319,"props":2367,"children":2368},{"style":456},[2369],{"type":58,"value":806},{"type":52,"tag":319,"props":2371,"children":2372},{"style":332},[2373],{"type":58,"value":464},{"type":52,"tag":319,"props":2375,"children":2376},{"style":338},[2377],{"type":58,"value":2181},{"type":52,"tag":319,"props":2379,"children":2380},{"style":332},[2381],{"type":58,"value":636},{"type":52,"tag":319,"props":2383,"children":2384},{"class":321,"line":742},[2385],{"type":52,"tag":319,"props":2386,"children":2387},{"style":338},[2388],{"type":58,"value":826},{"type":52,"tag":319,"props":2390,"children":2391},{"class":321,"line":750},[2392,2396,2400],{"type":52,"tag":319,"props":2393,"children":2394},{"style":332},[2395],{"type":58,"value":482},{"type":52,"tag":319,"props":2397,"children":2398},{"style":338},[2399],{"type":58,"value":735},{"type":52,"tag":319,"props":2401,"children":2402},{"style":332},[2403],{"type":58,"value":390},{"type":52,"tag":319,"props":2405,"children":2406},{"class":321,"line":759},[2407],{"type":52,"tag":319,"props":2408,"children":2409},{"emptyLinePlaceholder":397},[2410],{"type":58,"value":400},{"type":52,"tag":319,"props":2412,"children":2413},{"class":321,"line":800},[2414],{"type":52,"tag":319,"props":2415,"children":2416},{"style":540},[2417],{"type":58,"value":2418},"\u002F\u002F 3. Fee payer signs (different method)\n",{"type":52,"tag":319,"props":2420,"children":2421},{"class":321,"line":23},[2422,2426,2431,2435,2439,2443,2447,2451,2456,2460],{"type":52,"tag":319,"props":2423,"children":2424},{"style":407},[2425],{"type":58,"value":410},{"type":52,"tag":319,"props":2427,"children":2428},{"style":338},[2429],{"type":58,"value":2430}," feePayerAuth ",{"type":52,"tag":319,"props":2432,"children":2433},{"style":332},[2434],{"type":58,"value":420},{"type":52,"tag":319,"props":2436,"children":2437},{"style":338},[2438],{"type":58,"value":570},{"type":52,"tag":319,"props":2440,"children":2441},{"style":332},[2442],{"type":58,"value":126},{"type":52,"tag":319,"props":2444,"children":2445},{"style":338},[2446],{"type":58,"value":42},{"type":52,"tag":319,"props":2448,"children":2449},{"style":332},[2450],{"type":58,"value":126},{"type":52,"tag":319,"props":2452,"children":2453},{"style":428},[2454],{"type":58,"value":2455},"signAsFeePayer",{"type":52,"tag":319,"props":2457,"children":2458},{"style":338},[2459],{"type":58,"value":435},{"type":52,"tag":319,"props":2461,"children":2462},{"style":332},[2463],{"type":58,"value":605},{"type":52,"tag":319,"props":2465,"children":2466},{"class":321,"line":829},[2467,2471,2475,2480],{"type":52,"tag":319,"props":2468,"children":2469},{"style":456},[2470],{"type":58,"value":806},{"type":52,"tag":319,"props":2472,"children":2473},{"style":332},[2474],{"type":58,"value":464},{"type":52,"tag":319,"props":2476,"children":2477},{"style":338},[2478],{"type":58,"value":2479}," feePayer",{"type":52,"tag":319,"props":2481,"children":2482},{"style":332},[2483],{"type":58,"value":636},{"type":52,"tag":319,"props":2485,"children":2486},{"class":321,"line":845},[2487],{"type":52,"tag":319,"props":2488,"children":2489},{"style":338},[2490],{"type":58,"value":826},{"type":52,"tag":319,"props":2492,"children":2493},{"class":321,"line":853},[2494,2498,2502],{"type":52,"tag":319,"props":2495,"children":2496},{"style":332},[2497],{"type":58,"value":482},{"type":52,"tag":319,"props":2499,"children":2500},{"style":338},[2501],{"type":58,"value":735},{"type":52,"tag":319,"props":2503,"children":2504},{"style":332},[2505],{"type":58,"value":390},{"type":52,"tag":319,"props":2507,"children":2508},{"class":321,"line":862},[2509],{"type":52,"tag":319,"props":2510,"children":2511},{"emptyLinePlaceholder":397},[2512],{"type":58,"value":400},{"type":52,"tag":319,"props":2514,"children":2515},{"class":321,"line":903},[2516],{"type":52,"tag":319,"props":2517,"children":2518},{"style":540},[2519],{"type":58,"value":2520},"\u002F\u002F 4. Submit with both authenticators\n",{"type":52,"tag":319,"props":2522,"children":2523},{"class":321,"line":930},[2524,2528,2532,2536,2540,2544,2548,2552,2556,2560,2564,2568,2572],{"type":52,"tag":319,"props":2525,"children":2526},{"style":407},[2527],{"type":58,"value":410},{"type":52,"tag":319,"props":2529,"children":2530},{"style":338},[2531],{"type":58,"value":769},{"type":52,"tag":319,"props":2533,"children":2534},{"style":332},[2535],{"type":58,"value":420},{"type":52,"tag":319,"props":2537,"children":2538},{"style":326},[2539],{"type":58,"value":565},{"type":52,"tag":319,"props":2541,"children":2542},{"style":338},[2543],{"type":58,"value":570},{"type":52,"tag":319,"props":2545,"children":2546},{"style":332},[2547],{"type":58,"value":126},{"type":52,"tag":319,"props":2549,"children":2550},{"style":338},[2551],{"type":58,"value":42},{"type":52,"tag":319,"props":2553,"children":2554},{"style":332},[2555],{"type":58,"value":126},{"type":52,"tag":319,"props":2557,"children":2558},{"style":338},[2559],{"type":58,"value":43},{"type":52,"tag":319,"props":2561,"children":2562},{"style":332},[2563],{"type":58,"value":126},{"type":52,"tag":319,"props":2565,"children":2566},{"style":428},[2567],{"type":58,"value":596},{"type":52,"tag":319,"props":2569,"children":2570},{"style":338},[2571],{"type":58,"value":435},{"type":52,"tag":319,"props":2573,"children":2574},{"style":332},[2575],{"type":58,"value":605},{"type":52,"tag":319,"props":2577,"children":2578},{"class":321,"line":946},[2579,2584],{"type":52,"tag":319,"props":2580,"children":2581},{"style":338},[2582],{"type":58,"value":2583},"  transaction",{"type":52,"tag":319,"props":2585,"children":2586},{"style":332},[2587],{"type":58,"value":636},{"type":52,"tag":319,"props":2589,"children":2590},{"class":321,"line":954},[2591,2596,2600,2605],{"type":52,"tag":319,"props":2592,"children":2593},{"style":456},[2594],{"type":58,"value":2595},"  senderAuthenticator",{"type":52,"tag":319,"props":2597,"children":2598},{"style":332},[2599],{"type":58,"value":464},{"type":52,"tag":319,"props":2601,"children":2602},{"style":338},[2603],{"type":58,"value":2604}," senderAuth",{"type":52,"tag":319,"props":2606,"children":2607},{"style":332},[2608],{"type":58,"value":636},{"type":52,"tag":319,"props":2610,"children":2611},{"class":321,"line":991},[2612,2617,2621],{"type":52,"tag":319,"props":2613,"children":2614},{"style":456},[2615],{"type":58,"value":2616},"  feePayerAuthenticator",{"type":52,"tag":319,"props":2618,"children":2619},{"style":332},[2620],{"type":58,"value":464},{"type":52,"tag":319,"props":2622,"children":2623},{"style":338},[2624],{"type":58,"value":2625}," feePayerAuth\n",{"type":52,"tag":319,"props":2627,"children":2628},{"class":321,"line":1052},[2629,2633,2637],{"type":52,"tag":319,"props":2630,"children":2631},{"style":332},[2632],{"type":58,"value":482},{"type":52,"tag":319,"props":2634,"children":2635},{"style":338},[2636],{"type":58,"value":735},{"type":52,"tag":319,"props":2638,"children":2639},{"style":332},[2640],{"type":58,"value":390},{"type":52,"tag":319,"props":2642,"children":2644},{"class":321,"line":2643},29,[2645],{"type":52,"tag":319,"props":2646,"children":2647},{"emptyLinePlaceholder":397},[2648],{"type":58,"value":400},{"type":52,"tag":319,"props":2650,"children":2652},{"class":321,"line":2651},30,[2653,2658,2662,2666,2670,2674,2678,2683,2687,2691,2695,2700,2704,2708],{"type":52,"tag":319,"props":2654,"children":2655},{"style":326},[2656],{"type":58,"value":2657},"await",{"type":52,"tag":319,"props":2659,"children":2660},{"style":338},[2661],{"type":58,"value":570},{"type":52,"tag":319,"props":2663,"children":2664},{"style":332},[2665],{"type":58,"value":126},{"type":52,"tag":319,"props":2667,"children":2668},{"style":428},[2669],{"type":58,"value":248},{"type":52,"tag":319,"props":2671,"children":2672},{"style":338},[2673],{"type":58,"value":435},{"type":52,"tag":319,"props":2675,"children":2676},{"style":332},[2677],{"type":58,"value":453},{"type":52,"tag":319,"props":2679,"children":2680},{"style":456},[2681],{"type":58,"value":2682}," transactionHash",{"type":52,"tag":319,"props":2684,"children":2685},{"style":332},[2686],{"type":58,"value":464},{"type":52,"tag":319,"props":2688,"children":2689},{"style":338},[2690],{"type":58,"value":918},{"type":52,"tag":319,"props":2692,"children":2693},{"style":332},[2694],{"type":58,"value":126},{"type":52,"tag":319,"props":2696,"children":2697},{"style":338},[2698],{"type":58,"value":2699},"hash ",{"type":52,"tag":319,"props":2701,"children":2702},{"style":332},[2703],{"type":58,"value":482},{"type":52,"tag":319,"props":2705,"children":2706},{"style":338},[2707],{"type":58,"value":735},{"type":52,"tag":319,"props":2709,"children":2710},{"style":332},[2711],{"type":58,"value":390},{"type":52,"tag":299,"props":2713,"children":2714},{},[],{"type":52,"tag":61,"props":2716,"children":2718},{"id":2717},"multi-agent-transactions",[2719],{"type":58,"value":2720},"Multi-agent transactions",{"type":52,"tag":309,"props":2722,"children":2724},{"className":311,"code":2723,"language":15,"meta":313,"style":313},"const transaction = await aptos.transaction.build.multiAgent({\n  sender: alice.accountAddress,\n  secondarySignerAddresses: [bob.accountAddress],\n  data: {\n    function: `${MODULE_ADDRESS}::escrow::exchange`,\n    functionArguments: [itemAddress, amount]\n  }\n});\n\nconst aliceAuth = aptos.transaction.sign({ signer: alice, transaction });\nconst bobAuth = aptos.transaction.sign({ signer: bob, transaction });\n\nconst pendingTx = await aptos.transaction.submit.multiAgent({\n  transaction,\n  senderAuthenticator: aliceAuth,\n  additionalSignersAuthenticators: [bobAuth]\n});\n\nawait aptos.waitForTransaction({ transactionHash: pendingTx.hash });\n",[2725],{"type":52,"tag":82,"props":2726,"children":2727},{"__ignoreMap":313},[2728,2784,2812,2842,2857,2893,2917,2924,2939,2946,3023,3100,3107,3162,3173,3193,3210,3225,3232],{"type":52,"tag":319,"props":2729,"children":2730},{"class":321,"line":322},[2731,2735,2739,2743,2747,2751,2755,2759,2763,2767,2771,2776,2780],{"type":52,"tag":319,"props":2732,"children":2733},{"style":407},[2734],{"type":58,"value":410},{"type":52,"tag":319,"props":2736,"children":2737},{"style":338},[2738],{"type":58,"value":556},{"type":52,"tag":319,"props":2740,"children":2741},{"style":332},[2742],{"type":58,"value":420},{"type":52,"tag":319,"props":2744,"children":2745},{"style":326},[2746],{"type":58,"value":565},{"type":52,"tag":319,"props":2748,"children":2749},{"style":338},[2750],{"type":58,"value":570},{"type":52,"tag":319,"props":2752,"children":2753},{"style":332},[2754],{"type":58,"value":126},{"type":52,"tag":319,"props":2756,"children":2757},{"style":338},[2758],{"type":58,"value":42},{"type":52,"tag":319,"props":2760,"children":2761},{"style":332},[2762],{"type":58,"value":126},{"type":52,"tag":319,"props":2764,"children":2765},{"style":338},[2766],{"type":58,"value":587},{"type":52,"tag":319,"props":2768,"children":2769},{"style":332},[2770],{"type":58,"value":126},{"type":52,"tag":319,"props":2772,"children":2773},{"style":428},[2774],{"type":58,"value":2775},"multiAgent",{"type":52,"tag":319,"props":2777,"children":2778},{"style":338},[2779],{"type":58,"value":435},{"type":52,"tag":319,"props":2781,"children":2782},{"style":332},[2783],{"type":58,"value":605},{"type":52,"tag":319,"props":2785,"children":2786},{"class":321,"line":393},[2787,2791,2795,2800,2804,2808],{"type":52,"tag":319,"props":2788,"children":2789},{"style":456},[2790],{"type":58,"value":613},{"type":52,"tag":319,"props":2792,"children":2793},{"style":332},[2794],{"type":58,"value":464},{"type":52,"tag":319,"props":2796,"children":2797},{"style":338},[2798],{"type":58,"value":2799}," alice",{"type":52,"tag":319,"props":2801,"children":2802},{"style":332},[2803],{"type":58,"value":126},{"type":52,"tag":319,"props":2805,"children":2806},{"style":338},[2807],{"type":58,"value":631},{"type":52,"tag":319,"props":2809,"children":2810},{"style":332},[2811],{"type":58,"value":636},{"type":52,"tag":319,"props":2813,"children":2814},{"class":321,"line":403},[2815,2820,2824,2829,2833,2838],{"type":52,"tag":319,"props":2816,"children":2817},{"style":456},[2818],{"type":58,"value":2819},"  secondarySignerAddresses",{"type":52,"tag":319,"props":2821,"children":2822},{"style":332},[2823],{"type":58,"value":464},{"type":52,"tag":319,"props":2825,"children":2826},{"style":338},[2827],{"type":58,"value":2828}," [bob",{"type":52,"tag":319,"props":2830,"children":2831},{"style":332},[2832],{"type":58,"value":126},{"type":52,"tag":319,"props":2834,"children":2835},{"style":338},[2836],{"type":58,"value":2837},"accountAddress]",{"type":52,"tag":319,"props":2839,"children":2840},{"style":332},[2841],{"type":58,"value":636},{"type":52,"tag":319,"props":2843,"children":2844},{"class":321,"line":494},[2845,2849,2853],{"type":52,"tag":319,"props":2846,"children":2847},{"style":456},[2848],{"type":58,"value":645},{"type":52,"tag":319,"props":2850,"children":2851},{"style":332},[2852],{"type":58,"value":464},{"type":52,"tag":319,"props":2854,"children":2855},{"style":332},[2856],{"type":58,"value":654},{"type":52,"tag":319,"props":2858,"children":2859},{"class":321,"line":528},[2860,2864,2868,2872,2876,2880,2885,2889],{"type":52,"tag":319,"props":2861,"children":2862},{"style":456},[2863],{"type":58,"value":663},{"type":52,"tag":319,"props":2865,"children":2866},{"style":332},[2867],{"type":58,"value":464},{"type":52,"tag":319,"props":2869,"children":2870},{"style":332},[2871],{"type":58,"value":672},{"type":52,"tag":319,"props":2873,"children":2874},{"style":338},[2875],{"type":58,"value":677},{"type":52,"tag":319,"props":2877,"children":2878},{"style":332},[2879],{"type":58,"value":482},{"type":52,"tag":319,"props":2881,"children":2882},{"style":378},[2883],{"type":58,"value":2884},"::escrow::exchange",{"type":52,"tag":319,"props":2886,"children":2887},{"style":332},[2888],{"type":58,"value":691},{"type":52,"tag":319,"props":2890,"children":2891},{"style":332},[2892],{"type":58,"value":636},{"type":52,"tag":319,"props":2894,"children":2895},{"class":321,"line":536},[2896,2900,2904,2909,2913],{"type":52,"tag":319,"props":2897,"children":2898},{"style":456},[2899],{"type":58,"value":704},{"type":52,"tag":319,"props":2901,"children":2902},{"style":332},[2903],{"type":58,"value":464},{"type":52,"tag":319,"props":2905,"children":2906},{"style":338},[2907],{"type":58,"value":2908}," [itemAddress",{"type":52,"tag":319,"props":2910,"children":2911},{"style":332},[2912],{"type":58,"value":346},{"type":52,"tag":319,"props":2914,"children":2915},{"style":338},[2916],{"type":58,"value":1271},{"type":52,"tag":319,"props":2918,"children":2919},{"class":321,"line":546},[2920],{"type":52,"tag":319,"props":2921,"children":2922},{"style":332},[2923],{"type":58,"value":722},{"type":52,"tag":319,"props":2925,"children":2926},{"class":321,"line":27},[2927,2931,2935],{"type":52,"tag":319,"props":2928,"children":2929},{"style":332},[2930],{"type":58,"value":482},{"type":52,"tag":319,"props":2932,"children":2933},{"style":338},[2934],{"type":58,"value":735},{"type":52,"tag":319,"props":2936,"children":2937},{"style":332},[2938],{"type":58,"value":390},{"type":52,"tag":319,"props":2940,"children":2941},{"class":321,"line":639},[2942],{"type":52,"tag":319,"props":2943,"children":2944},{"emptyLinePlaceholder":397},[2945],{"type":58,"value":400},{"type":52,"tag":319,"props":2947,"children":2948},{"class":321,"line":657},[2949,2953,2958,2962,2966,2970,2974,2978,2982,2986,2990,2995,2999,3003,3007,3011,3015,3019],{"type":52,"tag":319,"props":2950,"children":2951},{"style":407},[2952],{"type":58,"value":410},{"type":52,"tag":319,"props":2954,"children":2955},{"style":338},[2956],{"type":58,"value":2957}," aliceAuth ",{"type":52,"tag":319,"props":2959,"children":2960},{"style":332},[2961],{"type":58,"value":420},{"type":52,"tag":319,"props":2963,"children":2964},{"style":338},[2965],{"type":58,"value":570},{"type":52,"tag":319,"props":2967,"children":2968},{"style":332},[2969],{"type":58,"value":126},{"type":52,"tag":319,"props":2971,"children":2972},{"style":338},[2973],{"type":58,"value":42},{"type":52,"tag":319,"props":2975,"children":2976},{"style":332},[2977],{"type":58,"value":126},{"type":52,"tag":319,"props":2979,"children":2980},{"style":428},[2981],{"type":58,"value":2354},{"type":52,"tag":319,"props":2983,"children":2984},{"style":338},[2985],{"type":58,"value":435},{"type":52,"tag":319,"props":2987,"children":2988},{"style":332},[2989],{"type":58,"value":453},{"type":52,"tag":319,"props":2991,"children":2992},{"style":456},[2993],{"type":58,"value":2994}," signer",{"type":52,"tag":319,"props":2996,"children":2997},{"style":332},[2998],{"type":58,"value":464},{"type":52,"tag":319,"props":3000,"children":3001},{"style":338},[3002],{"type":58,"value":2799},{"type":52,"tag":319,"props":3004,"children":3005},{"style":332},[3006],{"type":58,"value":346},{"type":52,"tag":319,"props":3008,"children":3009},{"style":338},[3010],{"type":58,"value":556},{"type":52,"tag":319,"props":3012,"children":3013},{"style":332},[3014],{"type":58,"value":482},{"type":52,"tag":319,"props":3016,"children":3017},{"style":338},[3018],{"type":58,"value":735},{"type":52,"tag":319,"props":3020,"children":3021},{"style":332},[3022],{"type":58,"value":390},{"type":52,"tag":319,"props":3024,"children":3025},{"class":321,"line":698},[3026,3030,3035,3039,3043,3047,3051,3055,3059,3063,3067,3071,3075,3080,3084,3088,3092,3096],{"type":52,"tag":319,"props":3027,"children":3028},{"style":407},[3029],{"type":58,"value":410},{"type":52,"tag":319,"props":3031,"children":3032},{"style":338},[3033],{"type":58,"value":3034}," bobAuth ",{"type":52,"tag":319,"props":3036,"children":3037},{"style":332},[3038],{"type":58,"value":420},{"type":52,"tag":319,"props":3040,"children":3041},{"style":338},[3042],{"type":58,"value":570},{"type":52,"tag":319,"props":3044,"children":3045},{"style":332},[3046],{"type":58,"value":126},{"type":52,"tag":319,"props":3048,"children":3049},{"style":338},[3050],{"type":58,"value":42},{"type":52,"tag":319,"props":3052,"children":3053},{"style":332},[3054],{"type":58,"value":126},{"type":52,"tag":319,"props":3056,"children":3057},{"style":428},[3058],{"type":58,"value":2354},{"type":52,"tag":319,"props":3060,"children":3061},{"style":338},[3062],{"type":58,"value":435},{"type":52,"tag":319,"props":3064,"children":3065},{"style":332},[3066],{"type":58,"value":453},{"type":52,"tag":319,"props":3068,"children":3069},{"style":456},[3070],{"type":58,"value":2994},{"type":52,"tag":319,"props":3072,"children":3073},{"style":332},[3074],{"type":58,"value":464},{"type":52,"tag":319,"props":3076,"children":3077},{"style":338},[3078],{"type":58,"value":3079}," bob",{"type":52,"tag":319,"props":3081,"children":3082},{"style":332},[3083],{"type":58,"value":346},{"type":52,"tag":319,"props":3085,"children":3086},{"style":338},[3087],{"type":58,"value":556},{"type":52,"tag":319,"props":3089,"children":3090},{"style":332},[3091],{"type":58,"value":482},{"type":52,"tag":319,"props":3093,"children":3094},{"style":338},[3095],{"type":58,"value":735},{"type":52,"tag":319,"props":3097,"children":3098},{"style":332},[3099],{"type":58,"value":390},{"type":52,"tag":319,"props":3101,"children":3102},{"class":321,"line":716},[3103],{"type":52,"tag":319,"props":3104,"children":3105},{"emptyLinePlaceholder":397},[3106],{"type":58,"value":400},{"type":52,"tag":319,"props":3108,"children":3109},{"class":321,"line":725},[3110,3114,3118,3122,3126,3130,3134,3138,3142,3146,3150,3154,3158],{"type":52,"tag":319,"props":3111,"children":3112},{"style":407},[3113],{"type":58,"value":410},{"type":52,"tag":319,"props":3115,"children":3116},{"style":338},[3117],{"type":58,"value":769},{"type":52,"tag":319,"props":3119,"children":3120},{"style":332},[3121],{"type":58,"value":420},{"type":52,"tag":319,"props":3123,"children":3124},{"style":326},[3125],{"type":58,"value":565},{"type":52,"tag":319,"props":3127,"children":3128},{"style":338},[3129],{"type":58,"value":570},{"type":52,"tag":319,"props":3131,"children":3132},{"style":332},[3133],{"type":58,"value":126},{"type":52,"tag":319,"props":3135,"children":3136},{"style":338},[3137],{"type":58,"value":42},{"type":52,"tag":319,"props":3139,"children":3140},{"style":332},[3141],{"type":58,"value":126},{"type":52,"tag":319,"props":3143,"children":3144},{"style":338},[3145],{"type":58,"value":43},{"type":52,"tag":319,"props":3147,"children":3148},{"style":332},[3149],{"type":58,"value":126},{"type":52,"tag":319,"props":3151,"children":3152},{"style":428},[3153],{"type":58,"value":2775},{"type":52,"tag":319,"props":3155,"children":3156},{"style":338},[3157],{"type":58,"value":435},{"type":52,"tag":319,"props":3159,"children":3160},{"style":332},[3161],{"type":58,"value":605},{"type":52,"tag":319,"props":3163,"children":3164},{"class":321,"line":742},[3165,3169],{"type":52,"tag":319,"props":3166,"children":3167},{"style":338},[3168],{"type":58,"value":2583},{"type":52,"tag":319,"props":3170,"children":3171},{"style":332},[3172],{"type":58,"value":636},{"type":52,"tag":319,"props":3174,"children":3175},{"class":321,"line":750},[3176,3180,3184,3189],{"type":52,"tag":319,"props":3177,"children":3178},{"style":456},[3179],{"type":58,"value":2595},{"type":52,"tag":319,"props":3181,"children":3182},{"style":332},[3183],{"type":58,"value":464},{"type":52,"tag":319,"props":3185,"children":3186},{"style":338},[3187],{"type":58,"value":3188}," aliceAuth",{"type":52,"tag":319,"props":3190,"children":3191},{"style":332},[3192],{"type":58,"value":636},{"type":52,"tag":319,"props":3194,"children":3195},{"class":321,"line":759},[3196,3201,3205],{"type":52,"tag":319,"props":3197,"children":3198},{"style":456},[3199],{"type":58,"value":3200},"  additionalSignersAuthenticators",{"type":52,"tag":319,"props":3202,"children":3203},{"style":332},[3204],{"type":58,"value":464},{"type":52,"tag":319,"props":3206,"children":3207},{"style":338},[3208],{"type":58,"value":3209}," [bobAuth]\n",{"type":52,"tag":319,"props":3211,"children":3212},{"class":321,"line":800},[3213,3217,3221],{"type":52,"tag":319,"props":3214,"children":3215},{"style":332},[3216],{"type":58,"value":482},{"type":52,"tag":319,"props":3218,"children":3219},{"style":338},[3220],{"type":58,"value":735},{"type":52,"tag":319,"props":3222,"children":3223},{"style":332},[3224],{"type":58,"value":390},{"type":52,"tag":319,"props":3226,"children":3227},{"class":321,"line":23},[3228],{"type":52,"tag":319,"props":3229,"children":3230},{"emptyLinePlaceholder":397},[3231],{"type":58,"value":400},{"type":52,"tag":319,"props":3233,"children":3234},{"class":321,"line":829},[3235,3239,3243,3247,3251,3255,3259,3263,3267,3271,3275,3279,3283,3287],{"type":52,"tag":319,"props":3236,"children":3237},{"style":326},[3238],{"type":58,"value":2657},{"type":52,"tag":319,"props":3240,"children":3241},{"style":338},[3242],{"type":58,"value":570},{"type":52,"tag":319,"props":3244,"children":3245},{"style":332},[3246],{"type":58,"value":126},{"type":52,"tag":319,"props":3248,"children":3249},{"style":428},[3250],{"type":58,"value":248},{"type":52,"tag":319,"props":3252,"children":3253},{"style":338},[3254],{"type":58,"value":435},{"type":52,"tag":319,"props":3256,"children":3257},{"style":332},[3258],{"type":58,"value":453},{"type":52,"tag":319,"props":3260,"children":3261},{"style":456},[3262],{"type":58,"value":2682},{"type":52,"tag":319,"props":3264,"children":3265},{"style":332},[3266],{"type":58,"value":464},{"type":52,"tag":319,"props":3268,"children":3269},{"style":338},[3270],{"type":58,"value":918},{"type":52,"tag":319,"props":3272,"children":3273},{"style":332},[3274],{"type":58,"value":126},{"type":52,"tag":319,"props":3276,"children":3277},{"style":338},[3278],{"type":58,"value":2699},{"type":52,"tag":319,"props":3280,"children":3281},{"style":332},[3282],{"type":58,"value":482},{"type":52,"tag":319,"props":3284,"children":3285},{"style":338},[3286],{"type":58,"value":735},{"type":52,"tag":319,"props":3288,"children":3289},{"style":332},[3290],{"type":58,"value":390},{"type":52,"tag":299,"props":3292,"children":3293},{},[],{"type":52,"tag":61,"props":3295,"children":3297},{"id":3296},"waitfortransaction-options",[3298],{"type":58,"value":3299},"waitForTransaction options",{"type":52,"tag":309,"props":3301,"children":3303},{"className":311,"code":3302,"language":15,"meta":313,"style":313},"const committed = await aptos.waitForTransaction({\n  transactionHash: pendingTx.hash,\n  options: {\n    timeoutSecs: 60,\n    checkSuccess: true \u002F\u002F throw if tx failed\n  }\n});\n",[3304],{"type":52,"tag":82,"props":3305,"children":3306},{"__ignoreMap":313},[3307,3347,3375,3390,3411,3432,3439],{"type":52,"tag":319,"props":3308,"children":3309},{"class":321,"line":322},[3310,3314,3319,3323,3327,3331,3335,3339,3343],{"type":52,"tag":319,"props":3311,"children":3312},{"style":407},[3313],{"type":58,"value":410},{"type":52,"tag":319,"props":3315,"children":3316},{"style":338},[3317],{"type":58,"value":3318}," committed ",{"type":52,"tag":319,"props":3320,"children":3321},{"style":332},[3322],{"type":58,"value":420},{"type":52,"tag":319,"props":3324,"children":3325},{"style":326},[3326],{"type":58,"value":565},{"type":52,"tag":319,"props":3328,"children":3329},{"style":338},[3330],{"type":58,"value":570},{"type":52,"tag":319,"props":3332,"children":3333},{"style":332},[3334],{"type":58,"value":126},{"type":52,"tag":319,"props":3336,"children":3337},{"style":428},[3338],{"type":58,"value":248},{"type":52,"tag":319,"props":3340,"children":3341},{"style":338},[3342],{"type":58,"value":435},{"type":52,"tag":319,"props":3344,"children":3345},{"style":332},[3346],{"type":58,"value":605},{"type":52,"tag":319,"props":3348,"children":3349},{"class":321,"line":393},[3350,3354,3358,3362,3366,3371],{"type":52,"tag":319,"props":3351,"children":3352},{"style":456},[3353],{"type":58,"value":909},{"type":52,"tag":319,"props":3355,"children":3356},{"style":332},[3357],{"type":58,"value":464},{"type":52,"tag":319,"props":3359,"children":3360},{"style":338},[3361],{"type":58,"value":918},{"type":52,"tag":319,"props":3363,"children":3364},{"style":332},[3365],{"type":58,"value":126},{"type":52,"tag":319,"props":3367,"children":3368},{"style":338},[3369],{"type":58,"value":3370},"hash",{"type":52,"tag":319,"props":3372,"children":3373},{"style":332},[3374],{"type":58,"value":636},{"type":52,"tag":319,"props":3376,"children":3377},{"class":321,"line":403},[3378,3382,3386],{"type":52,"tag":319,"props":3379,"children":3380},{"style":456},[3381],{"type":58,"value":1459},{"type":52,"tag":319,"props":3383,"children":3384},{"style":332},[3385],{"type":58,"value":464},{"type":52,"tag":319,"props":3387,"children":3388},{"style":332},[3389],{"type":58,"value":654},{"type":52,"tag":319,"props":3391,"children":3392},{"class":321,"line":494},[3393,3398,3402,3407],{"type":52,"tag":319,"props":3394,"children":3395},{"style":456},[3396],{"type":58,"value":3397},"    timeoutSecs",{"type":52,"tag":319,"props":3399,"children":3400},{"style":332},[3401],{"type":58,"value":464},{"type":52,"tag":319,"props":3403,"children":3404},{"style":1482},[3405],{"type":58,"value":3406}," 60",{"type":52,"tag":319,"props":3408,"children":3409},{"style":332},[3410],{"type":58,"value":636},{"type":52,"tag":319,"props":3412,"children":3413},{"class":321,"line":528},[3414,3419,3423,3427],{"type":52,"tag":319,"props":3415,"children":3416},{"style":456},[3417],{"type":58,"value":3418},"    checkSuccess",{"type":52,"tag":319,"props":3420,"children":3421},{"style":332},[3422],{"type":58,"value":464},{"type":52,"tag":319,"props":3424,"children":3425},{"style":2208},[3426],{"type":58,"value":2211},{"type":52,"tag":319,"props":3428,"children":3429},{"style":540},[3430],{"type":58,"value":3431}," \u002F\u002F throw if tx failed\n",{"type":52,"tag":319,"props":3433,"children":3434},{"class":321,"line":536},[3435],{"type":52,"tag":319,"props":3436,"children":3437},{"style":332},[3438],{"type":58,"value":722},{"type":52,"tag":319,"props":3440,"children":3441},{"class":321,"line":546},[3442,3446,3450],{"type":52,"tag":319,"props":3443,"children":3444},{"style":332},[3445],{"type":58,"value":482},{"type":52,"tag":319,"props":3447,"children":3448},{"style":338},[3449],{"type":58,"value":735},{"type":52,"tag":319,"props":3451,"children":3452},{"style":332},[3453],{"type":58,"value":390},{"type":52,"tag":299,"props":3455,"children":3456},{},[],{"type":52,"tag":61,"props":3458,"children":3460},{"id":3459},"gas-profiling",[3461],{"type":58,"value":3462},"Gas profiling",{"type":52,"tag":309,"props":3464,"children":3466},{"className":311,"code":3465,"language":15,"meta":313,"style":313},"const gasProfile = await aptos.gasProfile({\n  sender: account.accountAddress,\n  data: {\n    function: `${MODULE_ADDRESS}::module::function_name`,\n    functionArguments: []\n  }\n});\nconsole.log(\"Gas profile:\", gasProfile);\n",[3467],{"type":52,"tag":82,"props":3468,"children":3469},{"__ignoreMap":313},[3470,3511,3538,3553,3589,3604,3611,3626],{"type":52,"tag":319,"props":3471,"children":3472},{"class":321,"line":322},[3473,3477,3482,3486,3490,3494,3498,3503,3507],{"type":52,"tag":319,"props":3474,"children":3475},{"style":407},[3476],{"type":58,"value":410},{"type":52,"tag":319,"props":3478,"children":3479},{"style":338},[3480],{"type":58,"value":3481}," gasProfile ",{"type":52,"tag":319,"props":3483,"children":3484},{"style":332},[3485],{"type":58,"value":420},{"type":52,"tag":319,"props":3487,"children":3488},{"style":326},[3489],{"type":58,"value":565},{"type":52,"tag":319,"props":3491,"children":3492},{"style":338},[3493],{"type":58,"value":570},{"type":52,"tag":319,"props":3495,"children":3496},{"style":332},[3497],{"type":58,"value":126},{"type":52,"tag":319,"props":3499,"children":3500},{"style":428},[3501],{"type":58,"value":3502},"gasProfile",{"type":52,"tag":319,"props":3504,"children":3505},{"style":338},[3506],{"type":58,"value":435},{"type":52,"tag":319,"props":3508,"children":3509},{"style":332},[3510],{"type":58,"value":605},{"type":52,"tag":319,"props":3512,"children":3513},{"class":321,"line":393},[3514,3518,3522,3526,3530,3534],{"type":52,"tag":319,"props":3515,"children":3516},{"style":456},[3517],{"type":58,"value":613},{"type":52,"tag":319,"props":3519,"children":3520},{"style":332},[3521],{"type":58,"value":464},{"type":52,"tag":319,"props":3523,"children":3524},{"style":338},[3525],{"type":58,"value":622},{"type":52,"tag":319,"props":3527,"children":3528},{"style":332},[3529],{"type":58,"value":126},{"type":52,"tag":319,"props":3531,"children":3532},{"style":338},[3533],{"type":58,"value":631},{"type":52,"tag":319,"props":3535,"children":3536},{"style":332},[3537],{"type":58,"value":636},{"type":52,"tag":319,"props":3539,"children":3540},{"class":321,"line":403},[3541,3545,3549],{"type":52,"tag":319,"props":3542,"children":3543},{"style":456},[3544],{"type":58,"value":645},{"type":52,"tag":319,"props":3546,"children":3547},{"style":332},[3548],{"type":58,"value":464},{"type":52,"tag":319,"props":3550,"children":3551},{"style":332},[3552],{"type":58,"value":654},{"type":52,"tag":319,"props":3554,"children":3555},{"class":321,"line":494},[3556,3560,3564,3568,3572,3576,3581,3585],{"type":52,"tag":319,"props":3557,"children":3558},{"style":456},[3559],{"type":58,"value":663},{"type":52,"tag":319,"props":3561,"children":3562},{"style":332},[3563],{"type":58,"value":464},{"type":52,"tag":319,"props":3565,"children":3566},{"style":332},[3567],{"type":58,"value":672},{"type":52,"tag":319,"props":3569,"children":3570},{"style":338},[3571],{"type":58,"value":677},{"type":52,"tag":319,"props":3573,"children":3574},{"style":332},[3575],{"type":58,"value":482},{"type":52,"tag":319,"props":3577,"children":3578},{"style":378},[3579],{"type":58,"value":3580},"::module::function_name",{"type":52,"tag":319,"props":3582,"children":3583},{"style":332},[3584],{"type":58,"value":691},{"type":52,"tag":319,"props":3586,"children":3587},{"style":332},[3588],{"type":58,"value":636},{"type":52,"tag":319,"props":3590,"children":3591},{"class":321,"line":528},[3592,3596,3600],{"type":52,"tag":319,"props":3593,"children":3594},{"style":456},[3595],{"type":58,"value":704},{"type":52,"tag":319,"props":3597,"children":3598},{"style":332},[3599],{"type":58,"value":464},{"type":52,"tag":319,"props":3601,"children":3602},{"style":338},[3603],{"type":58,"value":713},{"type":52,"tag":319,"props":3605,"children":3606},{"class":321,"line":536},[3607],{"type":52,"tag":319,"props":3608,"children":3609},{"style":332},[3610],{"type":58,"value":722},{"type":52,"tag":319,"props":3612,"children":3613},{"class":321,"line":546},[3614,3618,3622],{"type":52,"tag":319,"props":3615,"children":3616},{"style":332},[3617],{"type":58,"value":482},{"type":52,"tag":319,"props":3619,"children":3620},{"style":338},[3621],{"type":58,"value":735},{"type":52,"tag":319,"props":3623,"children":3624},{"style":332},[3625],{"type":58,"value":390},{"type":52,"tag":319,"props":3627,"children":3628},{"class":321,"line":27},[3629,3633,3637,3641,3645,3649,3654,3658,3662,3667],{"type":52,"tag":319,"props":3630,"children":3631},{"style":338},[3632],{"type":58,"value":2038},{"type":52,"tag":319,"props":3634,"children":3635},{"style":332},[3636],{"type":58,"value":126},{"type":52,"tag":319,"props":3638,"children":3639},{"style":428},[3640],{"type":58,"value":2047},{"type":52,"tag":319,"props":3642,"children":3643},{"style":338},[3644],{"type":58,"value":435},{"type":52,"tag":319,"props":3646,"children":3647},{"style":332},[3648],{"type":58,"value":385},{"type":52,"tag":319,"props":3650,"children":3651},{"style":378},[3652],{"type":58,"value":3653},"Gas profile:",{"type":52,"tag":319,"props":3655,"children":3656},{"style":332},[3657],{"type":58,"value":385},{"type":52,"tag":319,"props":3659,"children":3660},{"style":332},[3661],{"type":58,"value":346},{"type":52,"tag":319,"props":3663,"children":3664},{"style":338},[3665],{"type":58,"value":3666}," gasProfile)",{"type":52,"tag":319,"props":3668,"children":3669},{"style":332},[3670],{"type":58,"value":390},{"type":52,"tag":299,"props":3672,"children":3673},{},[],{"type":52,"tag":61,"props":3675,"children":3677},{"id":3676},"common-mistakes",[3678],{"type":58,"value":3679},"Common mistakes",{"type":52,"tag":3681,"props":3682,"children":3683},"table",{},[3684,3703],{"type":52,"tag":3685,"props":3686,"children":3687},"thead",{},[3688],{"type":52,"tag":3689,"props":3690,"children":3691},"tr",{},[3692,3698],{"type":52,"tag":3693,"props":3694,"children":3695},"th",{},[3696],{"type":58,"value":3697},"Mistake",{"type":52,"tag":3693,"props":3699,"children":3700},{},[3701],{"type":58,"value":3702},"Correct approach",{"type":52,"tag":3704,"props":3705,"children":3706},"tbody",{},[3707,3727,3746,3759],{"type":52,"tag":3689,"props":3708,"children":3709},{},[3710,3716],{"type":52,"tag":3711,"props":3712,"children":3713},"td",{},[3714],{"type":58,"value":3715},"Not calling waitForTransaction",{"type":52,"tag":3711,"props":3717,"children":3718},{},[3719,3721],{"type":58,"value":3720},"Always wait and check ",{"type":52,"tag":82,"props":3722,"children":3724},{"className":3723},[],[3725],{"type":58,"value":3726},"committedTx.success",{"type":52,"tag":3689,"props":3728,"children":3729},{},[3730,3735],{"type":52,"tag":3711,"props":3731,"children":3732},{},[3733],{"type":58,"value":3734},"Using number for large amounts",{"type":52,"tag":3711,"props":3736,"children":3737},{},[3738,3739,3744],{"type":58,"value":134},{"type":52,"tag":82,"props":3740,"children":3742},{"className":3741},[],[3743],{"type":58,"value":295},{"type":58,"value":3745}," for u64\u002Fu128\u002Fu256 in functionArguments",{"type":52,"tag":3689,"props":3747,"children":3748},{},[3749,3754],{"type":52,"tag":3711,"props":3750,"children":3751},{},[3752],{"type":58,"value":3753},"Wrong signer for submit",{"type":52,"tag":3711,"props":3755,"children":3756},{},[3757],{"type":58,"value":3758},"Use the Account whose address is the sender (or fee payer \u002F additional signer as appropriate)",{"type":52,"tag":3689,"props":3760,"children":3761},{},[3762,3767],{"type":52,"tag":3711,"props":3763,"children":3764},{},[3765],{"type":58,"value":3766},"Assuming scriptComposer exists",{"type":52,"tag":3711,"props":3768,"children":3769},{},[3770],{"type":58,"value":3771},"Use separate transactions or batch; scriptComposer removed in v6",{"type":52,"tag":299,"props":3773,"children":3774},{},[],{"type":52,"tag":61,"props":3776,"children":3778},{"id":3777},"references",[3779],{"type":58,"value":3780},"References",{"type":52,"tag":3782,"props":3783,"children":3784},"ul",{},[3785,3811,3823],{"type":52,"tag":101,"props":3786,"children":3787},{},[3788,3790,3796,3798,3804,3805],{"type":58,"value":3789},"SDK: ",{"type":52,"tag":82,"props":3791,"children":3793},{"className":3792},[],[3794],{"type":58,"value":3795},"src\u002Fapi\u002Ftransaction.ts",{"type":58,"value":3797},", ",{"type":52,"tag":82,"props":3799,"children":3801},{"className":3800},[],[3802],{"type":58,"value":3803},"src\u002Finternal\u002FtransactionSubmission.ts",{"type":58,"value":3797},{"type":52,"tag":82,"props":3806,"children":3808},{"className":3807},[],[3809],{"type":58,"value":3810},"src\u002Finternal\u002Ftransaction.ts",{"type":52,"tag":101,"props":3812,"children":3813},{},[3814,3816],{"type":58,"value":3815},"Pattern: ",{"type":52,"tag":3817,"props":3818,"children":3820},"a",{"href":3819},"..\u002F..\u002F..\u002F..\u002Fpatterns\u002Ffullstack\u002FTYPESCRIPT_SDK.md",[3821],{"type":58,"value":3822},"TYPESCRIPT_SDK.md",{"type":52,"tag":101,"props":3824,"children":3825},{},[3826,3828,3834,3835,3841,3842,3848,3849],{"type":58,"value":3827},"Related: ",{"type":52,"tag":3817,"props":3829,"children":3831},{"href":3830},"..\u002Fts-sdk-account\u002FSKILL.md",[3832],{"type":58,"value":3833},"ts-sdk-account",{"type":58,"value":3797},{"type":52,"tag":3817,"props":3836,"children":3838},{"href":3837},"..\u002Fts-sdk-client\u002FSKILL.md",[3839],{"type":58,"value":3840},"ts-sdk-client",{"type":58,"value":636},{"type":52,"tag":3817,"props":3843,"children":3845},{"href":3844},"..\u002Fts-sdk-wallet-adapter\u002FSKILL.md",[3846],{"type":58,"value":3847},"ts-sdk-wallet-adapter",{"type":58,"value":3797},{"type":52,"tag":3817,"props":3850,"children":3852},{"href":3851},"..\u002Fuse-ts-sdk\u002FSKILL.md",[3853],{"type":58,"value":3854},"use-ts-sdk",{"type":52,"tag":3856,"props":3857,"children":3858},"style",{},[3859],{"type":58,"value":3860},"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":3862,"total":930},[3863,3878,3893,3907,3921,3935,3949,3964,3976,3989,3999,4008],{"slug":3864,"name":3864,"fn":3865,"description":3866,"org":3867,"tags":3868,"stars":23,"repoUrl":24,"updatedAt":3877},"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},[3869,3871,3874],{"name":3870,"slug":30,"type":16},"Blockchain",{"name":3872,"slug":3873,"type":16},"Performance","performance",{"name":3875,"slug":3876,"type":16},"Smart Contracts","smart-contracts","2026-07-12T08:07:14.117466",{"slug":3879,"name":3879,"fn":3880,"description":3881,"org":3882,"tags":3883,"stars":23,"repoUrl":24,"updatedAt":3892},"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},[3884,3887,3888,3891],{"name":3885,"slug":3886,"type":16},"Next.js","next-js",{"name":14,"slug":15,"type":16},{"name":3889,"slug":3890,"type":16},"Vite","vite",{"name":18,"slug":19,"type":16},"2026-07-12T08:07:30.595111",{"slug":3894,"name":3894,"fn":3895,"description":3896,"org":3897,"tags":3898,"stars":23,"repoUrl":24,"updatedAt":3906},"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},[3899,3902,3905],{"name":3900,"slug":3901,"type":16},"Deployment","deployment",{"name":3903,"slug":3904,"type":16},"Engineering","engineering",{"name":3875,"slug":3876,"type":16},"2026-07-12T08:07:16.798352",{"slug":3908,"name":3908,"fn":3909,"description":3910,"org":3911,"tags":3912,"stars":23,"repoUrl":24,"updatedAt":3920},"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},[3913,3914,3917],{"name":3903,"slug":3904,"type":16},{"name":3915,"slug":3916,"type":16},"QA","qa",{"name":3918,"slug":3919,"type":16},"Testing","testing","2026-07-12T08:07:18.0205",{"slug":3922,"name":3922,"fn":3923,"description":3924,"org":3925,"tags":3926,"stars":23,"repoUrl":24,"updatedAt":3934},"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},[3927,3930,3931],{"name":3928,"slug":3929,"type":16},"Code Analysis","code-analysis",{"name":3903,"slug":3904,"type":16},{"name":3932,"slug":3933,"type":16},"Migration","migration","2026-07-12T08:07:10.226223",{"slug":3936,"name":3936,"fn":3937,"description":3938,"org":3939,"tags":3940,"stars":23,"repoUrl":24,"updatedAt":3948},"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},[3941,3942,3945],{"name":3870,"slug":30,"type":16},{"name":3943,"slug":3944,"type":16},"Documentation","documentation",{"name":3946,"slug":3947,"type":16},"Search","search","2026-07-12T08:07:15.382039",{"slug":3950,"name":3950,"fn":3951,"description":3952,"org":3953,"tags":3954,"stars":23,"repoUrl":24,"updatedAt":3963},"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},[3955,3958,3959,3962],{"name":3956,"slug":3957,"type":16},"Audit","audit",{"name":3928,"slug":3929,"type":16},{"name":3960,"slug":3961,"type":16},"Security","security",{"name":3875,"slug":3876,"type":16},"2026-07-12T08:07:11.680215",{"slug":3965,"name":3965,"fn":3966,"description":3967,"org":3968,"tags":3969,"stars":23,"repoUrl":24,"updatedAt":3975},"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},[3970,3971,3974],{"name":21,"slug":22,"type":16},{"name":3972,"slug":3973,"type":16},"Payments","payments",{"name":18,"slug":19,"type":16},"2026-07-12T08:07:31.843242",{"slug":3833,"name":3833,"fn":3977,"description":3978,"org":3979,"tags":3980,"stars":23,"repoUrl":24,"updatedAt":3988},"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},[3981,3984,3985,3987],{"name":3982,"slug":3983,"type":16},"Auth","auth",{"name":3870,"slug":30,"type":16},{"name":3986,"slug":40,"type":16},"SDK",{"name":14,"slug":15,"type":16},"2026-07-12T08:07:29.297415",{"slug":3990,"name":3990,"fn":3991,"description":3992,"org":3993,"tags":3994,"stars":23,"repoUrl":24,"updatedAt":3998},"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},[3995,3996,3997],{"name":3870,"slug":30,"type":16},{"name":3986,"slug":40,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:26.430378",{"slug":3840,"name":3840,"fn":4000,"description":4001,"org":4002,"tags":4003,"stars":23,"repoUrl":24,"updatedAt":4007},"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},[4004,4005,4006],{"name":21,"slug":22,"type":16},{"name":3986,"slug":40,"type":16},{"name":14,"slug":15,"type":16},"2026-07-12T08:07:21.933342",{"slug":4,"name":4,"fn":5,"description":6,"org":4009,"tags":4010,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4011,4012,4013],{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"items":4015,"total":800},[4016,4022,4029,4035,4041,4047,4053],{"slug":3864,"name":3864,"fn":3865,"description":3866,"org":4017,"tags":4018,"stars":23,"repoUrl":24,"updatedAt":3877},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4019,4020,4021],{"name":3870,"slug":30,"type":16},{"name":3872,"slug":3873,"type":16},{"name":3875,"slug":3876,"type":16},{"slug":3879,"name":3879,"fn":3880,"description":3881,"org":4023,"tags":4024,"stars":23,"repoUrl":24,"updatedAt":3892},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4025,4026,4027,4028],{"name":3885,"slug":3886,"type":16},{"name":14,"slug":15,"type":16},{"name":3889,"slug":3890,"type":16},{"name":18,"slug":19,"type":16},{"slug":3894,"name":3894,"fn":3895,"description":3896,"org":4030,"tags":4031,"stars":23,"repoUrl":24,"updatedAt":3906},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4032,4033,4034],{"name":3900,"slug":3901,"type":16},{"name":3903,"slug":3904,"type":16},{"name":3875,"slug":3876,"type":16},{"slug":3908,"name":3908,"fn":3909,"description":3910,"org":4036,"tags":4037,"stars":23,"repoUrl":24,"updatedAt":3920},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4038,4039,4040],{"name":3903,"slug":3904,"type":16},{"name":3915,"slug":3916,"type":16},{"name":3918,"slug":3919,"type":16},{"slug":3922,"name":3922,"fn":3923,"description":3924,"org":4042,"tags":4043,"stars":23,"repoUrl":24,"updatedAt":3934},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4044,4045,4046],{"name":3928,"slug":3929,"type":16},{"name":3903,"slug":3904,"type":16},{"name":3932,"slug":3933,"type":16},{"slug":3936,"name":3936,"fn":3937,"description":3938,"org":4048,"tags":4049,"stars":23,"repoUrl":24,"updatedAt":3948},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4050,4051,4052],{"name":3870,"slug":30,"type":16},{"name":3943,"slug":3944,"type":16},{"name":3946,"slug":3947,"type":16},{"slug":3950,"name":3950,"fn":3951,"description":3952,"org":4054,"tags":4055,"stars":23,"repoUrl":24,"updatedAt":3963},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4056,4057,4058,4059],{"name":3956,"slug":3957,"type":16},{"name":3928,"slug":3929,"type":16},{"name":3960,"slug":3961,"type":16},{"name":3875,"slug":3876,"type":16}]