@aptos-labs/ts-sdk 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/README.md +7 -8
  2. package/dist/common/index.d.ts +211 -92
  3. package/dist/common/index.js +26 -26
  4. package/dist/common/index.js.map +1 -1
  5. package/dist/esm/Ed25519Account-DHqzsb8B.d.mts +294 -0
  6. package/dist/esm/api/account.d.mts +1 -1
  7. package/dist/esm/api/account.mjs +1 -1
  8. package/dist/esm/api/ans.d.mts +14 -12
  9. package/dist/esm/api/ans.mjs +1 -1
  10. package/dist/esm/api/aptos.d.mts +7 -5
  11. package/dist/esm/api/aptos.mjs +1 -1
  12. package/dist/esm/api/aptosConfig.d.mts +19 -20
  13. package/dist/esm/api/aptosConfig.mjs +1 -1
  14. package/dist/esm/api/coin.d.mts +9 -7
  15. package/dist/esm/api/coin.mjs +1 -1
  16. package/dist/esm/api/digitalAsset.d.mts +4 -2
  17. package/dist/esm/api/digitalAsset.mjs +1 -1
  18. package/dist/esm/api/event.mjs +1 -1
  19. package/dist/esm/api/faucet.mjs +1 -1
  20. package/dist/esm/api/fungibleAsset.d.mts +7 -5
  21. package/dist/esm/api/fungibleAsset.mjs +1 -1
  22. package/dist/esm/api/general.d.mts +29 -3
  23. package/dist/esm/api/general.mjs +1 -1
  24. package/dist/esm/api/index.d.mts +7 -5
  25. package/dist/esm/api/index.mjs +1 -1
  26. package/dist/esm/api/staking.mjs +1 -1
  27. package/dist/esm/api/transaction.d.mts +7 -5
  28. package/dist/esm/api/transaction.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/build.d.mts +9 -7
  30. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/management.d.mts +6 -4
  32. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  33. package/dist/esm/api/transactionSubmission/sign.d.mts +3 -1
  34. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  35. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  36. package/dist/esm/api/transactionSubmission/simulate.d.mts +2 -0
  37. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  38. package/dist/esm/api/transactionSubmission/submit.d.mts +2 -0
  39. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  40. package/dist/esm/api/utils.mjs +1 -1
  41. package/dist/esm/bcs/index.mjs +1 -1
  42. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  43. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  44. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  45. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  46. package/dist/esm/bcs/serializer.mjs +1 -1
  47. package/dist/esm/{chunk-RV2KJIXD.mjs → chunk-2MRYBOYC.mjs} +2 -2
  48. package/dist/esm/{chunk-IFVMIUMO.mjs → chunk-2XVDVF5C.mjs} +2 -2
  49. package/dist/esm/chunk-3D7GOEFD.mjs +2 -0
  50. package/dist/esm/chunk-3D7GOEFD.mjs.map +1 -0
  51. package/dist/esm/{chunk-6T3V5NIN.mjs → chunk-3GTT6K3X.mjs} +2 -2
  52. package/dist/esm/{chunk-E36XGHUE.mjs → chunk-4J5V4M3P.mjs} +2 -2
  53. package/dist/esm/{chunk-W2XLZW4Y.mjs → chunk-4KMISR2H.mjs} +2 -2
  54. package/dist/esm/chunk-4QMXOWHP.mjs +1 -0
  55. package/dist/esm/{chunk-QJ2OLGAW.mjs → chunk-5LI6PUQN.mjs} +2 -2
  56. package/dist/esm/{chunk-BKWJ4G7T.mjs → chunk-5NSXEM3O.mjs} +2 -2
  57. package/dist/esm/{chunk-77CVU2W7.mjs → chunk-6F7X2C22.mjs} +2 -2
  58. package/dist/esm/{chunk-4YQVJTW7.mjs → chunk-6MLNYBCP.mjs} +2 -2
  59. package/dist/esm/chunk-6MLNYBCP.mjs.map +1 -0
  60. package/dist/esm/{chunk-6QYEWG7L.mjs → chunk-6X6G2RC3.mjs} +2 -2
  61. package/dist/esm/chunk-6X6G2RC3.mjs.map +1 -0
  62. package/dist/esm/chunk-7JZWCHLH.mjs +2 -0
  63. package/dist/esm/chunk-7JZWCHLH.mjs.map +1 -0
  64. package/dist/esm/{chunk-NA2H44NE.mjs → chunk-7PNFDDIG.mjs} +2 -2
  65. package/dist/esm/chunk-AFTMLXYT.mjs +2 -0
  66. package/dist/esm/chunk-BCUSI3N6.mjs +2 -0
  67. package/dist/esm/chunk-BCUSI3N6.mjs.map +1 -0
  68. package/dist/esm/chunk-C67BKZND.mjs +2 -0
  69. package/dist/esm/chunk-C67BKZND.mjs.map +1 -0
  70. package/dist/esm/{chunk-55ZTOGLK.mjs → chunk-C67SYOXM.mjs} +2 -2
  71. package/dist/esm/{chunk-SEAOSYSZ.mjs → chunk-CHVWOPVA.mjs} +2 -2
  72. package/dist/esm/chunk-CPQPVRKV.mjs +2 -0
  73. package/dist/esm/chunk-CPQPVRKV.mjs.map +1 -0
  74. package/dist/esm/chunk-CQS6ZCJ7.mjs +2 -0
  75. package/dist/esm/chunk-CQS6ZCJ7.mjs.map +1 -0
  76. package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
  77. package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
  78. package/dist/esm/{chunk-K5XJKIFT.mjs → chunk-D5Q7BI3J.mjs} +2 -2
  79. package/dist/esm/chunk-DAC5J2BG.mjs +2 -0
  80. package/dist/esm/chunk-DAC5J2BG.mjs.map +1 -0
  81. package/dist/esm/chunk-EIXGNR6D.mjs +2 -0
  82. package/dist/esm/chunk-EIXGNR6D.mjs.map +1 -0
  83. package/dist/esm/{chunk-A3ILBBGZ.mjs → chunk-EOQOTFO7.mjs} +2 -2
  84. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  85. package/dist/esm/chunk-F7EMGK4M.mjs.map +1 -0
  86. package/dist/esm/chunk-F7J7ZW4H.mjs +2 -0
  87. package/dist/esm/{chunk-4LUWUDBX.mjs → chunk-FNKDXPPQ.mjs} +2 -2
  88. package/dist/esm/chunk-HOTGXRPG.mjs +2 -0
  89. package/dist/esm/chunk-HOTGXRPG.mjs.map +1 -0
  90. package/dist/esm/{chunk-HXNVG4RI.mjs → chunk-HTTPFWYL.mjs} +2 -2
  91. package/dist/esm/chunk-HTWJVZZ5.mjs +2 -0
  92. package/dist/esm/chunk-HTWJVZZ5.mjs.map +1 -0
  93. package/dist/esm/chunk-ICXA3DZH.mjs +1 -0
  94. package/dist/esm/{chunk-JPNK6EKM.mjs → chunk-IQSAG5Y5.mjs} +2 -2
  95. package/dist/esm/{chunk-DKCBAKHS.mjs → chunk-J43BXPJ3.mjs} +2 -2
  96. package/dist/esm/chunk-J43BXPJ3.mjs.map +1 -0
  97. package/dist/esm/{chunk-RC5K63LK.mjs → chunk-JE7INUQ2.mjs} +2 -2
  98. package/dist/esm/chunk-JNDRFTEA.mjs +2 -0
  99. package/dist/esm/chunk-JNDRFTEA.mjs.map +1 -0
  100. package/dist/esm/{chunk-6XMAPYSX.mjs → chunk-JV2PBG6G.mjs} +2 -2
  101. package/dist/esm/{chunk-Y62RU5NY.mjs → chunk-JV2UOHGR.mjs} +2 -2
  102. package/dist/esm/{chunk-U2HNE4PC.mjs → chunk-JVBXZ6OJ.mjs} +2 -2
  103. package/dist/esm/{chunk-MUKBXGU3.mjs → chunk-KJI5PY5Z.mjs} +2 -2
  104. package/dist/esm/chunk-KPDWT3LC.mjs +2 -0
  105. package/dist/esm/chunk-KPDWT3LC.mjs.map +1 -0
  106. package/dist/esm/{chunk-PAY4TBCF.mjs → chunk-L54P6EGN.mjs} +2 -2
  107. package/dist/esm/{chunk-PAY4TBCF.mjs.map → chunk-L54P6EGN.mjs.map} +1 -1
  108. package/dist/esm/{chunk-5ZWPTGVN.mjs → chunk-L6KXN3YD.mjs} +2 -2
  109. package/dist/esm/{chunk-5PIO6MFF.mjs → chunk-LF6IQT54.mjs} +2 -2
  110. package/dist/esm/chunk-LSKVPMOF.mjs +2 -0
  111. package/dist/esm/chunk-LSKVPMOF.mjs.map +1 -0
  112. package/dist/esm/chunk-MLWIHWNH.mjs +1 -0
  113. package/dist/esm/chunk-MLWIHWNH.mjs.map +1 -0
  114. package/dist/esm/{chunk-VQM4LMCW.mjs → chunk-MS76A6LX.mjs} +2 -2
  115. package/dist/esm/{chunk-DO7NVHJS.mjs → chunk-MV7RDJFK.mjs} +2 -2
  116. package/dist/esm/chunk-NJRNZEHX.mjs +2 -0
  117. package/dist/esm/chunk-NJRNZEHX.mjs.map +1 -0
  118. package/dist/esm/chunk-NLMMCXLR.mjs +2 -0
  119. package/dist/esm/chunk-NLMMCXLR.mjs.map +1 -0
  120. package/dist/esm/{chunk-VZRPR2YE.mjs → chunk-NLPPL42P.mjs} +2 -2
  121. package/dist/esm/chunk-NMASPJTH.mjs +2 -0
  122. package/dist/esm/chunk-NMASPJTH.mjs.map +1 -0
  123. package/dist/esm/{chunk-5JELAPRW.mjs → chunk-O3YFW4T3.mjs} +2 -2
  124. package/dist/esm/chunk-O3YFW4T3.mjs.map +1 -0
  125. package/dist/esm/{chunk-TWHTXYMB.mjs → chunk-P2CIREOD.mjs} +2 -2
  126. package/dist/esm/chunk-PE6R6XQV.mjs +2 -0
  127. package/dist/esm/chunk-PE6R6XQV.mjs.map +1 -0
  128. package/dist/esm/chunk-QAMK2MSI.mjs +2 -0
  129. package/dist/esm/chunk-QAMK2MSI.mjs.map +1 -0
  130. package/dist/esm/{chunk-ETGZG4G7.mjs → chunk-QMFBU2CG.mjs} +2 -2
  131. package/dist/esm/{chunk-UNVGVVGS.mjs → chunk-R3ELNYY5.mjs} +2 -2
  132. package/dist/esm/chunk-R3ELNYY5.mjs.map +1 -0
  133. package/dist/esm/{chunk-DPFAQBMX.mjs → chunk-R4ERAOCM.mjs} +2 -2
  134. package/dist/esm/{chunk-53UNV6UP.mjs → chunk-RP66QS6R.mjs} +2 -2
  135. package/dist/esm/chunk-RVUPGO4R.mjs +2 -0
  136. package/dist/esm/chunk-RVUPGO4R.mjs.map +1 -0
  137. package/dist/esm/{chunk-HWTX3HVX.mjs → chunk-S5AGI7RQ.mjs} +2 -2
  138. package/dist/esm/{chunk-X5P4X7YY.mjs → chunk-UCDLUHVW.mjs} +2 -2
  139. package/dist/esm/chunk-UCDLUHVW.mjs.map +1 -0
  140. package/dist/esm/{chunk-JPG25VX2.mjs → chunk-UEI62FBQ.mjs} +2 -2
  141. package/dist/esm/chunk-VU2W3ZLX.mjs +2 -0
  142. package/dist/esm/{chunk-GSLZL2LN.mjs.map → chunk-VU2W3ZLX.mjs.map} +1 -1
  143. package/dist/esm/{chunk-6EERYUB2.mjs → chunk-VUZDLGDK.mjs} +2 -2
  144. package/dist/esm/{chunk-RZNFFGTD.mjs → chunk-WNVUG2UF.mjs} +2 -2
  145. package/dist/esm/{chunk-M77RV2XT.mjs → chunk-WXXASZQ4.mjs} +2 -2
  146. package/dist/esm/{chunk-M6TKSJ4I.mjs → chunk-WZSVQBPA.mjs} +2 -2
  147. package/dist/esm/chunk-X3QW43I2.mjs +2 -0
  148. package/dist/esm/chunk-X3QW43I2.mjs.map +1 -0
  149. package/dist/esm/{chunk-2IKY56WM.mjs → chunk-XMJEWG3I.mjs} +2 -2
  150. package/dist/esm/{chunk-5M4G6WNG.mjs → chunk-XQMUVQI3.mjs} +2 -2
  151. package/dist/esm/chunk-Y2AFC3E6.mjs +2 -0
  152. package/dist/esm/chunk-Y2AFC3E6.mjs.map +1 -0
  153. package/dist/esm/{chunk-LD47JFHP.mjs → chunk-Y52TZMRO.mjs} +2 -2
  154. package/dist/esm/chunk-Y52TZMRO.mjs.map +1 -0
  155. package/dist/esm/{chunk-VZJ62XF7.mjs → chunk-YJIRT3GJ.mjs} +2 -2
  156. package/dist/esm/{chunk-ZOQ3ZG7U.mjs → chunk-YMFCBU4L.mjs} +2 -2
  157. package/dist/esm/{chunk-5O66QE4O.mjs → chunk-ZPS4RIFU.mjs} +2 -2
  158. package/dist/esm/chunk-ZPS4RIFU.mjs.map +1 -0
  159. package/dist/esm/cli/index.mjs +1 -1
  160. package/dist/esm/cli/localNode.d.mts +1 -1
  161. package/dist/esm/cli/localNode.mjs +1 -1
  162. package/dist/esm/client/core.d.mts +2 -2
  163. package/dist/esm/client/core.mjs +1 -1
  164. package/dist/esm/client/get.mjs +1 -1
  165. package/dist/esm/client/index.mjs +1 -1
  166. package/dist/esm/client/post.mjs +1 -1
  167. package/dist/esm/core/account/Account.d.mts +1 -1
  168. package/dist/esm/core/account/Account.mjs +1 -1
  169. package/dist/esm/core/account/Ed25519Account.d.mts +1 -1
  170. package/dist/esm/core/account/Ed25519Account.mjs +1 -1
  171. package/dist/esm/core/account/SingleKeyAccount.d.mts +1 -1
  172. package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
  173. package/dist/esm/core/account/index.d.mts +11 -295
  174. package/dist/esm/core/account/index.mjs +1 -1
  175. package/dist/esm/core/account/utils/address.d.mts +42 -0
  176. package/dist/esm/core/account/utils/address.mjs +2 -0
  177. package/dist/esm/core/account/utils/address.mjs.map +1 -0
  178. package/dist/esm/core/account/utils/index.d.mts +12 -0
  179. package/dist/esm/core/account/utils/index.mjs +2 -0
  180. package/dist/esm/core/account/utils/index.mjs.map +1 -0
  181. package/dist/esm/core/accountAddress.mjs +1 -1
  182. package/dist/esm/core/authenticationKey.mjs +1 -1
  183. package/dist/esm/core/crypto/ed25519.d.mts +2 -2
  184. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  185. package/dist/esm/core/crypto/index.mjs +1 -1
  186. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  187. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  188. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  189. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  190. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  191. package/dist/esm/core/crypto/signature.mjs +1 -1
  192. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  193. package/dist/esm/core/crypto/utils.d.mts +16 -0
  194. package/dist/esm/core/crypto/utils.mjs +2 -0
  195. package/dist/esm/core/crypto/utils.mjs.map +1 -0
  196. package/dist/esm/core/hex.d.mts +2 -2
  197. package/dist/esm/core/hex.mjs +1 -1
  198. package/dist/esm/core/index.d.mts +2 -1
  199. package/dist/esm/core/index.mjs +1 -1
  200. package/dist/esm/index.d.mts +8 -5
  201. package/dist/esm/index.mjs +1 -1
  202. package/dist/esm/internal/account.d.mts +2 -2
  203. package/dist/esm/internal/account.mjs +1 -1
  204. package/dist/esm/internal/ans.d.mts +9 -7
  205. package/dist/esm/internal/ans.mjs +1 -1
  206. package/dist/esm/internal/coin.d.mts +3 -1
  207. package/dist/esm/internal/coin.mjs +1 -1
  208. package/dist/esm/internal/digitalAsset.d.mts +6 -4
  209. package/dist/esm/internal/digitalAsset.mjs +1 -1
  210. package/dist/esm/internal/event.d.mts +1 -1
  211. package/dist/esm/internal/event.mjs +1 -1
  212. package/dist/esm/internal/faucet.mjs +1 -1
  213. package/dist/esm/internal/fungibleAsset.d.mts +8 -6
  214. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  215. package/dist/esm/internal/general.d.mts +2 -7
  216. package/dist/esm/internal/general.mjs +1 -1
  217. package/dist/esm/internal/staking.d.mts +2 -2
  218. package/dist/esm/internal/staking.mjs +1 -1
  219. package/dist/esm/internal/transaction.mjs +1 -1
  220. package/dist/esm/internal/transactionSubmission.d.mts +8 -6
  221. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  222. package/dist/esm/internal/view.d.mts +41 -0
  223. package/dist/esm/internal/view.mjs +2 -0
  224. package/dist/esm/internal/view.mjs.map +1 -0
  225. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  226. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  227. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  228. package/dist/esm/transactions/index.d.mts +6 -4
  229. package/dist/esm/transactions/index.mjs +1 -1
  230. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  231. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  232. package/dist/esm/transactions/instances/index.d.mts +1 -0
  233. package/dist/esm/transactions/instances/index.mjs +1 -1
  234. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  235. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +41 -0
  236. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +2 -0
  237. package/dist/esm/transactions/instances/multiAgentTransaction.mjs.map +1 -0
  238. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  239. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  240. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  241. package/dist/esm/transactions/instances/simpleTransaction.d.mts +41 -0
  242. package/dist/esm/transactions/instances/simpleTransaction.mjs +2 -0
  243. package/dist/esm/transactions/instances/simpleTransaction.mjs.map +1 -0
  244. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  245. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -1
  246. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  247. package/dist/esm/transactions/management/index.d.mts +3 -1
  248. package/dist/esm/transactions/management/index.mjs +1 -1
  249. package/dist/esm/transactions/management/transactionWorker.d.mts +4 -2
  250. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  251. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +2 -0
  252. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  253. package/dist/esm/transactions/transactionBuilder/index.d.mts +5 -3
  254. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  255. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +23 -4
  256. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  257. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +18 -4
  258. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  259. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  260. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  261. package/dist/esm/transactions/types.d.mts +41 -25
  262. package/dist/esm/types/index.d.mts +36 -32
  263. package/dist/esm/types/index.mjs +1 -1
  264. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  265. package/dist/esm/utils/const.d.mts +4 -4
  266. package/dist/esm/utils/const.mjs +1 -1
  267. package/dist/esm/utils/index.mjs +1 -1
  268. package/dist/esm/version.d.mts +1 -1
  269. package/dist/esm/version.mjs +1 -1
  270. package/package.json +1 -1
  271. package/src/api/ans.ts +8 -7
  272. package/src/api/aptosConfig.ts +25 -29
  273. package/src/api/coin.ts +2 -1
  274. package/src/api/digitalAsset.ts +2 -1
  275. package/src/api/fungibleAsset.ts +2 -1
  276. package/src/api/general.ts +4 -4
  277. package/src/api/transaction.ts +1 -1
  278. package/src/api/transactionSubmission/build.ts +3 -6
  279. package/src/cli/localNode.ts +1 -1
  280. package/src/client/core.ts +15 -15
  281. package/src/client/get.ts +15 -3
  282. package/src/client/post.ts +48 -9
  283. package/src/core/account/index.ts +1 -0
  284. package/src/core/account/utils/address.ts +57 -0
  285. package/src/core/account/utils/index.ts +1 -0
  286. package/src/core/crypto/ed25519.ts +7 -5
  287. package/src/core/crypto/secp256k1.ts +6 -4
  288. package/src/core/crypto/utils.ts +24 -0
  289. package/src/core/hex.ts +4 -4
  290. package/src/internal/ans.ts +18 -17
  291. package/src/internal/coin.ts +2 -1
  292. package/src/internal/digitalAsset.ts +2 -1
  293. package/src/internal/fungibleAsset.ts +1 -1
  294. package/src/internal/general.ts +1 -25
  295. package/src/internal/transactionSubmission.ts +12 -19
  296. package/src/internal/view.ts +35 -0
  297. package/src/transactions/instances/index.ts +1 -0
  298. package/src/transactions/instances/multiAgentTransaction.ts +68 -0
  299. package/src/transactions/instances/simpleTransaction.ts +60 -0
  300. package/src/transactions/management/transactionWorker.ts +2 -1
  301. package/src/transactions/transactionBuilder/remoteAbi.ts +81 -8
  302. package/src/transactions/transactionBuilder/transactionBuilder.ts +137 -19
  303. package/src/transactions/types.ts +41 -26
  304. package/src/types/codegen.yaml +1 -1
  305. package/src/types/index.ts +41 -32
  306. package/src/utils/apiEndpoints.ts +3 -3
  307. package/src/utils/const.ts +4 -4
  308. package/src/version.ts +1 -1
  309. package/dist/esm/chunk-4YQVJTW7.mjs.map +0 -1
  310. package/dist/esm/chunk-5JELAPRW.mjs.map +0 -1
  311. package/dist/esm/chunk-5O66QE4O.mjs.map +0 -1
  312. package/dist/esm/chunk-6QYEWG7L.mjs.map +0 -1
  313. package/dist/esm/chunk-6TIQD57I.mjs +0 -2
  314. package/dist/esm/chunk-6TIQD57I.mjs.map +0 -1
  315. package/dist/esm/chunk-6UXBIUZJ.mjs +0 -2
  316. package/dist/esm/chunk-6UXBIUZJ.mjs.map +0 -1
  317. package/dist/esm/chunk-A6VQIWVY.mjs +0 -2
  318. package/dist/esm/chunk-A6VQIWVY.mjs.map +0 -1
  319. package/dist/esm/chunk-AWYUVMW7.mjs +0 -2
  320. package/dist/esm/chunk-AWYUVMW7.mjs.map +0 -1
  321. package/dist/esm/chunk-BZMO6Q6L.mjs +0 -2
  322. package/dist/esm/chunk-BZMO6Q6L.mjs.map +0 -1
  323. package/dist/esm/chunk-CRFZIYSY.mjs +0 -2
  324. package/dist/esm/chunk-CRFZIYSY.mjs.map +0 -1
  325. package/dist/esm/chunk-CUWAGKEP.mjs +0 -2
  326. package/dist/esm/chunk-CYFKE643.mjs +0 -2
  327. package/dist/esm/chunk-CYFKE643.mjs.map +0 -1
  328. package/dist/esm/chunk-DKCBAKHS.mjs.map +0 -1
  329. package/dist/esm/chunk-FWSOYEN6.mjs +0 -2
  330. package/dist/esm/chunk-FWSOYEN6.mjs.map +0 -1
  331. package/dist/esm/chunk-GSLZL2LN.mjs +0 -2
  332. package/dist/esm/chunk-GTCDSGOA.mjs +0 -2
  333. package/dist/esm/chunk-HEPV52CH.mjs +0 -2
  334. package/dist/esm/chunk-HEPV52CH.mjs.map +0 -1
  335. package/dist/esm/chunk-HLNZVTCO.mjs +0 -2
  336. package/dist/esm/chunk-HLNZVTCO.mjs.map +0 -1
  337. package/dist/esm/chunk-HTZTTZQJ.mjs +0 -1
  338. package/dist/esm/chunk-LD47JFHP.mjs.map +0 -1
  339. package/dist/esm/chunk-NMNR3QST.mjs +0 -2
  340. package/dist/esm/chunk-NMNR3QST.mjs.map +0 -1
  341. package/dist/esm/chunk-NUBFOYQZ.mjs +0 -2
  342. package/dist/esm/chunk-NUBFOYQZ.mjs.map +0 -1
  343. package/dist/esm/chunk-QE4ASJ5K.mjs +0 -1
  344. package/dist/esm/chunk-RNFDAXUZ.mjs +0 -2
  345. package/dist/esm/chunk-RNFDAXUZ.mjs.map +0 -1
  346. package/dist/esm/chunk-RQSMDDYP.mjs +0 -2
  347. package/dist/esm/chunk-RQSMDDYP.mjs.map +0 -1
  348. package/dist/esm/chunk-SOFGN24M.mjs +0 -2
  349. package/dist/esm/chunk-SOFGN24M.mjs.map +0 -1
  350. package/dist/esm/chunk-UNVGVVGS.mjs.map +0 -1
  351. package/dist/esm/chunk-VDQYAGHU.mjs +0 -2
  352. package/dist/esm/chunk-VDQYAGHU.mjs.map +0 -1
  353. package/dist/esm/chunk-X5P4X7YY.mjs.map +0 -1
  354. package/dist/esm/chunk-XC72DIJB.mjs +0 -2
  355. package/dist/esm/chunk-XC72DIJB.mjs.map +0 -1
  356. package/dist/esm/chunk-ZUJAMDAE.mjs +0 -2
  357. package/dist/esm/chunk-ZUJAMDAE.mjs.map +0 -1
  358. /package/dist/esm/{chunk-RV2KJIXD.mjs.map → chunk-2MRYBOYC.mjs.map} +0 -0
  359. /package/dist/esm/{chunk-IFVMIUMO.mjs.map → chunk-2XVDVF5C.mjs.map} +0 -0
  360. /package/dist/esm/{chunk-6T3V5NIN.mjs.map → chunk-3GTT6K3X.mjs.map} +0 -0
  361. /package/dist/esm/{chunk-E36XGHUE.mjs.map → chunk-4J5V4M3P.mjs.map} +0 -0
  362. /package/dist/esm/{chunk-W2XLZW4Y.mjs.map → chunk-4KMISR2H.mjs.map} +0 -0
  363. /package/dist/esm/{chunk-HTZTTZQJ.mjs.map → chunk-4QMXOWHP.mjs.map} +0 -0
  364. /package/dist/esm/{chunk-QJ2OLGAW.mjs.map → chunk-5LI6PUQN.mjs.map} +0 -0
  365. /package/dist/esm/{chunk-BKWJ4G7T.mjs.map → chunk-5NSXEM3O.mjs.map} +0 -0
  366. /package/dist/esm/{chunk-77CVU2W7.mjs.map → chunk-6F7X2C22.mjs.map} +0 -0
  367. /package/dist/esm/{chunk-NA2H44NE.mjs.map → chunk-7PNFDDIG.mjs.map} +0 -0
  368. /package/dist/esm/{chunk-CUWAGKEP.mjs.map → chunk-AFTMLXYT.mjs.map} +0 -0
  369. /package/dist/esm/{chunk-55ZTOGLK.mjs.map → chunk-C67SYOXM.mjs.map} +0 -0
  370. /package/dist/esm/{chunk-SEAOSYSZ.mjs.map → chunk-CHVWOPVA.mjs.map} +0 -0
  371. /package/dist/esm/{chunk-K5XJKIFT.mjs.map → chunk-D5Q7BI3J.mjs.map} +0 -0
  372. /package/dist/esm/{chunk-A3ILBBGZ.mjs.map → chunk-EOQOTFO7.mjs.map} +0 -0
  373. /package/dist/esm/{chunk-GTCDSGOA.mjs.map → chunk-F7J7ZW4H.mjs.map} +0 -0
  374. /package/dist/esm/{chunk-4LUWUDBX.mjs.map → chunk-FNKDXPPQ.mjs.map} +0 -0
  375. /package/dist/esm/{chunk-HXNVG4RI.mjs.map → chunk-HTTPFWYL.mjs.map} +0 -0
  376. /package/dist/esm/{chunk-QE4ASJ5K.mjs.map → chunk-ICXA3DZH.mjs.map} +0 -0
  377. /package/dist/esm/{chunk-JPNK6EKM.mjs.map → chunk-IQSAG5Y5.mjs.map} +0 -0
  378. /package/dist/esm/{chunk-RC5K63LK.mjs.map → chunk-JE7INUQ2.mjs.map} +0 -0
  379. /package/dist/esm/{chunk-6XMAPYSX.mjs.map → chunk-JV2PBG6G.mjs.map} +0 -0
  380. /package/dist/esm/{chunk-Y62RU5NY.mjs.map → chunk-JV2UOHGR.mjs.map} +0 -0
  381. /package/dist/esm/{chunk-U2HNE4PC.mjs.map → chunk-JVBXZ6OJ.mjs.map} +0 -0
  382. /package/dist/esm/{chunk-MUKBXGU3.mjs.map → chunk-KJI5PY5Z.mjs.map} +0 -0
  383. /package/dist/esm/{chunk-5ZWPTGVN.mjs.map → chunk-L6KXN3YD.mjs.map} +0 -0
  384. /package/dist/esm/{chunk-5PIO6MFF.mjs.map → chunk-LF6IQT54.mjs.map} +0 -0
  385. /package/dist/esm/{chunk-VQM4LMCW.mjs.map → chunk-MS76A6LX.mjs.map} +0 -0
  386. /package/dist/esm/{chunk-DO7NVHJS.mjs.map → chunk-MV7RDJFK.mjs.map} +0 -0
  387. /package/dist/esm/{chunk-VZRPR2YE.mjs.map → chunk-NLPPL42P.mjs.map} +0 -0
  388. /package/dist/esm/{chunk-TWHTXYMB.mjs.map → chunk-P2CIREOD.mjs.map} +0 -0
  389. /package/dist/esm/{chunk-ETGZG4G7.mjs.map → chunk-QMFBU2CG.mjs.map} +0 -0
  390. /package/dist/esm/{chunk-DPFAQBMX.mjs.map → chunk-R4ERAOCM.mjs.map} +0 -0
  391. /package/dist/esm/{chunk-53UNV6UP.mjs.map → chunk-RP66QS6R.mjs.map} +0 -0
  392. /package/dist/esm/{chunk-HWTX3HVX.mjs.map → chunk-S5AGI7RQ.mjs.map} +0 -0
  393. /package/dist/esm/{chunk-JPG25VX2.mjs.map → chunk-UEI62FBQ.mjs.map} +0 -0
  394. /package/dist/esm/{chunk-6EERYUB2.mjs.map → chunk-VUZDLGDK.mjs.map} +0 -0
  395. /package/dist/esm/{chunk-RZNFFGTD.mjs.map → chunk-WNVUG2UF.mjs.map} +0 -0
  396. /package/dist/esm/{chunk-M77RV2XT.mjs.map → chunk-WXXASZQ4.mjs.map} +0 -0
  397. /package/dist/esm/{chunk-M6TKSJ4I.mjs.map → chunk-WZSVQBPA.mjs.map} +0 -0
  398. /package/dist/esm/{chunk-2IKY56WM.mjs.map → chunk-XMJEWG3I.mjs.map} +0 -0
  399. /package/dist/esm/{chunk-5M4G6WNG.mjs.map → chunk-XQMUVQI3.mjs.map} +0 -0
  400. /package/dist/esm/{chunk-VZJ62XF7.mjs.map → chunk-YJIRT3GJ.mjs.map} +0 -0
  401. /package/dist/esm/{chunk-ZOQ3ZG7U.mjs.map → chunk-YMFCBU4L.mjs.map} +0 -0
package/README.md CHANGED
@@ -4,6 +4,11 @@
4
4
  [![Discord][discord-image]][discord-url]
5
5
  [![NPM Package Downloads][npm-image-downloads]][npm-url]
6
6
 
7
+ ### Reference Docs
8
+ 1. For SDK documentation, check out the [TypeScript SDK documentation](https://aptos.dev/sdks/new-ts-sdk/)
9
+ 2. For detailed reference documentation you can search, check out the [API reference documentation](https://aptos-labs.github.io/aptos-ts-sdk/) for the associated version.
10
+ 3. For in-depth examples, check out the [examples](./examples) folder with ready-made `package.json` files to get you going quickly!
11
+
7
12
  ### Latest Version
8
13
 
9
14
  [![NPM Package Version][npm-image-version]][npm-url]
@@ -76,8 +81,8 @@ const modules = await aptos.getAccountModules({ accountAddress: "0x123" });
76
81
 
77
82
  ```ts
78
83
  const account = Account.generate(); // defaults to Legacy Ed25519
79
- const account = Account.generate({ scheme: SingingSchemeInput.Secp256k1 }); // Single Sender Secp256k1
80
- const account = Account.generate({ scheme: SingingSchemeInput.Ed25519, legacy: false }); // Single Sender Ed25519
84
+ const account = Account.generate({ scheme: SigningSchemeInput.Secp256k1Ecdsa }); // Single Sender Secp256k1
85
+ const account = Account.generate({ scheme: SigningSchemeInput.Ed25519, legacy: false }); // Single Sender Ed25519
81
86
  ```
82
87
 
83
88
  #### Derive from private key
@@ -169,12 +174,6 @@ const transaction = await aptos.transferCoinTransaction({
169
174
  const pendingTransaction = await aptos.signAndSubmitTransaction({ signer: alice, transaction });
170
175
  ```
171
176
 
172
- ## Documentation and examples
173
-
174
- - For full SDK documentation, check out the [TypeScript SDK documentation](https://aptos.dev/sdks/new-ts-sdk/)
175
- - For reference documenation, check out the [API reference documentation](https://aptos-labs.github.io/aptos-ts-sdk/) for the associated version.
176
- - For in-depth examples, check out the [examples](./examples) folder with ready-made `package.json` files to get you going quickly!
177
-
178
177
  ### Testing
179
178
 
180
179
  To run the SDK tests, simply run from the root of this repository:
@@ -786,7 +786,8 @@ declare enum MimeType {
786
786
  /**
787
787
  * BCS representation, used for transaction submission in BCS input
788
788
  */
789
- BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs"
789
+ BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs",
790
+ BCS_VIEW_FUNCTION = "application/x.aptos.view_function+bcs"
790
791
  }
791
792
  /**
792
793
  * Hex data as input to a function
@@ -894,6 +895,9 @@ type AptosSettings = {
894
895
  readonly indexer?: string;
895
896
  readonly clientConfig?: ClientConfig;
896
897
  readonly client?: Client;
898
+ readonly fullnodeConfig?: FullNodeConfig;
899
+ readonly indexerConfig?: IndexerConfig;
900
+ readonly faucetConfig?: FaucetConfig;
897
901
  };
898
902
  /**
899
903
  *
@@ -920,16 +924,40 @@ interface WhereArg<T extends {}> {
920
924
  /**
921
925
  * A configuration object we can pass with the request to the server.
922
926
  *
923
- * @param AUTH_TOKEN - an auth token to send with a faucet request
924
927
  * @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
925
928
  * @param HEADERS - extra headers we want to send with the request
926
929
  * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
927
930
  */
928
- type ClientConfig = {
929
- AUTH_TOKEN?: string;
931
+ type ClientConfig = ClientHeadersType & {
932
+ WITH_CREDENTIALS?: boolean;
930
933
  API_KEY?: string;
934
+ };
935
+ /**
936
+ * A Fullnode only configuration object
937
+ *
938
+ * @param HEADERS - extra headers we want to send with the request
939
+ */
940
+ type FullNodeConfig = ClientHeadersType;
941
+ /**
942
+ * An Indexer only configuration object
943
+ *
944
+ * @param HEADERS - extra headers we want to send with the request
945
+ */
946
+ type IndexerConfig = ClientHeadersType;
947
+ /**
948
+ * A Faucet only configuration object
949
+ *
950
+ * @param HEADERS - extra headers we want to send with the request
951
+ * @param AUTH_TOKEN - an auth token to send with a faucet request
952
+ */
953
+ type FaucetConfig = ClientHeadersType & {
954
+ AUTH_TOKEN?: string;
955
+ };
956
+ /**
957
+ * General type definition for client HEADERS
958
+ */
959
+ type ClientHeadersType = {
931
960
  HEADERS?: Record<string, string | number | boolean>;
932
- WITH_CREDENTIALS?: boolean;
933
961
  };
934
962
  interface ClientRequest<Req> {
935
963
  url: string;
@@ -937,7 +965,7 @@ interface ClientRequest<Req> {
937
965
  body?: Req;
938
966
  contentType?: string;
939
967
  params?: any;
940
- overrides?: ClientConfig;
968
+ overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
941
969
  headers?: Record<string, any>;
942
970
  }
943
971
  interface ClientResponse<Res> {
@@ -974,7 +1002,7 @@ type AptosRequest = {
974
1002
  acceptType?: string;
975
1003
  params?: Record<string, string | AnyNumber | boolean | undefined>;
976
1004
  originMethod?: string;
977
- overrides?: ClientConfig;
1005
+ overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
978
1006
  };
979
1007
  /**
980
1008
  * Specifies ledger version of transactions. By default latest version will be used
@@ -1583,30 +1611,6 @@ type Block = {
1583
1611
  */
1584
1612
  transactions?: Array<TransactionResponse>;
1585
1613
  };
1586
- /**
1587
- * The data needed to generate a View Request payload
1588
- */
1589
- type InputViewRequestData = {
1590
- function: MoveFunctionId;
1591
- typeArguments?: Array<MoveStructId>;
1592
- functionArguments?: Array<MoveValue>;
1593
- };
1594
- /**
1595
- * View request for the Move view function API
1596
- *
1597
- * `type MoveFunctionId = ${string}::${string}::${string}`;
1598
- */
1599
- type ViewRequest = {
1600
- function: MoveFunctionId;
1601
- /**
1602
- * Type arguments of the function
1603
- */
1604
- typeArguments: Array<MoveStructId>;
1605
- /**
1606
- * Arguments of the function
1607
- */
1608
- functionArguments: Array<MoveValue>;
1609
- };
1610
1614
  /**
1611
1615
  * Table Item request for the GetTableItem API
1612
1616
  */
@@ -1905,7 +1909,7 @@ declare enum HexInvalidReason {
1905
1909
  * with a leading 0x prefix, regardless of what the input format was.
1906
1910
  *
1907
1911
  * These are some other ways to chain the functions together:
1908
- * - `Hex.fromString({ hexInput: "0x1f" }).toUint8Array()`
1912
+ * - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
1909
1913
  * - `new Hex([1, 3]).toStringWithoutPrefix()`
1910
1914
  */
1911
1915
  declare class Hex {
@@ -1942,7 +1946,7 @@ declare class Hex {
1942
1946
  *
1943
1947
  * @returns Hex
1944
1948
  */
1945
- static fromString(str: string): Hex;
1949
+ static fromHexString(str: string): Hex;
1946
1950
  /**
1947
1951
  * Static method to convert an instance of HexInput to Hex
1948
1952
  *
@@ -2981,7 +2985,7 @@ declare class Ed25519PublicKey extends AccountPublicKey {
2981
2985
  constructor(hexInput: HexInput);
2982
2986
  /**
2983
2987
  * Verifies a signed data with a public key
2984
- * @param args.message a signed message
2988
+ * @param args.message a signed message as a Hex string or Uint8Array
2985
2989
  * @param args.signature the signature of the message
2986
2990
  */
2987
2991
  verifySignature(args: VerifySignatureArgs): boolean;
@@ -3060,7 +3064,7 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
3060
3064
  /**
3061
3065
  * Sign the given message with the private key.
3062
3066
  *
3063
- * @param message in HexInput format
3067
+ * @param message a message as a string or Uint8Array
3064
3068
  * @returns Signature
3065
3069
  */
3066
3070
  sign(message: HexInput): Ed25519Signature;
@@ -3493,7 +3497,7 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
3493
3497
  /**
3494
3498
  * Sign the given message with the private key.
3495
3499
  *
3496
- * @param message in HexInput format
3500
+ * @param message a message as a string or Uint8Array
3497
3501
  * @returns Signature
3498
3502
  */
3499
3503
  sign(message: HexInput): Secp256k1Signature;
@@ -3896,13 +3900,42 @@ declare class Ed25519Account implements Account$1 {
3896
3900
  sign(message: HexInput): Ed25519Signature;
3897
3901
  }
3898
3902
 
3903
+ /**
3904
+ * Creates an object address from creator address and seed
3905
+ *
3906
+ * @param creatorAddress The object creator account address
3907
+ * @param seed The seed in either Uint8Array | string type
3908
+ *
3909
+ * @returns The object account address
3910
+ */
3911
+ declare const createObjectAddress: (creatorAddress: AccountAddress, seed: Uint8Array | string) => AccountAddress;
3912
+ /**
3913
+ * Creates an resource address from creator address and seed
3914
+ *
3915
+ * @param creatorAddress The creator account address
3916
+ * @param seed The seed in either Uint8Array | string type
3917
+ *
3918
+ * @returns The resource account address
3919
+ */
3920
+ declare const createResourceAddress: (creatorAddress: AccountAddress, seed: Uint8Array | string) => AccountAddress;
3921
+ /**
3922
+ * Creates a token object address from creator address, collection name and token name
3923
+ *
3924
+ * @param creatorAddress The token creator account address
3925
+ * @param collectionName The collection name
3926
+ * @param tokenName The token name
3927
+ *
3928
+ * @returns The token account address
3929
+ */
3930
+ declare const createTokenAddress: (creatorAddress: AccountAddress, collectionName: string, tokenName: string) => AccountAddress;
3931
+
3899
3932
  /**
3900
3933
  * Type of API endpoint for request routing
3901
3934
  */
3902
3935
  declare enum AptosApiType {
3903
- FULLNODE = 0,
3904
- INDEXER = 1,
3905
- FAUCET = 2
3936
+ FULLNODE = "Fullnode",
3937
+ INDEXER = "Indexer",
3938
+ FAUCET = "Faucet"
3906
3939
  }
3907
3940
  /**
3908
3941
  * The default max gas amount when none is given.
@@ -3939,7 +3972,7 @@ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
3939
3972
  * The list of supported Processor types for our indexer api.
3940
3973
  *
3941
3974
  * These can be found from the processor_status table in the indexer database.
3942
- * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://indexer.mainnet.aptoslabs.com/v1/graphql}
3975
+ * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
3943
3976
  */
3944
3977
  declare enum ProcessorType {
3945
3978
  ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
@@ -3955,7 +3988,9 @@ declare enum ProcessorType {
3955
3988
  * This class holds the config information for the SDK client instance.
3956
3989
  */
3957
3990
  declare class AptosConfig {
3958
- /** The Network that this SDK is associated with. Defaults to DEVNET */
3991
+ /**
3992
+ * The Network that this SDK is associated with. Defaults to DEVNET
3993
+ */
3959
3994
  readonly network: Network;
3960
3995
  /**
3961
3996
  * The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
@@ -3973,7 +4008,22 @@ declare class AptosConfig {
3973
4008
  * The optional hardcoded indexer URL to send requests to instead of using the network
3974
4009
  */
3975
4010
  readonly indexer?: string;
4011
+ /**
4012
+ * Optional client configurations
4013
+ */
3976
4014
  readonly clientConfig?: ClientConfig;
4015
+ /**
4016
+ * Optional specific Fullnode configurations
4017
+ */
4018
+ readonly fullnodeConfig?: FullNodeConfig;
4019
+ /**
4020
+ * Optional specific Indexer configurations
4021
+ */
4022
+ readonly indexerConfig?: IndexerConfig;
4023
+ /**
4024
+ * Optional specific Faucet configurations
4025
+ */
4026
+ readonly faucetConfig?: FaucetConfig;
3977
4027
  constructor(settings?: AptosSettings);
3978
4028
  /**
3979
4029
  * Returns the URL endpoint to send the request to.
@@ -3986,24 +4036,6 @@ declare class AptosConfig {
3986
4036
  * @internal
3987
4037
  */
3988
4038
  getRequestUrl(apiType: AptosApiType): string;
3989
- /**
3990
- * Checks if the URL is a known indexer endpoint
3991
- *
3992
- * @internal
3993
- * */
3994
- isIndexerRequest(url: string): boolean;
3995
- /**
3996
- * Checks if the URL is a known fullnode endpoint
3997
- *
3998
- * @internal
3999
- * */
4000
- isFullnodeRequest(url: string): boolean;
4001
- /**
4002
- * Checks if the URL is a known faucet endpoint
4003
- *
4004
- * @internal
4005
- * */
4006
- isFaucetRequest(url: string): boolean;
4007
4039
  }
4008
4040
 
4009
4041
  /**
@@ -4739,6 +4771,28 @@ declare class FeePayerRawTransaction extends RawTransactionWithData {
4739
4771
  static load(deserializer: Deserializer): FeePayerRawTransaction;
4740
4772
  }
4741
4773
 
4774
+ /**
4775
+ * Representation of a SimpleTransaction that can serialized and deserialized
4776
+ */
4777
+ declare class SimpleTransaction extends Serializable {
4778
+ rawTransaction: RawTransaction;
4779
+ feePayerAddress?: AccountAddress | undefined;
4780
+ readonly secondarySignerAddresses: undefined;
4781
+ /**
4782
+ * SimpleTransaction represents a simple transaction type of a single signer that
4783
+ * can be submitted to Aptos chain for execution.
4784
+ *
4785
+ * SimpleTransaction metadata contains the Raw Transaction and an optional
4786
+ * sponsor Account Address to pay the gas fees.
4787
+ *
4788
+ * @param rawTransaction The Raw Tranasaction
4789
+ * @param feePayerAddress The sponsor Account Address
4790
+ */
4791
+ constructor(rawTransaction: RawTransaction, feePayerAddress?: AccountAddress);
4792
+ serialize(serializer: Serializer): void;
4793
+ static deserialize(deserializer: Deserializer): SimpleTransaction;
4794
+ }
4795
+
4742
4796
  /**
4743
4797
  * Representation of the challenge which is needed to sign by owner of the account
4744
4798
  * to rotate the authentication key.
@@ -4864,6 +4918,28 @@ declare class SignedTransaction extends Serializable {
4864
4918
  static deserialize(deserializer: Deserializer): SignedTransaction;
4865
4919
  }
4866
4920
 
4921
+ /**
4922
+ * Representation of a Raw Transaction that can serialized and deserialized
4923
+ */
4924
+ declare class MultiAgentTransaction extends Serializable {
4925
+ rawTransaction: RawTransaction;
4926
+ feePayerAddress?: AccountAddress | undefined;
4927
+ secondarySignerAddresses: AccountAddress[];
4928
+ /**
4929
+ * SimpleTransaction represents a simple transaction type of a single signer that
4930
+ * can be submitted to Aptos chain for execution.
4931
+ *
4932
+ * SimpleTransaction metadata contains the Raw Transaction and an optional
4933
+ * sponsor Account Address to pay the gas fees.
4934
+ *
4935
+ * @param rawTransaction The Raw Tranasaction
4936
+ * @param feePayerAddress The sponsor Account Address
4937
+ */
4938
+ constructor(rawTransaction: RawTransaction, secondarySignerAddresses: AccountAddress[], feePayerAddress?: AccountAddress);
4939
+ serialize(serializer: Serializer): void;
4940
+ static deserialize(deserializer: Deserializer): MultiAgentTransaction;
4941
+ }
4942
+
4867
4943
  /**
4868
4944
  * Entry function arguments to be used when building a raw transaction using remote ABI
4869
4945
  */
@@ -4938,14 +5014,49 @@ type InputScriptData = {
4938
5014
  typeArguments?: Array<TypeTag>;
4939
5015
  functionArguments: Array<ScriptFunctionArgumentTypes>;
4940
5016
  };
5017
+ /**
5018
+ * The data needed to generate a View Function payload
5019
+ */
5020
+ type InputViewFunctionData = {
5021
+ function: MoveFunctionId;
5022
+ typeArguments?: Array<TypeTag | string>;
5023
+ functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
5024
+ abi?: ViewFunctionABI;
5025
+ };
5026
+ /**
5027
+ * Data needed to generate a view function payload and fetch the remote ABI
5028
+ */
5029
+ type InputViewFunctionDataWithRemoteABI = InputViewFunctionData & {
5030
+ aptosConfig: AptosConfig;
5031
+ };
5032
+ /**
5033
+ * Data needed to generate a view function, with an already fetched ABI
5034
+ */
5035
+ type InputViewFunctionDataWithABI = InputViewFunctionData & {
5036
+ abi: ViewFunctionABI;
5037
+ };
5038
+ /**
5039
+ * Data need for a generic function ABI, both view and entry
5040
+ */
5041
+ type FunctionABI = {
5042
+ typeParameters: Array<MoveFunctionGenericTypeParam>;
5043
+ parameters: Array<TypeTag>;
5044
+ };
4941
5045
  /**
4942
5046
  * Interface of an Entry function's ABI.
4943
5047
  *
4944
5048
  * This is used to provide type checking and simple input conversion on ABI based transaction submission.
4945
5049
  */
4946
- type EntryFunctionABI = {
4947
- typeParameters: Array<MoveFunctionGenericTypeParam>;
4948
- parameters: Array<TypeTag>;
5050
+ type EntryFunctionABI = FunctionABI & {
5051
+ signers?: number;
5052
+ };
5053
+ /**
5054
+ * Interface of an View function's ABI.
5055
+ *
5056
+ * This is used to provide type checking and simple input conversion on ABI based transaction submission.
5057
+ */
5058
+ type ViewFunctionABI = FunctionABI & {
5059
+ returnTypes: Array<TypeTag>;
4949
5060
  };
4950
5061
  /**
4951
5062
  * Interface of the arguments to generate a single signer transaction.
@@ -4974,27 +5085,6 @@ interface InputGenerateMultiAgentRawTransactionArgs {
4974
5085
  * Unified type that holds all the interfaces to generate different transaction types
4975
5086
  */
4976
5087
  type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionArgs | InputGenerateMultiAgentRawTransactionArgs;
4977
- /**
4978
- * Interface that holds the return data when generating a single signer transaction
4979
- *
4980
- * @param rawTransaction a bcs serialized raw transaction
4981
- */
4982
- interface SimpleTransaction {
4983
- rawTransaction: RawTransaction;
4984
- feePayerAddress?: AccountAddress;
4985
- secondarySignerAddresses?: undefined;
4986
- }
4987
- /**
4988
- * Interface that holds the return data when generating a multi-agent transaction.
4989
- *
4990
- * @param rawTransaction a bcs serialized raw transaction
4991
- * @param secondarySignerAddresses secondary signer addresses for multi-agent transaction
4992
- */
4993
- interface MultiAgentTransaction {
4994
- rawTransaction: RawTransaction;
4995
- secondarySignerAddresses: AccountAddress[];
4996
- feePayerAddress?: AccountAddress;
4997
- }
4998
5088
  /**
4999
5089
  * Unified type that holds all the return interfaces when generating different transaction types
5000
5090
  */
@@ -5649,6 +5739,8 @@ declare function generateTransactionPayload(args: InputEntryFunctionDataWithRemo
5649
5739
  declare function generateTransactionPayload(args: InputMultiSigDataWithRemoteABI): Promise<TransactionPayloadMultiSig>;
5650
5740
  declare function generateTransactionPayloadWithABI(args: InputEntryFunctionDataWithABI): TransactionPayloadEntryFunction;
5651
5741
  declare function generateTransactionPayloadWithABI(args: InputMultiSigDataWithABI): TransactionPayloadMultiSig;
5742
+ declare function generateViewFunctionPayload(args: InputViewFunctionDataWithRemoteABI): Promise<EntryFunction>;
5743
+ declare function generateViewFunctionPayloadWithABI(args: InputViewFunctionDataWithABI): EntryFunction;
5652
5744
  /**
5653
5745
  * Generates a raw transaction
5654
5746
  *
@@ -5708,6 +5800,16 @@ declare function sign(args: {
5708
5800
  * @returns A SignedTransaction
5709
5801
  */
5710
5802
  declare function generateSignedTransaction(args: InputSubmitTransactionData): Uint8Array;
5803
+ /**
5804
+ * Hashes the set of values with a SHA-3 256 hash
5805
+ * @param input array of UTF-8 strings or Uint8array byte arrays
5806
+ */
5807
+ declare function hashValues(input: (Uint8Array | string)[]): Uint8Array;
5808
+ /**
5809
+ * Generates a user transaction hash for the given transaction payload. It must already have an authenticator
5810
+ * @param args InputSubmitTransactionData
5811
+ */
5812
+ declare function generateUserTransactionHash(args: InputSubmitTransactionData): string;
5711
5813
  /**
5712
5814
  * Derive the raw transaction type - FeePayerRawTransaction or MultiAgentRawTransaction or RawTransaction
5713
5815
  *
@@ -5732,6 +5834,14 @@ declare function generateSigningMessage(transaction: AnyRawTransaction): Uint8Ar
5732
5834
  * Convert type arguments to only type tags, allowing for string representations of type tags
5733
5835
  */
5734
5836
  declare function standardizeTypeTags(typeArguments?: Array<TypeTag | string>): Array<TypeTag>;
5837
+ /**
5838
+ * Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.
5839
+ * @param moduleAddress
5840
+ * @param moduleName
5841
+ * @param functionName
5842
+ * @param aptosConfig
5843
+ */
5844
+ declare function fetchFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<MoveFunction | undefined>;
5735
5845
  /**
5736
5846
  * Fetches the ABI for an entry function from the module
5737
5847
  *
@@ -5741,6 +5851,15 @@ declare function standardizeTypeTags(typeArguments?: Array<TypeTag | string>): A
5741
5851
  * @param aptosConfig
5742
5852
  */
5743
5853
  declare function fetchEntryFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<EntryFunctionABI>;
5854
+ /**
5855
+ * Fetches the ABI for a view function from the module
5856
+ *
5857
+ * @param moduleAddress
5858
+ * @param moduleName
5859
+ * @param functionName
5860
+ * @param aptosConfig
5861
+ */
5862
+ declare function fetchViewFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<ViewFunctionABI>;
5744
5863
  /**
5745
5864
  * Converts a non-BCS encoded argument into BCS encoded, if necessary
5746
5865
  * @param functionName
@@ -5748,7 +5867,7 @@ declare function fetchEntryFunctionAbi(moduleAddress: string, moduleName: string
5748
5867
  * @param arg
5749
5868
  * @param position
5750
5869
  */
5751
- declare function convertArgument(functionName: string, functionAbi: EntryFunctionABI, arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes, position: number, genericTypeParams: Array<TypeTag>): EntryFunctionArgumentTypes;
5870
+ declare function convertArgument(functionName: string, functionAbi: FunctionABI, arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes, position: number, genericTypeParams: Array<TypeTag>): EntryFunctionArgumentTypes;
5752
5871
  declare function checkOrConvertArgument(arg: SimpleEntryFunctionArgumentTypes | EntryFunctionArgumentTypes, param: TypeTag, position: number, genericTypeParams: Array<TypeTag>): EntryFunctionArgumentTypes;
5753
5872
 
5754
5873
  declare enum TypeTagParserErrorType {
@@ -5960,7 +6079,7 @@ declare class General {
5960
6079
  * @returns an array of Move values
5961
6080
  */
5962
6081
  view<T extends Array<MoveValue>>(args: {
5963
- payload: InputViewRequestData;
6082
+ payload: InputViewFunctionData;
5964
6083
  options?: LedgerVersionArg;
5965
6084
  }): Promise<T>;
5966
6085
  /**
@@ -5975,7 +6094,7 @@ declare class General {
5975
6094
  /**
5976
6095
  * A generic function for retrieving data from Aptos Indexer.
5977
6096
  * For more detailed queries specification see
5978
- * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://indexer.mainnet.aptoslabs.com/v1/graphql}
6097
+ * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
5979
6098
  *
5980
6099
  * @param args.query.query A GraphQL query
5981
6100
  * @param args.query.variables The variables for the query
@@ -6068,11 +6187,11 @@ declare class ANS {
6068
6187
  *
6069
6188
  * @param args.name - A string of the name to retrieve
6070
6189
  *
6071
- * @returns MoveAddressType if the name is owned, undefined otherwise
6190
+ * @returns AccountAddress if the name is owned, undefined otherwise
6072
6191
  */
6073
6192
  getOwnerAddress(args: {
6074
6193
  name: string;
6075
- }): Promise<MoveAddressType | undefined>;
6194
+ }): Promise<AccountAddress | undefined>;
6076
6195
  /**
6077
6196
  * Retrieve the expiration time of a domain name or subdomain name from the contract.
6078
6197
  *
@@ -6101,11 +6220,11 @@ declare class ANS {
6101
6220
  *
6102
6221
  * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
6103
6222
  *
6104
- * @returns MoveAddressType if the name has a target, undefined otherwise
6223
+ * @returns AccountAddress if the name has a target, undefined otherwise
6105
6224
  */
6106
6225
  getTargetAddress(args: {
6107
6226
  name: string;
6108
- }): Promise<MoveAddressType | undefined>;
6227
+ }): Promise<AccountAddress | undefined>;
6109
6228
  /**
6110
6229
  * Sets the target address of a domain or subdomain name. This is the
6111
6230
  * address the name points to for use on chain. Note, the target address can
@@ -7039,7 +7158,7 @@ declare function request<Req, Res>(options: ClientRequest<Req>, client: Client):
7039
7158
  * @param aptosConfig The config information for the SDK client instance
7040
7159
  * @returns the response or AptosApiError
7041
7160
  */
7042
- declare function aptosRequest<Req extends {}, Res extends {}>(options: AptosRequest, aptosConfig: AptosConfig): Promise<AptosResponse<Req, Res>>;
7161
+ declare function aptosRequest<Req extends {}, Res extends {}>(options: AptosRequest, aptosConfig: AptosConfig, apiType: AptosApiType): Promise<AptosResponse<Req, Res>>;
7043
7162
 
7044
7163
  type GetRequestOptions = {
7045
7164
  /**
@@ -7136,4 +7255,4 @@ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: Post
7136
7255
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7137
7256
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7138
7257
 
7139
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, FeePayerRawTransaction, FixedBytes, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewRequestData, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, type MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, type SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewRequest, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
7258
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };