@aptos-labs/ts-sdk 1.31.0 → 1.32.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 (541) hide show
  1. package/README.md +1 -1
  2. package/dist/common/{accountAddress-DnSqjhSl.d.ts → accountAddress-6RqI8Aam.d.ts} +144 -63
  3. package/dist/common/chunk-F43XVDYJ.js +2 -0
  4. package/dist/common/chunk-F43XVDYJ.js.map +1 -0
  5. package/dist/common/cli/index.d.ts +1 -1
  6. package/dist/common/cli/index.js +1 -1
  7. package/dist/common/cli/index.js.map +1 -1
  8. package/dist/common/index.d.ts +542 -111
  9. package/dist/common/index.js +36 -29
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/esm/{Ed25519Account-DpH9qAcg.d.mts → Ed25519Account-B3xHXAQe.d.mts} +2 -2
  12. package/dist/esm/account/AbstractKeylessAccount.d.mts +86 -14
  13. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/Account.d.mts +5 -4
  15. package/dist/esm/account/Account.mjs +1 -1
  16. package/dist/esm/account/Ed25519Account.d.mts +5 -4
  17. package/dist/esm/account/Ed25519Account.mjs +1 -1
  18. package/dist/esm/account/EphemeralKeyPair.d.mts +4 -3
  19. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  20. package/dist/esm/account/FederatedKeylessAccount.d.mts +57 -8
  21. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  22. package/dist/esm/account/KeylessAccount.d.mts +29 -11
  23. package/dist/esm/account/KeylessAccount.mjs +1 -1
  24. package/dist/esm/account/MultiKeyAccount.d.mts +23 -10
  25. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  26. package/dist/esm/account/SingleKeyAccount.d.mts +5 -4
  27. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  28. package/dist/esm/account/index.d.mts +6 -5
  29. package/dist/esm/account/index.mjs +1 -1
  30. package/dist/esm/api/account.d.mts +6 -5
  31. package/dist/esm/api/account.mjs +1 -1
  32. package/dist/esm/api/ans.d.mts +4 -3
  33. package/dist/esm/api/ans.mjs +1 -1
  34. package/dist/esm/api/aptos.d.mts +6 -4
  35. package/dist/esm/api/aptos.mjs +1 -1
  36. package/dist/esm/api/aptosConfig.d.mts +2 -1
  37. package/dist/esm/api/coin.d.mts +4 -3
  38. package/dist/esm/api/coin.mjs +1 -1
  39. package/dist/esm/api/digitalAsset.d.mts +6 -5
  40. package/dist/esm/api/digitalAsset.mjs +1 -1
  41. package/dist/esm/api/event.d.mts +4 -3
  42. package/dist/esm/api/event.mjs +1 -1
  43. package/dist/esm/api/faucet.d.mts +3 -2
  44. package/dist/esm/api/faucet.mjs +1 -1
  45. package/dist/esm/api/fungibleAsset.d.mts +6 -5
  46. package/dist/esm/api/fungibleAsset.mjs +1 -1
  47. package/dist/esm/api/general.d.mts +4 -3
  48. package/dist/esm/api/general.mjs +1 -1
  49. package/dist/esm/api/index.d.mts +6 -4
  50. package/dist/esm/api/index.mjs +1 -1
  51. package/dist/esm/api/keyless.d.mts +7 -6
  52. package/dist/esm/api/keyless.mjs +1 -1
  53. package/dist/esm/api/object.d.mts +4 -3
  54. package/dist/esm/api/object.mjs +1 -1
  55. package/dist/esm/api/staking.d.mts +4 -3
  56. package/dist/esm/api/staking.mjs +1 -1
  57. package/dist/esm/api/table.d.mts +4 -3
  58. package/dist/esm/api/table.mjs +1 -1
  59. package/dist/esm/api/transaction.d.mts +5 -3
  60. package/dist/esm/api/transaction.mjs +1 -1
  61. package/dist/esm/api/transactionSubmission/build.d.mts +69 -3
  62. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  63. package/dist/esm/api/transactionSubmission/management.d.mts +5 -4
  64. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  65. package/dist/esm/api/transactionSubmission/sign.d.mts +5 -4
  66. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  67. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  68. package/dist/esm/api/transactionSubmission/simulate.d.mts +4 -3
  69. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  70. package/dist/esm/api/transactionSubmission/submit.d.mts +4 -3
  71. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  72. package/dist/esm/api/utils.d.mts +3 -2
  73. package/dist/esm/api/utils.mjs +1 -1
  74. package/dist/esm/bcs/consts.d.mts +3 -2
  75. package/dist/esm/bcs/deserializer.d.mts +36 -27
  76. package/dist/esm/bcs/deserializer.mjs +1 -1
  77. package/dist/esm/bcs/index.d.mts +3 -2
  78. package/dist/esm/bcs/index.mjs +1 -1
  79. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +3 -2
  80. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  81. package/dist/esm/bcs/serializable/fixedBytes.d.mts +3 -2
  82. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  83. package/dist/esm/bcs/serializable/movePrimitives.d.mts +3 -2
  84. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  85. package/dist/esm/bcs/serializable/moveStructs.d.mts +12 -12
  86. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  87. package/dist/esm/bcs/serializer.d.mts +14 -13
  88. package/dist/esm/bcs/serializer.mjs +1 -1
  89. package/dist/esm/{chunk-4ZK3JNQT.mjs → chunk-2NHQQQZK.mjs} +2 -2
  90. package/dist/esm/{chunk-MSHZ4FWB.mjs → chunk-2QBCTW67.mjs} +2 -2
  91. package/dist/esm/{chunk-MSHZ4FWB.mjs.map → chunk-2QBCTW67.mjs.map} +1 -1
  92. package/dist/esm/{chunk-F2RY4YQ7.mjs → chunk-37Y54PJ5.mjs} +2 -2
  93. package/dist/esm/chunk-3DQVGPFE.mjs +2 -0
  94. package/dist/esm/chunk-3DQVGPFE.mjs.map +1 -0
  95. package/dist/esm/{chunk-OAEDFM7T.mjs → chunk-3XCYCFYI.mjs} +2 -2
  96. package/dist/esm/{chunk-6FLHGOKP.mjs → chunk-42H7WETG.mjs} +2 -2
  97. package/dist/esm/{chunk-AZ6LVQEG.mjs → chunk-46L6BAJG.mjs} +2 -2
  98. package/dist/esm/{chunk-KW4FVBDD.mjs → chunk-4DNCQM3S.mjs} +2 -2
  99. package/dist/esm/chunk-4O5XDQDO.mjs +2 -0
  100. package/dist/esm/chunk-4PBXTMN3.mjs +2 -0
  101. package/dist/esm/chunk-4PBXTMN3.mjs.map +1 -0
  102. package/dist/esm/chunk-4YEOOZ2N.mjs +4 -0
  103. package/dist/esm/{chunk-HM5HITUC.mjs.map → chunk-4YEOOZ2N.mjs.map} +1 -1
  104. package/dist/esm/{chunk-5N6KJ7KS.mjs → chunk-5AKSORBJ.mjs} +2 -2
  105. package/dist/esm/chunk-5B3SMBXQ.mjs +2 -0
  106. package/dist/esm/{chunk-UCRROMZN.mjs → chunk-5NJWJXSS.mjs} +2 -2
  107. package/dist/esm/{chunk-CL6EEMSL.mjs → chunk-6K4TOFCO.mjs} +2 -2
  108. package/dist/esm/{chunk-RNJHULIT.mjs → chunk-6LLGRGCN.mjs} +2 -2
  109. package/dist/esm/chunk-6LLGRGCN.mjs.map +1 -0
  110. package/dist/esm/{chunk-IAVI3H4V.mjs → chunk-6PJH53CK.mjs} +2 -2
  111. package/dist/esm/{chunk-PCLU4KLY.mjs → chunk-6ZOVTYLJ.mjs} +2 -2
  112. package/dist/esm/chunk-7ECCT6PK.mjs +1 -0
  113. package/dist/esm/chunk-7WXDXBXK.mjs +2 -0
  114. package/dist/esm/{chunk-WV2VJQDS.mjs.map → chunk-7WXDXBXK.mjs.map} +1 -1
  115. package/dist/esm/{chunk-RAJTNQNL.mjs → chunk-AAATWCJT.mjs} +2 -2
  116. package/dist/esm/{chunk-NODYW7DM.mjs → chunk-ACVIE7IE.mjs} +2 -2
  117. package/dist/esm/chunk-AHWZA3GD.mjs +2 -0
  118. package/dist/esm/chunk-AHWZA3GD.mjs.map +1 -0
  119. package/dist/esm/{chunk-QQIVWB6G.mjs → chunk-AJ5JHBAE.mjs} +2 -2
  120. package/dist/esm/{chunk-QQIVWB6G.mjs.map → chunk-AJ5JHBAE.mjs.map} +1 -1
  121. package/dist/esm/{chunk-PRZ7AIGA.mjs → chunk-AKIO3OIT.mjs} +2 -2
  122. package/dist/esm/chunk-AMCJQIOT.mjs +2 -0
  123. package/dist/esm/{chunk-2CGJLPHP.mjs.map → chunk-AMCJQIOT.mjs.map} +1 -1
  124. package/dist/esm/{chunk-KRVLR3L4.mjs → chunk-AOROYJ74.mjs} +2 -2
  125. package/dist/esm/chunk-AVPQOD67.mjs +2 -0
  126. package/dist/esm/chunk-AVPQOD67.mjs.map +1 -0
  127. package/dist/esm/chunk-AVZYJAXR.mjs +2 -0
  128. package/dist/esm/chunk-AVZYJAXR.mjs.map +1 -0
  129. package/dist/esm/{chunk-6DMDYBV6.mjs → chunk-BLLHTGAP.mjs} +2 -2
  130. package/dist/esm/{chunk-JGNMNCQB.mjs → chunk-BRV3RLKW.mjs} +2 -2
  131. package/dist/esm/{chunk-7JK7UG4E.mjs → chunk-CA3Q2X6B.mjs} +2 -2
  132. package/dist/esm/chunk-D52UKPQF.mjs +2 -0
  133. package/dist/esm/chunk-D52UKPQF.mjs.map +1 -0
  134. package/dist/esm/{chunk-SOLWFAUY.mjs → chunk-DDVOBEJA.mjs} +2 -2
  135. package/dist/esm/chunk-DDVOBEJA.mjs.map +1 -0
  136. package/dist/esm/{chunk-RNRNGJDA.mjs → chunk-DP3YPGIK.mjs} +2 -2
  137. package/dist/esm/{chunk-KYJU5PWF.mjs → chunk-DSKAMBBL.mjs} +2 -2
  138. package/dist/esm/{chunk-L5J3V3HW.mjs → chunk-E2NYQVP3.mjs} +2 -2
  139. package/dist/esm/chunk-EEB7EZFO.mjs +2 -0
  140. package/dist/esm/chunk-EEB7EZFO.mjs.map +1 -0
  141. package/dist/esm/{chunk-4JXB6V5O.mjs → chunk-F2AIWA7L.mjs} +2 -2
  142. package/dist/esm/chunk-F45G3GP3.mjs +7 -0
  143. package/dist/esm/chunk-F45G3GP3.mjs.map +1 -0
  144. package/dist/esm/{chunk-WSZCPSV4.mjs → chunk-FXUI3SSD.mjs} +2 -2
  145. package/dist/esm/chunk-G2GN4LH5.mjs +2 -0
  146. package/dist/esm/chunk-G2GN4LH5.mjs.map +1 -0
  147. package/dist/esm/chunk-GBVRCWCD.mjs +2 -0
  148. package/dist/esm/chunk-GBVRCWCD.mjs.map +1 -0
  149. package/dist/esm/chunk-H457BI3I.mjs +2 -0
  150. package/dist/esm/chunk-H457BI3I.mjs.map +1 -0
  151. package/dist/esm/{chunk-A2AEFKXS.mjs → chunk-HEHVWRMO.mjs} +2 -2
  152. package/dist/esm/{chunk-UGL2GPGK.mjs → chunk-HFWFDS6Y.mjs} +2 -2
  153. package/dist/esm/{chunk-OXM4BVAY.mjs → chunk-HXXELLHN.mjs} +2 -2
  154. package/dist/esm/{chunk-RBJNSUSU.mjs → chunk-IBMZYDAR.mjs} +2 -2
  155. package/dist/esm/{chunk-AT2ZGTXQ.mjs → chunk-IDNDUJOK.mjs} +2 -2
  156. package/dist/esm/{chunk-3H5DGQKX.mjs → chunk-II654QZU.mjs} +2 -2
  157. package/dist/esm/{chunk-JNRMHDRA.mjs → chunk-JDNI5VIJ.mjs} +2 -2
  158. package/dist/esm/{chunk-73GCGRFW.mjs → chunk-JJUINAQE.mjs} +2 -2
  159. package/dist/esm/{chunk-VYMRIKUV.mjs → chunk-JLD7DLKM.mjs} +2 -2
  160. package/dist/esm/chunk-JNO7KPMG.mjs +4 -0
  161. package/dist/esm/chunk-JNO7KPMG.mjs.map +1 -0
  162. package/dist/esm/chunk-K4TJRYGQ.mjs +2 -0
  163. package/dist/esm/chunk-K4TJRYGQ.mjs.map +1 -0
  164. package/dist/esm/{chunk-XFJD6QIP.mjs → chunk-KA5FX53Q.mjs} +2 -2
  165. package/dist/esm/{chunk-2GEIHUHT.mjs → chunk-KT3DT5GV.mjs} +2 -2
  166. package/dist/esm/chunk-KT3DT5GV.mjs.map +1 -0
  167. package/dist/esm/chunk-KUL55M2H.mjs +2 -0
  168. package/dist/esm/chunk-KUL55M2H.mjs.map +1 -0
  169. package/dist/esm/{chunk-ZPIMARUG.mjs → chunk-L2QVUMBV.mjs} +2 -2
  170. package/dist/esm/chunk-L2SDI7PI.mjs +2 -0
  171. package/dist/esm/chunk-L2SDI7PI.mjs.map +1 -0
  172. package/dist/esm/chunk-L56DQ4N3.mjs +2 -0
  173. package/dist/esm/chunk-L56DQ4N3.mjs.map +1 -0
  174. package/dist/esm/{chunk-TPJLAYW6.mjs → chunk-LAAFLCDM.mjs} +2 -2
  175. package/dist/esm/{chunk-AGBA3Y7A.mjs → chunk-LGTOOAQI.mjs} +2 -2
  176. package/dist/esm/chunk-MHN6XY4Z.mjs +2 -0
  177. package/dist/esm/{chunk-JVTDP4KV.mjs → chunk-MOGPSSTD.mjs} +2 -2
  178. package/dist/esm/{chunk-WZCKSN2U.mjs → chunk-NARS3JDH.mjs} +2 -2
  179. package/dist/esm/{chunk-YZ5BCOGI.mjs → chunk-NHKAQRJB.mjs} +2 -2
  180. package/dist/esm/{chunk-PHP47DI4.mjs → chunk-OIOGOW6I.mjs} +1 -1
  181. package/dist/esm/{chunk-PHP47DI4.mjs.map → chunk-OIOGOW6I.mjs.map} +1 -1
  182. package/dist/esm/{chunk-T5BCTWGK.mjs → chunk-OJBMR5CT.mjs} +2 -2
  183. package/dist/esm/chunk-OJBMR5CT.mjs.map +1 -0
  184. package/dist/esm/{chunk-LDZPO76C.mjs → chunk-OKE3FXIP.mjs} +2 -2
  185. package/dist/esm/chunk-ONFKJ57C.mjs +2 -0
  186. package/dist/esm/chunk-ONFKJ57C.mjs.map +1 -0
  187. package/dist/esm/{chunk-ZINOJTLU.mjs → chunk-OPO5EYF7.mjs} +2 -2
  188. package/dist/esm/{chunk-BVVHGSWC.mjs → chunk-PW3ISXPN.mjs} +2 -2
  189. package/dist/esm/{chunk-CC7VOPYH.mjs → chunk-QQM47PHZ.mjs} +2 -2
  190. package/dist/esm/{chunk-EUGLLGYW.mjs → chunk-SBCLBDCP.mjs} +2 -2
  191. package/dist/esm/chunk-SPRNSFUV.mjs +2 -0
  192. package/dist/esm/chunk-SPRNSFUV.mjs.map +1 -0
  193. package/dist/esm/{chunk-EE7GDBA5.mjs → chunk-SU2WB34N.mjs} +2 -2
  194. package/dist/esm/{chunk-OTY3NO7Q.mjs → chunk-T6ADNZE5.mjs} +2 -2
  195. package/dist/esm/{chunk-IECDO22V.mjs → chunk-TM7OZT3W.mjs} +2 -2
  196. package/dist/esm/chunk-TM7OZT3W.mjs.map +1 -0
  197. package/dist/esm/chunk-UGTIALNW.mjs +2 -0
  198. package/dist/esm/chunk-UIRAXHDH.mjs +1 -0
  199. package/dist/esm/chunk-UZTJWOLS.mjs +2 -0
  200. package/dist/esm/chunk-V4FKFCBL.mjs +2 -0
  201. package/dist/esm/chunk-V4FKFCBL.mjs.map +1 -0
  202. package/dist/esm/{chunk-ZPQUCT22.mjs → chunk-VCY3JGZM.mjs} +2 -2
  203. package/dist/esm/{chunk-XOCRDV2V.mjs → chunk-VQZMI3EZ.mjs} +2 -2
  204. package/dist/esm/chunk-WGIYSLH6.mjs +2 -0
  205. package/dist/esm/chunk-WGIYSLH6.mjs.map +1 -0
  206. package/dist/esm/{chunk-2652SPOM.mjs → chunk-WKNX43KN.mjs} +2 -2
  207. package/dist/esm/chunk-WKNX43KN.mjs.map +1 -0
  208. package/dist/esm/chunk-WQF3IOXC.mjs +2 -0
  209. package/dist/esm/chunk-WQF3IOXC.mjs.map +1 -0
  210. package/dist/esm/{chunk-IFXUWUP2.mjs → chunk-WSFHH3BK.mjs} +2 -2
  211. package/dist/esm/{chunk-4LKLOUMG.mjs → chunk-X3JPX7T6.mjs} +2 -2
  212. package/dist/esm/{chunk-22ZSW5EN.mjs → chunk-XKOSS5KC.mjs} +2 -2
  213. package/dist/esm/{chunk-BG2TZI3H.mjs → chunk-XT5T5LAP.mjs} +2 -2
  214. package/dist/esm/chunk-XUP6VABV.mjs +2 -0
  215. package/dist/esm/chunk-XUP6VABV.mjs.map +1 -0
  216. package/dist/esm/{chunk-XQ7ONNII.mjs → chunk-YNT7JHMS.mjs} +2 -2
  217. package/dist/esm/{chunk-BOWPP6YG.mjs → chunk-YPBNYKOD.mjs} +2 -2
  218. package/dist/esm/{chunk-MK2QAHXC.mjs → chunk-YZ3YPLEU.mjs} +2 -2
  219. package/dist/esm/{chunk-OZN3OOJV.mjs → chunk-ZMBXHMVQ.mjs} +2 -2
  220. package/dist/esm/{chunk-XFY4O2S3.mjs → chunk-ZRWZIAF5.mjs} +2 -2
  221. package/dist/esm/cli/index.d.mts +3 -2
  222. package/dist/esm/cli/index.mjs +1 -1
  223. package/dist/esm/cli/localNode.mjs +1 -1
  224. package/dist/esm/cli/move.d.mts +2 -1
  225. package/dist/esm/client/core.d.mts +2 -2
  226. package/dist/esm/client/core.mjs +1 -1
  227. package/dist/esm/client/get.d.mts +2 -2
  228. package/dist/esm/client/get.mjs +1 -1
  229. package/dist/esm/client/index.d.mts +3 -3
  230. package/dist/esm/client/index.mjs +1 -1
  231. package/dist/esm/client/post.d.mts +2 -2
  232. package/dist/esm/client/post.mjs +1 -1
  233. package/dist/esm/core/account/index.d.mts +3 -2
  234. package/dist/esm/core/account/index.mjs +1 -1
  235. package/dist/esm/core/account/utils/address.d.mts +3 -2
  236. package/dist/esm/core/account/utils/address.mjs +1 -1
  237. package/dist/esm/core/account/utils/index.d.mts +3 -2
  238. package/dist/esm/core/account/utils/index.mjs +1 -1
  239. package/dist/esm/core/accountAddress.d.mts +20 -10
  240. package/dist/esm/core/accountAddress.mjs +1 -1
  241. package/dist/esm/core/authenticationKey.d.mts +4 -3
  242. package/dist/esm/core/authenticationKey.mjs +1 -1
  243. package/dist/esm/core/crypto/ed25519.d.mts +27 -12
  244. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  245. package/dist/esm/core/crypto/ephemeral.d.mts +4 -3
  246. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  247. package/dist/esm/core/crypto/federatedKeyless.d.mts +5 -4
  248. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  249. package/dist/esm/core/crypto/hdKey.d.mts +0 -1
  250. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  251. package/dist/esm/core/crypto/index.d.mts +5 -4
  252. package/dist/esm/core/crypto/index.mjs +1 -1
  253. package/dist/esm/core/crypto/keyless.d.mts +73 -11
  254. package/dist/esm/core/crypto/keyless.mjs +1 -1
  255. package/dist/esm/core/crypto/multiEd25519.d.mts +4 -3
  256. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  257. package/dist/esm/core/crypto/multiKey.d.mts +4 -3
  258. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  259. package/dist/esm/core/crypto/privateKey.d.mts +38 -10
  260. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  261. package/dist/esm/core/crypto/proof.d.mts +3 -2
  262. package/dist/esm/core/crypto/proof.mjs +1 -1
  263. package/dist/esm/core/crypto/publicKey.d.mts +4 -3
  264. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  265. package/dist/esm/core/crypto/secp256k1.d.mts +24 -9
  266. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  267. package/dist/esm/core/crypto/signature.d.mts +3 -2
  268. package/dist/esm/core/crypto/signature.mjs +1 -1
  269. package/dist/esm/core/crypto/singleKey.d.mts +4 -3
  270. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  271. package/dist/esm/core/crypto/utils.d.mts +3 -2
  272. package/dist/esm/core/crypto/utils.mjs +1 -1
  273. package/dist/esm/core/hex.d.mts +40 -3
  274. package/dist/esm/core/hex.mjs +1 -1
  275. package/dist/esm/core/index.d.mts +6 -5
  276. package/dist/esm/core/index.mjs +1 -1
  277. package/dist/esm/errors/index.d.mts +123 -0
  278. package/dist/esm/errors/index.mjs +2 -0
  279. package/dist/esm/index.d.mts +13 -11
  280. package/dist/esm/index.mjs +1 -1
  281. package/dist/esm/internal/account.d.mts +5 -4
  282. package/dist/esm/internal/account.mjs +1 -1
  283. package/dist/esm/internal/ans.d.mts +5 -4
  284. package/dist/esm/internal/ans.mjs +1 -1
  285. package/dist/esm/internal/coin.d.mts +3 -2
  286. package/dist/esm/internal/coin.mjs +1 -1
  287. package/dist/esm/internal/digitalAsset.d.mts +5 -4
  288. package/dist/esm/internal/digitalAsset.mjs +1 -1
  289. package/dist/esm/internal/event.d.mts +3 -2
  290. package/dist/esm/internal/event.mjs +1 -1
  291. package/dist/esm/internal/faucet.d.mts +2 -1
  292. package/dist/esm/internal/faucet.mjs +1 -1
  293. package/dist/esm/internal/fungibleAsset.d.mts +5 -4
  294. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  295. package/dist/esm/internal/general.d.mts +3 -2
  296. package/dist/esm/internal/general.mjs +1 -1
  297. package/dist/esm/internal/keyless.d.mts +10 -5
  298. package/dist/esm/internal/keyless.mjs +1 -1
  299. package/dist/esm/internal/object.d.mts +3 -2
  300. package/dist/esm/internal/object.mjs +1 -1
  301. package/dist/esm/internal/staking.d.mts +2 -1
  302. package/dist/esm/internal/staking.mjs +1 -1
  303. package/dist/esm/internal/table.d.mts +3 -2
  304. package/dist/esm/internal/table.mjs +1 -1
  305. package/dist/esm/internal/transaction.d.mts +2 -1
  306. package/dist/esm/internal/transaction.mjs +1 -1
  307. package/dist/esm/internal/transactionSubmission.d.mts +4 -3
  308. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  309. package/dist/esm/internal/view.d.mts +4 -3
  310. package/dist/esm/internal/view.mjs +1 -1
  311. package/dist/esm/{publicKey-_tPa99ea.d.mts → publicKey-BVXX1nVl.d.mts} +2 -2
  312. package/dist/esm/transactions/authenticator/account.d.mts +4 -3
  313. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  314. package/dist/esm/transactions/authenticator/index.d.mts +4 -3
  315. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  316. package/dist/esm/transactions/authenticator/transaction.d.mts +10 -4
  317. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  318. package/dist/esm/transactions/index.d.mts +7 -5
  319. package/dist/esm/transactions/index.mjs +1 -1
  320. package/dist/esm/transactions/instances/chainId.d.mts +3 -2
  321. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  322. package/dist/esm/transactions/instances/identifier.d.mts +3 -2
  323. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  324. package/dist/esm/transactions/instances/index.d.mts +4 -3
  325. package/dist/esm/transactions/instances/index.mjs +1 -1
  326. package/dist/esm/transactions/instances/moduleId.d.mts +3 -2
  327. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  328. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +3 -2
  329. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  330. package/dist/esm/transactions/instances/rawTransaction.d.mts +3 -2
  331. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  332. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +4 -3
  333. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  334. package/dist/esm/transactions/instances/signedTransaction.d.mts +4 -3
  335. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  336. package/dist/esm/transactions/instances/simpleTransaction.d.mts +3 -2
  337. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  338. package/dist/esm/transactions/instances/transactionArgument.d.mts +3 -2
  339. package/dist/esm/transactions/instances/transactionPayload.d.mts +3 -2
  340. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  341. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +5 -4
  342. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  343. package/dist/esm/transactions/management/index.d.mts +5 -4
  344. package/dist/esm/transactions/management/index.mjs +1 -1
  345. package/dist/esm/transactions/management/transactionWorker.d.mts +5 -4
  346. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  347. package/dist/esm/transactions/script-composer/index.d.mts +44 -0
  348. package/dist/esm/transactions/script-composer/index.mjs +2 -0
  349. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -2
  350. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  351. package/dist/esm/transactions/transactionBuilder/index.d.mts +5 -4
  352. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  353. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +26 -5
  354. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  355. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +4 -3
  356. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  357. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +4 -3
  358. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  359. package/dist/esm/transactions/typeTag/index.d.mts +3 -2
  360. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  361. package/dist/esm/transactions/typeTag/parser.d.mts +3 -2
  362. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  363. package/dist/esm/transactions/types.d.mts +12 -3
  364. package/dist/esm/types/index.d.mts +4 -1260
  365. package/dist/esm/types/index.mjs +1 -1
  366. package/dist/esm/types/keyless.d.mts +22 -1
  367. package/dist/esm/types/types.d.mts +1290 -0
  368. package/dist/esm/types/types.mjs +2 -0
  369. package/dist/esm/types/types.mjs.map +1 -0
  370. package/dist/esm/utils/helpers.d.mts +11 -3
  371. package/dist/esm/utils/helpers.mjs +1 -1
  372. package/dist/esm/utils/index.d.mts +3 -2
  373. package/dist/esm/utils/index.mjs +1 -1
  374. package/dist/esm/utils/normalizeBundle.d.mts +3 -2
  375. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  376. package/dist/esm/version.d.mts +1 -1
  377. package/dist/esm/version.mjs +1 -1
  378. package/package.json +2 -1
  379. package/src/account/AbstractKeylessAccount.ts +203 -10
  380. package/src/account/FederatedKeylessAccount.ts +83 -35
  381. package/src/account/KeylessAccount.ts +44 -37
  382. package/src/account/MultiKeyAccount.ts +18 -5
  383. package/src/api/keyless.ts +2 -2
  384. package/src/api/transactionSubmission/build.ts +82 -1
  385. package/src/bcs/deserializer.ts +53 -30
  386. package/src/bcs/serializable/moveStructs.ts +16 -17
  387. package/src/bcs/serializer.ts +22 -12
  388. package/src/client/core.ts +2 -2
  389. package/src/client/get.ts +1 -2
  390. package/src/client/index.ts +0 -1
  391. package/src/client/post.ts +1 -2
  392. package/src/core/accountAddress.ts +36 -9
  393. package/src/core/crypto/ed25519.ts +34 -14
  394. package/src/core/crypto/hdKey.ts +0 -1
  395. package/src/core/crypto/keyless.ts +245 -38
  396. package/src/core/crypto/privateKey.ts +81 -5
  397. package/src/core/crypto/secp256k1.ts +31 -11
  398. package/src/core/hex.ts +47 -0
  399. package/src/errors/index.ts +406 -0
  400. package/src/index.ts +1 -0
  401. package/src/internal/account.ts +6 -6
  402. package/src/internal/ans.ts +2 -1
  403. package/src/internal/keyless.ts +46 -18
  404. package/src/internal/transaction.ts +2 -1
  405. package/src/internal/transactionSubmission.ts +36 -18
  406. package/src/transactions/authenticator/transaction.ts +20 -0
  407. package/src/transactions/index.ts +1 -0
  408. package/src/transactions/script-composer/index.ts +76 -0
  409. package/src/transactions/transactionBuilder/remoteAbi.ts +55 -1
  410. package/src/transactions/types.ts +11 -0
  411. package/src/types/index.ts +2 -1483
  412. package/src/types/keyless.ts +19 -0
  413. package/src/types/types.ts +1512 -0
  414. package/src/utils/helpers.ts +10 -0
  415. package/src/version.ts +1 -1
  416. package/dist/common/chunk-7IYTZDXV.js +0 -2
  417. package/dist/common/chunk-7IYTZDXV.js.map +0 -1
  418. package/dist/esm/chunk-2652SPOM.mjs.map +0 -1
  419. package/dist/esm/chunk-2CGJLPHP.mjs +0 -2
  420. package/dist/esm/chunk-2GEIHUHT.mjs.map +0 -1
  421. package/dist/esm/chunk-4CDDWSKZ.mjs +0 -2
  422. package/dist/esm/chunk-4OV7QU2U.mjs +0 -2
  423. package/dist/esm/chunk-4VU2ABLU.mjs +0 -2
  424. package/dist/esm/chunk-4VU2ABLU.mjs.map +0 -1
  425. package/dist/esm/chunk-5S3Z7MT4.mjs +0 -2
  426. package/dist/esm/chunk-5S3Z7MT4.mjs.map +0 -1
  427. package/dist/esm/chunk-5SGSPCOY.mjs +0 -2
  428. package/dist/esm/chunk-5SGSPCOY.mjs.map +0 -1
  429. package/dist/esm/chunk-7XS45O6M.mjs +0 -2
  430. package/dist/esm/chunk-7XS45O6M.mjs.map +0 -1
  431. package/dist/esm/chunk-BAGUHYFD.mjs +0 -2
  432. package/dist/esm/chunk-BAGUHYFD.mjs.map +0 -1
  433. package/dist/esm/chunk-CDQGPCHU.mjs +0 -2
  434. package/dist/esm/chunk-CDQGPCHU.mjs.map +0 -1
  435. package/dist/esm/chunk-DMSHPWA5.mjs +0 -2
  436. package/dist/esm/chunk-DMSHPWA5.mjs.map +0 -1
  437. package/dist/esm/chunk-FTZGP6XW.mjs +0 -2
  438. package/dist/esm/chunk-FTZGP6XW.mjs.map +0 -1
  439. package/dist/esm/chunk-GLATLXF6.mjs +0 -2
  440. package/dist/esm/chunk-GLATLXF6.mjs.map +0 -1
  441. package/dist/esm/chunk-GQABU3RQ.mjs +0 -2
  442. package/dist/esm/chunk-GQABU3RQ.mjs.map +0 -1
  443. package/dist/esm/chunk-HM5HITUC.mjs +0 -4
  444. package/dist/esm/chunk-I5OYNCZS.mjs +0 -1
  445. package/dist/esm/chunk-IBLZ6MZU.mjs +0 -2
  446. package/dist/esm/chunk-IECDO22V.mjs.map +0 -1
  447. package/dist/esm/chunk-JN36BNWA.mjs +0 -2
  448. package/dist/esm/chunk-JN36BNWA.mjs.map +0 -1
  449. package/dist/esm/chunk-KFNDDPOW.mjs +0 -2
  450. package/dist/esm/chunk-KFNDDPOW.mjs.map +0 -1
  451. package/dist/esm/chunk-KIW54KWR.mjs +0 -2
  452. package/dist/esm/chunk-KM6UXNC7.mjs +0 -2
  453. package/dist/esm/chunk-KM6UXNC7.mjs.map +0 -1
  454. package/dist/esm/chunk-KUX6GQ2E.mjs +0 -1
  455. package/dist/esm/chunk-LEKBJ2EG.mjs +0 -2
  456. package/dist/esm/chunk-LEKBJ2EG.mjs.map +0 -1
  457. package/dist/esm/chunk-M22UGFQ5.mjs +0 -2
  458. package/dist/esm/chunk-M22UGFQ5.mjs.map +0 -1
  459. package/dist/esm/chunk-N2FKVZ4D.mjs +0 -1
  460. package/dist/esm/chunk-N47FTRYO.mjs +0 -2
  461. package/dist/esm/chunk-N47FTRYO.mjs.map +0 -1
  462. package/dist/esm/chunk-ONBFUPEC.mjs +0 -2
  463. package/dist/esm/chunk-P3J54CQG.mjs +0 -2
  464. package/dist/esm/chunk-P3J54CQG.mjs.map +0 -1
  465. package/dist/esm/chunk-RNJHULIT.mjs.map +0 -1
  466. package/dist/esm/chunk-SGQFWWLQ.mjs +0 -2
  467. package/dist/esm/chunk-SGQFWWLQ.mjs.map +0 -1
  468. package/dist/esm/chunk-SOLWFAUY.mjs.map +0 -1
  469. package/dist/esm/chunk-T5BCTWGK.mjs.map +0 -1
  470. package/dist/esm/chunk-WV2VJQDS.mjs +0 -2
  471. package/dist/esm/chunk-Y267I7DC.mjs +0 -2
  472. package/dist/esm/chunk-Y267I7DC.mjs.map +0 -1
  473. package/dist/esm/client/types.d.mts +0 -66
  474. package/dist/esm/client/types.mjs +0 -2
  475. package/src/client/types.ts +0 -138
  476. /package/dist/esm/{chunk-4ZK3JNQT.mjs.map → chunk-2NHQQQZK.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-F2RY4YQ7.mjs.map → chunk-37Y54PJ5.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-OAEDFM7T.mjs.map → chunk-3XCYCFYI.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-6FLHGOKP.mjs.map → chunk-42H7WETG.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-AZ6LVQEG.mjs.map → chunk-46L6BAJG.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-KW4FVBDD.mjs.map → chunk-4DNCQM3S.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-IBLZ6MZU.mjs.map → chunk-4O5XDQDO.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-5N6KJ7KS.mjs.map → chunk-5AKSORBJ.mjs.map} +0 -0
  484. /package/dist/esm/{chunk-KIW54KWR.mjs.map → chunk-5B3SMBXQ.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-UCRROMZN.mjs.map → chunk-5NJWJXSS.mjs.map} +0 -0
  486. /package/dist/esm/{chunk-CL6EEMSL.mjs.map → chunk-6K4TOFCO.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-IAVI3H4V.mjs.map → chunk-6PJH53CK.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-PCLU4KLY.mjs.map → chunk-6ZOVTYLJ.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-I5OYNCZS.mjs.map → chunk-7ECCT6PK.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-RAJTNQNL.mjs.map → chunk-AAATWCJT.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-NODYW7DM.mjs.map → chunk-ACVIE7IE.mjs.map} +0 -0
  492. /package/dist/esm/{chunk-PRZ7AIGA.mjs.map → chunk-AKIO3OIT.mjs.map} +0 -0
  493. /package/dist/esm/{chunk-KRVLR3L4.mjs.map → chunk-AOROYJ74.mjs.map} +0 -0
  494. /package/dist/esm/{chunk-6DMDYBV6.mjs.map → chunk-BLLHTGAP.mjs.map} +0 -0
  495. /package/dist/esm/{chunk-JGNMNCQB.mjs.map → chunk-BRV3RLKW.mjs.map} +0 -0
  496. /package/dist/esm/{chunk-7JK7UG4E.mjs.map → chunk-CA3Q2X6B.mjs.map} +0 -0
  497. /package/dist/esm/{chunk-RNRNGJDA.mjs.map → chunk-DP3YPGIK.mjs.map} +0 -0
  498. /package/dist/esm/{chunk-KYJU5PWF.mjs.map → chunk-DSKAMBBL.mjs.map} +0 -0
  499. /package/dist/esm/{chunk-L5J3V3HW.mjs.map → chunk-E2NYQVP3.mjs.map} +0 -0
  500. /package/dist/esm/{chunk-4JXB6V5O.mjs.map → chunk-F2AIWA7L.mjs.map} +0 -0
  501. /package/dist/esm/{chunk-WSZCPSV4.mjs.map → chunk-FXUI3SSD.mjs.map} +0 -0
  502. /package/dist/esm/{chunk-A2AEFKXS.mjs.map → chunk-HEHVWRMO.mjs.map} +0 -0
  503. /package/dist/esm/{chunk-UGL2GPGK.mjs.map → chunk-HFWFDS6Y.mjs.map} +0 -0
  504. /package/dist/esm/{chunk-OXM4BVAY.mjs.map → chunk-HXXELLHN.mjs.map} +0 -0
  505. /package/dist/esm/{chunk-RBJNSUSU.mjs.map → chunk-IBMZYDAR.mjs.map} +0 -0
  506. /package/dist/esm/{chunk-AT2ZGTXQ.mjs.map → chunk-IDNDUJOK.mjs.map} +0 -0
  507. /package/dist/esm/{chunk-3H5DGQKX.mjs.map → chunk-II654QZU.mjs.map} +0 -0
  508. /package/dist/esm/{chunk-JNRMHDRA.mjs.map → chunk-JDNI5VIJ.mjs.map} +0 -0
  509. /package/dist/esm/{chunk-73GCGRFW.mjs.map → chunk-JJUINAQE.mjs.map} +0 -0
  510. /package/dist/esm/{chunk-VYMRIKUV.mjs.map → chunk-JLD7DLKM.mjs.map} +0 -0
  511. /package/dist/esm/{chunk-XFJD6QIP.mjs.map → chunk-KA5FX53Q.mjs.map} +0 -0
  512. /package/dist/esm/{chunk-ZPIMARUG.mjs.map → chunk-L2QVUMBV.mjs.map} +0 -0
  513. /package/dist/esm/{chunk-TPJLAYW6.mjs.map → chunk-LAAFLCDM.mjs.map} +0 -0
  514. /package/dist/esm/{chunk-AGBA3Y7A.mjs.map → chunk-LGTOOAQI.mjs.map} +0 -0
  515. /package/dist/esm/{chunk-4OV7QU2U.mjs.map → chunk-MHN6XY4Z.mjs.map} +0 -0
  516. /package/dist/esm/{chunk-JVTDP4KV.mjs.map → chunk-MOGPSSTD.mjs.map} +0 -0
  517. /package/dist/esm/{chunk-WZCKSN2U.mjs.map → chunk-NARS3JDH.mjs.map} +0 -0
  518. /package/dist/esm/{chunk-YZ5BCOGI.mjs.map → chunk-NHKAQRJB.mjs.map} +0 -0
  519. /package/dist/esm/{chunk-LDZPO76C.mjs.map → chunk-OKE3FXIP.mjs.map} +0 -0
  520. /package/dist/esm/{chunk-ZINOJTLU.mjs.map → chunk-OPO5EYF7.mjs.map} +0 -0
  521. /package/dist/esm/{chunk-BVVHGSWC.mjs.map → chunk-PW3ISXPN.mjs.map} +0 -0
  522. /package/dist/esm/{chunk-CC7VOPYH.mjs.map → chunk-QQM47PHZ.mjs.map} +0 -0
  523. /package/dist/esm/{chunk-EUGLLGYW.mjs.map → chunk-SBCLBDCP.mjs.map} +0 -0
  524. /package/dist/esm/{chunk-EE7GDBA5.mjs.map → chunk-SU2WB34N.mjs.map} +0 -0
  525. /package/dist/esm/{chunk-OTY3NO7Q.mjs.map → chunk-T6ADNZE5.mjs.map} +0 -0
  526. /package/dist/esm/{chunk-ONBFUPEC.mjs.map → chunk-UGTIALNW.mjs.map} +0 -0
  527. /package/dist/esm/{chunk-KUX6GQ2E.mjs.map → chunk-UIRAXHDH.mjs.map} +0 -0
  528. /package/dist/esm/{chunk-4CDDWSKZ.mjs.map → chunk-UZTJWOLS.mjs.map} +0 -0
  529. /package/dist/esm/{chunk-ZPQUCT22.mjs.map → chunk-VCY3JGZM.mjs.map} +0 -0
  530. /package/dist/esm/{chunk-XOCRDV2V.mjs.map → chunk-VQZMI3EZ.mjs.map} +0 -0
  531. /package/dist/esm/{chunk-IFXUWUP2.mjs.map → chunk-WSFHH3BK.mjs.map} +0 -0
  532. /package/dist/esm/{chunk-4LKLOUMG.mjs.map → chunk-X3JPX7T6.mjs.map} +0 -0
  533. /package/dist/esm/{chunk-22ZSW5EN.mjs.map → chunk-XKOSS5KC.mjs.map} +0 -0
  534. /package/dist/esm/{chunk-BG2TZI3H.mjs.map → chunk-XT5T5LAP.mjs.map} +0 -0
  535. /package/dist/esm/{chunk-XQ7ONNII.mjs.map → chunk-YNT7JHMS.mjs.map} +0 -0
  536. /package/dist/esm/{chunk-BOWPP6YG.mjs.map → chunk-YPBNYKOD.mjs.map} +0 -0
  537. /package/dist/esm/{chunk-MK2QAHXC.mjs.map → chunk-YZ3YPLEU.mjs.map} +0 -0
  538. /package/dist/esm/{chunk-OZN3OOJV.mjs.map → chunk-ZMBXHMVQ.mjs.map} +0 -0
  539. /package/dist/esm/{chunk-XFY4O2S3.mjs.map → chunk-ZRWZIAF5.mjs.map} +0 -0
  540. /package/dist/esm/{chunk-N2FKVZ4D.mjs.map → errors/index.mjs.map} +0 -0
  541. /package/dist/esm/{client/types.mjs.map → transactions/script-composer/index.mjs.map} +0 -0
@@ -1,5 +1,7 @@
1
- import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, n as AccountAddressInput, M as MoveModuleId, o as ScriptFunctionArgument, p as MoveFunctionId, q as MoveStructId, r as MoveValue, s as MoveFunctionGenericTypeParam, t as SigningSchemeInput, u as SigningScheme, v as AccountData, P as PaginationArgs, w as MoveModuleBytecode, x as TransactionResponse, y as MoveResource, z as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, B as GetAccountOwnedTokensFromCollectionResponse, J as GetAccountCollectionsWithOwnedTokenResponse, K as GetAccountCoinsDataResponse, W as WhereArg, Q as GetObjectDataQueryResponse, R as GetCollectionDataResponse, V as GetTokenDataResponse, X as GetCurrentTokenOwnershipResponse, Y as GetOwnedTokensResponse, _ as GetTokenActivityResponse, $ as GetEventsResponse, a0 as WaitForTransactionOptions, a1 as UserTransactionResponse, a2 as MoveFunction, a3 as GetFungibleAssetMetadataResponse, a4 as GetFungibleAssetActivitiesResponse, a5 as GetCurrentFungibleAssetBalancesResponse, a6 as LedgerInfo, a7 as Block, a8 as GetChainTopUserTransactionsResponse, a9 as GraphqlQuery, aa as GetProcessorStatusResponse, ab as GetANSNameResponse, ac as GetNumberOfDelegatorsResponse, ad as GetDelegatedStakingActivitiesResponse, ae as PendingTransactionResponse, af as CommittedTransactionResponse, ag as GasEstimation, ah as TableItemRequest, ai as GetTableItemsDataResponse, aj as GetTableItemsMetadataResponse, ak as AptosRequest, al as ClientRequest, am as ClientResponse, an as MimeType } from './accountAddress-DnSqjhSl.js';
2
- export { aA as AccountAuthenticatorVariant, bj as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aT as BlockEndInfo, aU as BlockEpilogueTransactionResponse, aQ as BlockMetadataTransactionResponse, aG as ClientHeadersType, b0 as DecodedTableData, b1 as DeletedTableData, bG as DeriveScheme, bm as DirectWriteSet, b3 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bo as Event, bn as EventGuid, bJ as GenerateAccount, bH as GenerateAccountWithEd25519, bI as GenerateAccountWithSingleSignerSecp256k1Key, b6 as GenesisPayload, aP as GenesisTransactionResponse, au as HexInvalidReason, bB as MoveAbility, bv as MoveAddressType, bA as MoveFunctionVisibility, bD as MoveModule, bw as MoveObjectType, bx as MoveOptionType, b7 as MoveScriptBytecode, bE as MoveStruct, bC as MoveStructField, by as MoveStructType, bz as MoveType, bt as MoveUint128Type, bq as MoveUint16Type, bu as MoveUint256Type, br as MoveUint32Type, bs as MoveUint64Type, bp as MoveUint8Type, b5 as MultisigPayloadResponse, bS as NetworkToChainId, bP as NetworkToFaucetAPI, bN as NetworkToIndexerAPI, bT as NetworkToNetworkName, bO as NetworkToNodeAPI, bQ as NetworkToPepperAPI, bR as NetworkToProverAPI, bK as OrderBy, bL as OrderByValue, as as ParsingError, at as ParsingResult, bF as RoleType, b4 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bl as ScriptWriteSet, aR as StateCheckpointTransactionResponse, bM as TokenStandard, az as TransactionAuthenticatorVariant, be as TransactionEd25519Signature, bi as TransactionFeePayerSignature, bh as TransactionMultiAgentSignature, bg as TransactionMultiEd25519Signature, b2 as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bf as TransactionSecp256k1Signature, b8 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aS as ValidatorTransactionResponse, bk as WriteSet, aV as WriteSetChange, aW as WriteSetChangeDeleteModule, aX as WriteSetChangeDeleteResource, aY as WriteSetChangeDeleteTableItem, aZ as WriteSetChangeWriteModule, a_ as WriteSetChangeWriteResource, a$ as WriteSetChangeWriteTableItem, ao as ensureBoolean, aO as isBlockEpilogueTransactionResponse, aL as isBlockMetadataTransactionResponse, b9 as isEd25519Signature, bc as isFeePayerSignature, aK as isGenesisTransactionResponse, bb as isMultiAgentSignature, bd as isMultiEd25519Signature, aI as isPendingTransactionResponse, ba as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-DnSqjhSl.js';
1
+ import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, P as PrivateKeyVariants, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, n as AccountAddressInput, M as MoveModuleId, o as ScriptFunctionArgument, p as MoveFunctionId, q as MoveStructId, r as MoveValue, s as MoveFunctionGenericTypeParam, t as SigningSchemeInput, u as SigningScheme, v as AccountData, w as PaginationArgs, x as MoveModuleBytecode, y as TransactionResponse, z as MoveResource, B as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, J as GetAccountOwnedTokensFromCollectionResponse, K as GetAccountCollectionsWithOwnedTokenResponse, Q as GetAccountCoinsDataResponse, W as WhereArg, R as GetObjectDataQueryResponse, V as GetCollectionDataResponse, X as GetTokenDataResponse, Y as GetCurrentTokenOwnershipResponse, _ as GetOwnedTokensResponse, $ as GetTokenActivityResponse, a0 as GetEventsResponse, a1 as WaitForTransactionOptions, a2 as UserTransactionResponse, a3 as MoveFunction, a4 as GetFungibleAssetMetadataResponse, a5 as GetFungibleAssetActivitiesResponse, a6 as GetCurrentFungibleAssetBalancesResponse, a7 as LedgerInfo, a8 as Block, a9 as GetChainTopUserTransactionsResponse, aa as GraphqlQuery, ab as GetProcessorStatusResponse, ac as GetANSNameResponse, ad as GetNumberOfDelegatorsResponse, ae as GetDelegatedStakingActivitiesResponse, af as PendingTransactionResponse, ag as CommittedTransactionResponse, ah as GasEstimation, ai as TableItemRequest, aj as GetTableItemsDataResponse, ak as GetTableItemsMetadataResponse, al as ClientRequest, am as ClientResponse, an as AptosRequest, ao as AptosResponse, ap as MimeType } from './accountAddress-6RqI8Aam.js';
2
+ export { aG as AccountAuthenticatorVariant, bp as AccountSignature, at as AddressInvalidReason, aH as AnySignatureVariant, aZ as BlockEndInfo, a_ as BlockEpilogueTransactionResponse, aW as BlockMetadataTransactionResponse, aM as ClientHeadersType, b6 as DecodedTableData, b7 as DeletedTableData, bM as DeriveScheme, bs as DirectWriteSet, b9 as EntryFunctionPayloadResponse, aI as EphemeralSignatureVariant, bu as Event, bt as EventGuid, bP as GenerateAccount, bN as GenerateAccountWithEd25519, bO as GenerateAccountWithSingleSignerSecp256k1Key, bc as GenesisPayload, aV as GenesisTransactionResponse, aw as HexInvalidReason, bH as MoveAbility, bB as MoveAddressType, bG as MoveFunctionVisibility, bJ as MoveModule, bC as MoveObjectType, bD as MoveOptionType, bd as MoveScriptBytecode, bK as MoveStruct, bI as MoveStructField, bE as MoveStructType, bF as MoveType, bz as MoveUint128Type, bw as MoveUint16Type, bA as MoveUint256Type, bx as MoveUint32Type, by as MoveUint64Type, bv as MoveUint8Type, bb as MultisigPayloadResponse, bV as NetworkToChainId, bS as NetworkToFaucetAPI, bQ as NetworkToIndexerAPI, bW as NetworkToNetworkName, bR as NetworkToNodeAPI, bT as NetworkToPepperAPI, bU as NetworkToProverAPI, ay as OrderBy, az as OrderByValue, au as ParsingError, av as ParsingResult, bL as RoleType, ba as ScriptPayloadResponse, aC as ScriptTransactionArgumentVariants, br as ScriptWriteSet, aX as StateCheckpointTransactionResponse, aA as TokenStandard, aF as TransactionAuthenticatorVariant, bk as TransactionEd25519Signature, bo as TransactionFeePayerSignature, bn as TransactionMultiAgentSignature, bm as TransactionMultiEd25519Signature, b8 as TransactionPayloadResponse, aD as TransactionPayloadVariants, aN as TransactionResponseType, bl as TransactionSecp256k1Signature, be as TransactionSignature, aE as TransactionVariants, aB as TypeTagVariants, aK as Uint128, aL as Uint256, aJ as Uint64, aY as ValidatorTransactionResponse, bq as WriteSet, a$ as WriteSetChange, b0 as WriteSetChangeDeleteModule, b1 as WriteSetChangeDeleteResource, b2 as WriteSetChangeDeleteTableItem, b3 as WriteSetChangeWriteModule, b4 as WriteSetChangeWriteResource, b5 as WriteSetChangeWriteTableItem, aq as ensureBoolean, ax as hexToAsciiString, aU as isBlockEpilogueTransactionResponse, aR as isBlockMetadataTransactionResponse, bf as isEd25519Signature, bi as isFeePayerSignature, aQ as isGenesisTransactionResponse, bh as isMultiAgentSignature, bj as isMultiEd25519Signature, aO as isPendingTransactionResponse, bg as isSecp256k1Signature, aS as isStateCheckpointTransactionResponse, aP as isUserTransactionResponse, aT as isValidatorTransactionResponse, ar as outOfRangeErrorMessage, as as validateNumberInRange } from './accountAddress-6RqI8Aam.js';
3
+ import { CallArgument } from '@wgb5445/aptos-intent-npm';
4
+ export { CallArgument } from '@wgb5445/aptos-intent-npm';
3
5
  import EventEmitter from 'eventemitter3';
4
6
 
5
7
  type Maybe<T> = T | null;
@@ -635,8 +637,7 @@ declare class U256 extends Serializable implements TransactionArgument {
635
637
  * const vecOfStrings = new MoveVector([new MoveString("hello"), new MoveString("world")]);
636
638
  * const vecOfStrings2 = MoveVector.MoveString(["hello", "world"]);
637
639
  *
638
- * @params
639
- * values: an Array<T> of values where T is a class that implements Serializable
640
+ * @param values an Array<T> of values where T is a class that implements Serializable
640
641
  * @returns a `MoveVector<T>` with the values `values`
641
642
  */
642
643
  declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends Serializable implements TransactionArgument {
@@ -875,7 +876,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
875
876
  * MoveOption.U8(1).isSome() === true;
876
877
  * MoveOption.U8().isSome() === false;
877
878
  * MoveOption.U8(undefined).isSome() === false;
878
- * @params value: the value used to fill the MoveOption. If `value` is undefined
879
+ * @param value the value used to fill the MoveOption. If `value` is undefined
879
880
  * the resulting MoveOption's .isSome() method will return false.
880
881
  * @returns a MoveOption<U8> with an inner value `value`
881
882
  */
@@ -887,7 +888,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
887
888
  * MoveOption.U16(1).isSome() === true;
888
889
  * MoveOption.U16().isSome() === false;
889
890
  * MoveOption.U16(undefined).isSome() === false;
890
- * @params value: the value used to fill the MoveOption. If `value` is undefined
891
+ * @param value the value used to fill the MoveOption. If `value` is undefined
891
892
  * the resulting MoveOption's .isSome() method will return false.
892
893
  * @returns a MoveOption<U16> with an inner value `value`
893
894
  */
@@ -899,7 +900,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
899
900
  * MoveOption.U32(1).isSome() === true;
900
901
  * MoveOption.U32().isSome() === false;
901
902
  * MoveOption.U32(undefined).isSome() === false;
902
- * @params value: the value used to fill the MoveOption. If `value` is undefined
903
+ * @param value the value used to fill the MoveOption. If `value` is undefined
903
904
  * the resulting MoveOption's .isSome() method will return false.
904
905
  * @returns a MoveOption<U32> with an inner value `value`
905
906
  */
@@ -911,7 +912,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
911
912
  * MoveOption.U64(1).isSome() === true;
912
913
  * MoveOption.U64().isSome() === false;
913
914
  * MoveOption.U64(undefined).isSome() === false;
914
- * @params value: the value used to fill the MoveOption. If `value` is undefined
915
+ * @param value the value used to fill the MoveOption. If `value` is undefined
915
916
  * the resulting MoveOption's .isSome() method will return false.
916
917
  * @returns a MoveOption<U64> with an inner value `value`
917
918
  */
@@ -923,7 +924,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
923
924
  * MoveOption.U128(1).isSome() === true;
924
925
  * MoveOption.U128().isSome() === false;
925
926
  * MoveOption.U128(undefined).isSome() === false;
926
- * @params value: the value used to fill the MoveOption. If `value` is undefined
927
+ * @param value the value used to fill the MoveOption. If `value` is undefined
927
928
  * the resulting MoveOption's .isSome() method will return false.
928
929
  * @returns a MoveOption<U128> with an inner value `value`
929
930
  */
@@ -935,7 +936,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
935
936
  * MoveOption.U256(1).isSome() === true;
936
937
  * MoveOption.U256().isSome() === false;
937
938
  * MoveOption.U256(undefined).isSome() === false;
938
- * @params value: the value used to fill the MoveOption. If `value` is undefined
939
+ * @param value the value used to fill the MoveOption. If `value` is undefined
939
940
  * the resulting MoveOption's .isSome() method will return false.
940
941
  * @returns a MoveOption<U256> with an inner value `value`
941
942
  */
@@ -947,7 +948,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
947
948
  * MoveOption.Bool(true).isSome() === true;
948
949
  * MoveOption.Bool().isSome() === false;
949
950
  * MoveOption.Bool(undefined).isSome() === false;
950
- * @params value: the value used to fill the MoveOption. If `value` is undefined
951
+ * @param value the value used to fill the MoveOption. If `value` is undefined
951
952
  * the resulting MoveOption's .isSome() method will return false.
952
953
  * @returns a MoveOption<Bool> with an inner value `value`
953
954
  */
@@ -960,7 +961,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
960
961
  * MoveOption.MoveString("").isSome() === true;
961
962
  * MoveOption.MoveString().isSome() === false;
962
963
  * MoveOption.MoveString(undefined).isSome() === false;
963
- * @params value: the value used to fill the MoveOption. If `value` is undefined
964
+ * @param value the value used to fill the MoveOption. If `value` is undefined
964
965
  * the resulting MoveOption's .isSome() method will return false.
965
966
  * @returns a MoveOption<MoveString> with an inner value `value`
966
967
  */
@@ -1132,10 +1133,6 @@ declare abstract class AccountPublicKey extends PublicKey {
1132
1133
 
1133
1134
  /**
1134
1135
  * Represents a private key used for signing messages and deriving the associated public key.
1135
- *
1136
- * @method sign - Signs the given message with the private key.
1137
- * @method publicKey - Derives the public key associated with the private key.
1138
- * @method toUint8Array - Retrieves the private key in bytes.
1139
1136
  */
1140
1137
  interface PrivateKey {
1141
1138
  /**
@@ -1153,6 +1150,37 @@ interface PrivateKey {
1153
1150
  */
1154
1151
  toUint8Array(): Uint8Array;
1155
1152
  }
1153
+ declare class PrivateKey {
1154
+ /**
1155
+ * The AIP-80 compliant prefixes for each private key type. Append this to a private key's hex representation
1156
+ * to get an AIP-80 compliant string.
1157
+ *
1158
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1159
+ */
1160
+ static readonly AIP80_PREFIXES: {
1161
+ ed25519: string;
1162
+ secp256k1: string;
1163
+ };
1164
+ /**
1165
+ * Format a HexInput to an AIP-80 compliant string.
1166
+ *
1167
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1168
+ *
1169
+ * @param privateKey - The HexString or Uint8Array format of the private key.
1170
+ * @param privateKeyType - The private key type
1171
+ */
1172
+ static formatPrivateKey(privateKey: HexInput, type: PrivateKeyVariants): string;
1173
+ /**
1174
+ * Parse a HexInput that may be a HexString, Uint8Array, or a AIP-80 compliant string to a Hex instance.
1175
+ *
1176
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1177
+ *
1178
+ * @param value - A HexString, Uint8Array, or a AIP-80 compliant string.
1179
+ * @param privateKeyType - The private key type
1180
+ * @param strict - If true, the value MUST be compliant with AIP-80.
1181
+ */
1182
+ static parseHexInput(value: HexInput, type: PrivateKeyVariants, strict?: boolean): Hex;
1183
+ }
1156
1184
 
1157
1185
  /**
1158
1186
  * Checks if an ED25519 signature is non-canonical.
@@ -1247,20 +1275,17 @@ declare class Ed25519PublicKey extends AccountPublicKey {
1247
1275
  }
1248
1276
  /**
1249
1277
  * Represents the private key of an Ed25519 key pair.
1250
- *
1251
- * @static
1252
- * @readonly LENGTH - Length of an Ed25519 private key.
1253
- * @static
1254
- * @readonly SLIP_0010_SEED - The Ed25519 key seed to use for BIP-32 compatibility.
1255
1278
  */
1256
1279
  declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1257
1280
  /**
1258
1281
  * Length of an Ed25519 private key
1282
+ * @readonly
1259
1283
  */
1260
1284
  static readonly LENGTH: number;
1261
1285
  /**
1262
1286
  * The Ed25519 key seed to use for BIP-32 compatibility
1263
1287
  * See more {@link https://github.com/satoshilabs/slips/blob/master/slip-0010.md}
1288
+ * @readonly
1264
1289
  */
1265
1290
  static readonly SLIP_0010_SEED = "ed25519 seed";
1266
1291
  /**
@@ -1271,9 +1296,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1271
1296
  /**
1272
1297
  * Create a new PrivateKey instance from a Uint8Array or String.
1273
1298
  *
1299
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1300
+ *
1274
1301
  * @param hexInput HexInput (string or Uint8Array)
1302
+ * @param strict If true, private key must AIP-80 compliant.
1275
1303
  */
1276
- constructor(hexInput: HexInput);
1304
+ constructor(hexInput: HexInput, strict?: boolean);
1277
1305
  /**
1278
1306
  * Generate a new random private key.
1279
1307
  *
@@ -1328,6 +1356,20 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1328
1356
  * @returns string representation of the private key.
1329
1357
  */
1330
1358
  toString(): string;
1359
+ /**
1360
+ * Get the private key as a hex string with the 0x prefix.
1361
+ *
1362
+ * @returns string representation of the private key.
1363
+ */
1364
+ toHexString(): string;
1365
+ /**
1366
+ * Get the private key as a AIP-80 compliant hex string.
1367
+ *
1368
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1369
+ *
1370
+ * @returns AIP-80 compliant string representation of the private key.
1371
+ */
1372
+ toAIP80String(): string;
1331
1373
  serialize(serializer: Serializer): void;
1332
1374
  static deserialize(deserializer: Deserializer): Ed25519PrivateKey;
1333
1375
  /**
@@ -1342,12 +1384,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1342
1384
  }
1343
1385
  /**
1344
1386
  * Represents a signature of a message signed using an Ed25519 private key.
1345
- *
1346
- * @static LENGTH - Length of an Ed25519 signature, which is 64 bytes.
1347
1387
  */
1348
1388
  declare class Ed25519Signature extends Signature {
1349
1389
  /**
1350
- * Length of an Ed25519 signature
1390
+ * Length of an Ed25519 signature, which is 64 bytes.
1391
+ *
1392
+ * @readonly
1351
1393
  */
1352
1394
  static readonly LENGTH = 64;
1353
1395
  /**
@@ -1414,7 +1456,6 @@ declare const deriveKey: (hashSeed: Uint8Array | string, data: Uint8Array | stri
1414
1456
  * @param key
1415
1457
  * @param chainCode
1416
1458
  * @param index
1417
- * @constructor
1418
1459
  */
1419
1460
  declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => DerivedKeys;
1420
1461
  /**
@@ -1938,6 +1979,12 @@ type Groth16VerificationKeyResponse = {
1938
1979
  gamma_abc_g1: [string, string];
1939
1980
  gamma_g2: string;
1940
1981
  };
1982
+ type MoveAnyStruct = {
1983
+ variant: {
1984
+ data: string;
1985
+ type_name: string;
1986
+ };
1987
+ };
1941
1988
 
1942
1989
  /**
1943
1990
  * Types of API endpoints used for routing requests in the Aptos network.
@@ -2330,6 +2377,12 @@ declare class KeylessSignature extends Signature {
2330
2377
  ephemeralPublicKey: EphemeralPublicKey;
2331
2378
  ephemeralSignature: EphemeralSignature;
2332
2379
  });
2380
+ /**
2381
+ * Get the kid of the JWT used to derive the Keyless Account used to sign.
2382
+ *
2383
+ * @returns the kid as a string
2384
+ */
2385
+ getJwkKid(): string;
2333
2386
  serialize(serializer: Serializer): void;
2334
2387
  static deserialize(deserializer: Deserializer): KeylessSignature;
2335
2388
  static getSimulationSignature(): KeylessSignature;
@@ -2478,12 +2531,12 @@ declare class KeylessConfiguration {
2478
2531
  /**
2479
2532
  * The verification key used to verify Groth16 proofs on chain
2480
2533
  */
2481
- readonly verficationKey: Groth16VerificationKey;
2534
+ readonly verificationKey: Groth16VerificationKey;
2482
2535
  /**
2483
2536
  * The maximum lifespan of an ephemeral key pair. This is configured on chain.
2484
2537
  */
2485
2538
  readonly maxExpHorizonSecs: number;
2486
- constructor(verficationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
2539
+ constructor(verificationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
2487
2540
  static create(res: Groth16VerificationKeyResponse, maxExpHorizonSecs: number): KeylessConfiguration;
2488
2541
  }
2489
2542
  /**
@@ -2505,7 +2558,7 @@ declare class Groth16VerificationKey {
2505
2558
  /**
2506
2559
  * The `gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H`, where H is the generator of G1
2507
2560
  */
2508
- readonly gammaAbcG1: G1Bytes[];
2561
+ readonly gammaAbcG1: [G1Bytes, G1Bytes];
2509
2562
  /**
2510
2563
  * The `gamma * H`, where `H` is the generator of G2
2511
2564
  */
@@ -2517,6 +2570,14 @@ declare class Groth16VerificationKey {
2517
2570
  gammaAbcG1: [HexInput, HexInput];
2518
2571
  gammaG2: HexInput;
2519
2572
  });
2573
+ /**
2574
+ * Calculates the hash of the serialized form of the verification key.
2575
+ * This is useful for comparing verification keys or using them as unique identifiers.
2576
+ *
2577
+ * @returns The SHA3-256 hash of the serialized verification key as a Uint8Array
2578
+ */
2579
+ hash(): Uint8Array;
2580
+ serialize(serializer: Serializer): void;
2520
2581
  /**
2521
2582
  * Converts a Groth16VerificationKeyResponse object into a Groth16VerificationKey instance.
2522
2583
  *
@@ -2544,6 +2605,53 @@ declare function getKeylessConfig(args: {
2544
2605
  aptosConfig: AptosConfig;
2545
2606
  options?: LedgerVersionArg;
2546
2607
  }): Promise<KeylessConfiguration>;
2608
+ /**
2609
+ * Parses a JWT and returns the 'iss', 'aud', and 'uid' values.
2610
+ *
2611
+ * @param args - The arguments for parsing the JWT.
2612
+ * @param args.jwt - The JWT to parse.
2613
+ * @param args.uidKey - The key to use for the 'uid' value; defaults to 'sub'.
2614
+ * @returns The 'iss', 'aud', and 'uid' values from the JWT.
2615
+ */
2616
+ declare function getIssAudAndUidVal(args: {
2617
+ jwt: string;
2618
+ uidKey?: string;
2619
+ }): {
2620
+ iss: string;
2621
+ aud: string;
2622
+ uidVal: string;
2623
+ };
2624
+ declare function getKeylessJWKs(args: {
2625
+ aptosConfig: AptosConfig;
2626
+ jwkAddr?: AccountAddressInput;
2627
+ options?: LedgerVersionArg;
2628
+ }): Promise<Map<string, MoveJWK[]>>;
2629
+ declare class MoveJWK extends Serializable {
2630
+ kid: string;
2631
+ kty: string;
2632
+ alg: string;
2633
+ e: string;
2634
+ n: string;
2635
+ constructor(args: {
2636
+ kid: string;
2637
+ kty: string;
2638
+ alg: string;
2639
+ e: string;
2640
+ n: string;
2641
+ });
2642
+ serialize(serializer: Serializer): void;
2643
+ static fromMoveStruct(struct: MoveAnyStruct): MoveJWK;
2644
+ static deserialize(deserializer: Deserializer): MoveJWK;
2645
+ }
2646
+ interface JwtHeader {
2647
+ kid: string;
2648
+ }
2649
+ /**
2650
+ * Safely parses the JWT header.
2651
+ * @param jwtHeader The JWT header string
2652
+ * @returns Parsed JWT header as an object.
2653
+ */
2654
+ declare function parseJwtHeader(jwtHeader: string): JwtHeader;
2547
2655
 
2548
2656
  /**
2549
2657
  * Represents the FederatedKeylessPublicKey public key
@@ -2661,7 +2769,6 @@ declare function poseidonHash(inputs: (number | bigint | string)[]): bigint;
2661
2769
  * Represents a Secp256k1 ECDSA public key.
2662
2770
  *
2663
2771
  * @extends PublicKey
2664
- * @static
2665
2772
  * @property LENGTH - The length of the Secp256k1 public key in bytes.
2666
2773
  */
2667
2774
  declare class Secp256k1PublicKey extends PublicKey {
@@ -2739,9 +2846,12 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2739
2846
  /**
2740
2847
  * Create a new PrivateKey instance from a Uint8Array or String.
2741
2848
  *
2849
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
2850
+ *
2742
2851
  * @param hexInput A HexInput (string or Uint8Array)
2852
+ * @param strict If true, private key must AIP-80 compliant.
2743
2853
  */
2744
- constructor(hexInput: HexInput);
2854
+ constructor(hexInput: HexInput, strict?: boolean);
2745
2855
  /**
2746
2856
  * Generate a new random private key.
2747
2857
  *
@@ -2795,6 +2905,20 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2795
2905
  * @returns string representation of the private key
2796
2906
  */
2797
2907
  toString(): string;
2908
+ /**
2909
+ * Get the private key as a hex string with the 0x prefix.
2910
+ *
2911
+ * @returns string representation of the private key.
2912
+ */
2913
+ toHexString(): string;
2914
+ /**
2915
+ * Get the private key as a AIP-80 compliant hex string.
2916
+ *
2917
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
2918
+ *
2919
+ * @returns AIP-80 compliant string representation of the private key.
2920
+ */
2921
+ toAIP80String(): string;
2798
2922
  serialize(serializer: Serializer): void;
2799
2923
  static deserialize(deserializer: Deserializer): Secp256k1PrivateKey;
2800
2924
  /**
@@ -2809,13 +2933,11 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2809
2933
  /**
2810
2934
  * Represents a signature of a message signed using a Secp256k1 ECDSA private key.
2811
2935
  *
2812
- * @static
2813
- * @readonly
2814
- * @length The length of Secp256k1 ECDSA signatures, which is 64 bytes.
2815
2936
  */
2816
2937
  declare class Secp256k1Signature extends Signature {
2817
2938
  /**
2818
- * Secp256k1 ecdsa signatures are 256-bit.
2939
+ * Secp256k1 ecdsa signatures are 256-bit or 64 bytes
2940
+ * @readonly
2819
2941
  */
2820
2942
  static readonly LENGTH = 64;
2821
2943
  /**
@@ -3834,6 +3956,11 @@ declare abstract class TransactionAuthenticator extends Serializable {
3834
3956
  * @param deserializer - The deserializer instance used to read the serialized data.
3835
3957
  */
3836
3958
  static deserialize(deserializer: Deserializer): TransactionAuthenticator;
3959
+ isEd25519(): this is TransactionAuthenticatorEd25519;
3960
+ isMultiEd25519(): this is TransactionAuthenticatorMultiEd25519;
3961
+ isMultiAgent(): this is TransactionAuthenticatorMultiAgent;
3962
+ isFeePayer(): this is TransactionAuthenticatorFeePayer;
3963
+ isSingleSender(): this is TransactionAuthenticatorSingleSender;
3837
3964
  }
3838
3965
  /**
3839
3966
  * Represents a transaction authenticator using Ed25519 for a single signer transaction.
@@ -4143,6 +4270,14 @@ type InputMultiSigDataWithABI = {
4143
4270
  type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
4144
4271
  aptosConfig: AptosConfig;
4145
4272
  };
4273
+ /**
4274
+ * The data needed to generate a batched function payload
4275
+ */
4276
+ type InputBatchedFunctionData = {
4277
+ function: MoveFunctionId;
4278
+ typeArguments?: Array<TypeArgument>;
4279
+ functionArguments: Array<EntryFunctionArgumentTypes | CallArgument | SimpleEntryFunctionArgumentTypes>;
4280
+ };
4146
4281
  /**
4147
4282
  * The data needed to generate a Multi Sig payload
4148
4283
  */
@@ -4904,11 +5039,18 @@ declare class EphemeralKeyPair extends Serializable {
4904
5039
  sign(data: HexInput): EphemeralSignature;
4905
5040
  }
4906
5041
 
5042
+ /**
5043
+ * An interface which defines if an Account utilizes Keyless signing.
5044
+ */
5045
+ interface KeylessSigner extends Account$1 {
5046
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5047
+ }
5048
+ declare function isKeylessSigner(obj: any): obj is KeylessSigner;
4907
5049
  /**
4908
5050
  * Account implementation for the Keyless authentication scheme. This abstract class is used for standard Keyless Accounts
4909
5051
  * and Federated Keyless Accounts.
4910
5052
  */
4911
- declare abstract class AbstractKeylessAccount extends Serializable implements Account$1 {
5053
+ declare abstract class AbstractKeylessAccount extends Serializable implements KeylessSigner {
4912
5054
  static readonly PEPPER_LENGTH: number;
4913
5055
  /**
4914
5056
  * The KeylessPublicKey associated with the account
@@ -4956,10 +5098,34 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
4956
5098
  * The JWT token used to derive the account
4957
5099
  */
4958
5100
  readonly jwt: string;
5101
+ /**
5102
+ * The hash of the verification key used to verify the proof. This is optional and can be used to check verifying key
5103
+ * rotations which may invalidate the proof.
5104
+ */
5105
+ readonly verificationKeyHash?: Uint8Array;
4959
5106
  /**
4960
5107
  * An event emitter used to assist in handling asynchronous proof fetching.
4961
5108
  */
4962
5109
  private readonly emitter;
5110
+ /**
5111
+ * Use the static generator `create(...)` instead.
5112
+ * Creates an instance of the KeylessAccount with an optional proof.
5113
+ *
5114
+ * @param args - The parameters for creating a KeylessAccount.
5115
+ * @param args.address - Optional account address associated with the KeylessAccount.
5116
+ * @param args.publicKey - A KeylessPublicKey or FederatedKeylessPublicKey.
5117
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5118
+ * @param args.iss - A JWT issuer.
5119
+ * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
5120
+ * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
5121
+ * @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
5122
+ * OIDC registration with the identity provider.
5123
+ * @param args.pepper - A hexadecimal input used for additional security.
5124
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5125
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5126
+ * @param args.jwt - A JSON Web Token used for authentication.
5127
+ * @param args.verificationKeyHash Optional 32-byte verification key hash as hex input used to check proof validity.
5128
+ */
4963
5129
  protected constructor(args: {
4964
5130
  address?: AccountAddress;
4965
5131
  publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
@@ -4972,13 +5138,29 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
4972
5138
  proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
4973
5139
  proofFetchCallback?: ProofFetchCallback;
4974
5140
  jwt: string;
5141
+ verificationKeyHash?: HexInput;
4975
5142
  });
4976
5143
  /**
4977
- * This initializes the asynchronous proof fetch
4978
- * @return
5144
+ * This initializes the asynchronous proof fetch.
5145
+ * @return Emits whether the proof succeeds or fails, but has no return.
4979
5146
  */
4980
5147
  init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
5148
+ /**
5149
+ * Serializes the jwt data into a format suitable for transmission or storage.
5150
+ * This function ensures that both the jwt data and the proof are properly serialized.
5151
+ *
5152
+ * @param serializer - The serializer instance used to convert the jwt data into bytes.
5153
+ */
4981
5154
  serialize(serializer: Serializer): void;
5155
+ static partialDeserialize(deserializer: Deserializer): {
5156
+ address: AccountAddress;
5157
+ jwt: string;
5158
+ uidKey: string;
5159
+ pepper: Uint8Array;
5160
+ ephemeralKeyPair: EphemeralKeyPair;
5161
+ proof: ZeroKnowledgeSig;
5162
+ verificationKeyHash?: Uint8Array;
5163
+ };
4982
5164
  /**
4983
5165
  * Checks if the proof is expired. If so the account must be re-derived with a new EphemeralKeyPair
4984
5166
  * and JWT token.
@@ -5002,6 +5184,11 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
5002
5184
  * @return
5003
5185
  */
5004
5186
  waitForProofFetch(): Promise<void>;
5187
+ /**
5188
+ * Validates that the Keyless Account can be used to sign transactions.
5189
+ * @return
5190
+ */
5191
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5005
5192
  /**
5006
5193
  * Sign the given message using Keyless.
5007
5194
  * @param message in HexInput format
@@ -5030,6 +5217,19 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
5030
5217
  message: HexInput;
5031
5218
  signature: KeylessSignature;
5032
5219
  }): boolean;
5220
+ /**
5221
+ * Fetches the JWK from the issuer's well-known JWKS endpoint.
5222
+ *
5223
+ * @param args.publicKey The keyless public key to query
5224
+ * @param args.kid The kid of the JWK to fetch
5225
+ * @returns A JWK matching the `kid` in the JWT header.
5226
+ * @throws {KeylessError} If the JWK cannot be fetched
5227
+ */
5228
+ static fetchJWK(args: {
5229
+ aptosConfig: AptosConfig;
5230
+ publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
5231
+ kid: string;
5232
+ }): Promise<MoveJWK>;
5033
5233
  }
5034
5234
  /**
5035
5235
  * A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create
@@ -5049,6 +5249,12 @@ declare class TransactionAndProof extends Serializable {
5049
5249
  */
5050
5250
  readonly domainSeparator = "APTOS::TransactionAndProof";
5051
5251
  constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
5252
+ /**
5253
+ * Serializes the transaction data into a format suitable for transmission or storage.
5254
+ * This function ensures that both the transaction bytes and the proof are properly serialized.
5255
+ *
5256
+ * @param serializer - The serializer instance used to convert the transaction data into bytes.
5257
+ */
5052
5258
  serialize(serializer: Serializer): void;
5053
5259
  /**
5054
5260
  * Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.
@@ -5079,9 +5285,6 @@ interface ProofFetchEvents {
5079
5285
  *
5080
5286
  * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
5081
5287
  * EphemeralKeyPair, and corresponding proof.
5082
- *
5083
- * @static
5084
- * @readonly PEPPER_LENGTH - The length of the pepper used for privacy preservation.
5085
5288
  */
5086
5289
  declare class KeylessAccount extends AbstractKeylessAccount {
5087
5290
  /**
@@ -5089,9 +5292,21 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5089
5292
  */
5090
5293
  readonly publicKey: KeylessPublicKey;
5091
5294
  /**
5092
- * Creates an instance of the transaction with an optional proof.
5295
+ * Use the static generator `create(...)` instead.
5296
+ * Creates an instance of the KeylessAccount with an optional proof.
5093
5297
  *
5094
- * @param args.proof - An optional ZkProof associated with the transaction.
5298
+ * @param args - The parameters for creating a KeylessAccount.
5299
+ * @param args.address - Optional account address associated with the KeylessAccount.
5300
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5301
+ * @param args.iss - A JWT issuer.
5302
+ * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
5303
+ * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
5304
+ * @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
5305
+ * OIDC registration with the identity provider.
5306
+ * @param args.pepper - A hexadecimal input used for additional security.
5307
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5308
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5309
+ * @param args.jwt - A JSON Web Token used for authentication.
5095
5310
  */
5096
5311
  private constructor();
5097
5312
  /**
@@ -5109,10 +5324,17 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5109
5324
  * @returns A KeylessAccount instance created from the deserialized data.
5110
5325
  */
5111
5326
  static deserialize(deserializer: Deserializer): KeylessAccount;
5112
- static fromBytes(bytes: Uint8Array): KeylessAccount;
5327
+ /**
5328
+ * Deserialize bytes using this account's information.
5329
+ *
5330
+ * @param bytes The bytes being interpreted.
5331
+ * @returns
5332
+ */
5333
+ static fromBytes(bytes: HexInput): KeylessAccount;
5113
5334
  /**
5114
5335
  * Creates a KeylessAccount instance using the provided parameters.
5115
5336
  * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5337
+ * This is used instead of the KeylessAccount constructor.
5116
5338
  *
5117
5339
  * @param args - The parameters for creating a KeylessAccount.
5118
5340
  * @param args.address - Optional account address associated with the KeylessAccount.
@@ -5131,6 +5353,7 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5131
5353
  pepper: HexInput;
5132
5354
  uidKey?: string;
5133
5355
  proofFetchCallback?: ProofFetchCallback;
5356
+ verificationKey?: Groth16VerificationKey;
5134
5357
  }): KeylessAccount;
5135
5358
  }
5136
5359
 
@@ -5139,8 +5362,8 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5139
5362
  *
5140
5363
  * Used to represent a FederatedKeyless based account and sign transactions with it.
5141
5364
  *
5142
- * Use `FederatedKeylessAccount.create()` to instantiate a KeylessAccount with a JWT, proof, EphemeralKeyPair and the
5143
- * address the JWKs are installed that will be used to verify the JWT.
5365
+ * Use `FederatedKeylessAccount.create()` to instantiate a KeylessAccount with a JSON Web Token (JWT), proof, EphemeralKeyPair and the
5366
+ * address the JSON Web Key Set (JWKS) are installed that will be used to verify the JWT.
5144
5367
  *
5145
5368
  * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
5146
5369
  * EphemeralKeyPair, and corresponding proof.
@@ -5150,10 +5373,57 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
5150
5373
  * The FederatedKeylessPublicKey associated with the account
5151
5374
  */
5152
5375
  readonly publicKey: FederatedKeylessPublicKey;
5376
+ /**
5377
+ * Use the static generator `FederatedKeylessAccount.create(...)` instead.
5378
+ * Creates a KeylessAccount instance using the provided parameters.
5379
+ * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5380
+ *
5381
+ * @param args - The parameters for creating a KeylessAccount.
5382
+ * @param args.address - Optional account address associated with the KeylessAccount.
5383
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5384
+ * @param args.jwt - A JSON Web Token used for authentication.
5385
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5386
+ * @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
5387
+ * @param args.uidKey - Optional key for user identification, defaults to "sub".
5388
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5389
+ */
5153
5390
  private constructor();
5391
+ /**
5392
+ * Serializes the transaction data into a format suitable for transmission or storage.
5393
+ * This function ensures that both the transaction bytes and the proof are properly serialized.
5394
+ *
5395
+ * @param serializer - The serializer instance used to convert the transaction data into bytes.
5396
+ */
5154
5397
  serialize(serializer: Serializer): void;
5398
+ /**
5399
+ * Deserializes the provided deserializer to create a KeylessAccount instance.
5400
+ * This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.
5401
+ *
5402
+ * @param deserializer - The deserializer instance used to retrieve the serialized data.
5403
+ * @returns A KeylessAccount instance created from the deserialized data.
5404
+ */
5155
5405
  static deserialize(deserializer: Deserializer): FederatedKeylessAccount;
5156
- static fromBytes(bytes: Uint8Array): FederatedKeylessAccount;
5406
+ /**
5407
+ * Deserialize bytes using this account's information.
5408
+ *
5409
+ * @param bytes The bytes being interpreted.
5410
+ * @returns
5411
+ */
5412
+ static fromBytes(bytes: HexInput): FederatedKeylessAccount;
5413
+ /**
5414
+ * Creates a KeylessAccount instance using the provided parameters.
5415
+ * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5416
+ * This is used instead of the KeylessAccount constructor.
5417
+ *
5418
+ * @param args - The parameters for creating a KeylessAccount.
5419
+ * @param args.address - Optional account address associated with the KeylessAccount.
5420
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5421
+ * @param args.jwt - A JSON Web Token used for authentication.
5422
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5423
+ * @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
5424
+ * @param args.uidKey - Optional key for user identification, defaults to "sub".
5425
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5426
+ */
5157
5427
  static create(args: {
5158
5428
  address?: AccountAddress;
5159
5429
  proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
@@ -5163,6 +5433,7 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
5163
5433
  jwkAddress: AccountAddressInput;
5164
5434
  uidKey?: string;
5165
5435
  proofFetchCallback?: ProofFetchCallback;
5436
+ verificationKey?: Groth16VerificationKey;
5166
5437
  }): FederatedKeylessAccount;
5167
5438
  }
5168
5439
 
@@ -5184,7 +5455,7 @@ interface VerifyMultiKeySignatureArgs {
5184
5455
  *
5185
5456
  * Note: Generating a signer instance does not create the account on-chain.
5186
5457
  */
5187
- declare class MultiKeyAccount implements Account$1 {
5458
+ declare class MultiKeyAccount implements Account$1, KeylessSigner {
5188
5459
  /**
5189
5460
  * Public key associated with the account
5190
5461
  */
@@ -5264,9 +5535,14 @@ declare class MultiKeyAccount implements Account$1 {
5264
5535
  */
5265
5536
  waitForProofFetch(): Promise<void>;
5266
5537
  /**
5267
- * Sign the given data using the MultiKeyAccount's signers.
5268
- * @param data - The data to be signed in HexInput format.
5269
- * @returns MultiKeySignature - The resulting multi-key signature.
5538
+ * Validates that the Keyless Account can be used to sign transactions.
5539
+ * @return
5540
+ */
5541
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5542
+ /**
5543
+ * Sign the given message using the MultiKeyAccount's signers
5544
+ * @param message in HexInput format
5545
+ * @returns MultiKeySignature
5270
5546
  */
5271
5547
  sign(data: HexInput): MultiKeySignature;
5272
5548
  /**
@@ -7546,6 +7822,14 @@ declare function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array
7546
7822
  * @param aptosConfig - The configuration settings for Aptos.
7547
7823
  */
7548
7824
  declare function fetchFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<MoveFunction | undefined>;
7825
+ /**
7826
+ * Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.
7827
+ * @param moduleAddress
7828
+ * @param moduleName
7829
+ * @param functionName
7830
+ * @param aptosConfig
7831
+ */
7832
+ declare function fetchMoveFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<FunctionABI>;
7549
7833
  /**
7550
7834
  * Fetches the ABI for an entry function from the specified module address.
7551
7835
  * This function validates if the ABI corresponds to an entry function and retrieves its parameters.
@@ -7570,6 +7854,18 @@ declare function fetchEntryFunctionAbi(moduleAddress: string, moduleName: string
7570
7854
  * @throws Error if the ABI cannot be found or if the function is not a view function.
7571
7855
  */
7572
7856
  declare function fetchViewFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<ViewFunctionABI>;
7857
+ /**
7858
+ * Converts a entry function argument into CallArgument, if necessary.
7859
+ * This function checks the provided argument against the expected parameter type and converts it accordingly.
7860
+ *
7861
+ * @param functionName - The name of the function for which the argument is being converted.
7862
+ * @param functionAbi - The ABI (Application Binary Interface) of the function, which defines its parameters.
7863
+ * @param argument - The argument to be converted, which can be of various types. If the argument is already
7864
+ * CallArgument returned from TransactionComposer it would be returned immediately.
7865
+ * @param position - The index of the argument in the function's parameter list.
7866
+ * @param genericTypeParams - An array of type tags for any generic type parameters.
7867
+ */
7868
+ declare function convertCallArgument(argument: CallArgument | EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes, functionName: string, functionAbi: FunctionABI, position: number, genericTypeParams: Array<TypeTag>): CallArgument;
7573
7869
  /**
7574
7870
  * Converts a non-BCS encoded argument into BCS encoded, if necessary.
7575
7871
  * This function checks the provided argument against the expected parameter type and converts it accordingly.
@@ -7701,6 +7997,14 @@ declare function parseTypeTag(typeStr: string, options?: {
7701
7997
  allowGenerics?: boolean;
7702
7998
  }): TypeTag;
7703
7999
 
8000
+ declare class AptosScriptComposer {
8001
+ private builder;
8002
+ private config;
8003
+ constructor(aptosConfig: AptosConfig);
8004
+ addBatchedCalls(input: InputBatchedFunctionData): Promise<CallArgument[]>;
8005
+ build(): Uint8Array;
8006
+ }
8007
+
7704
8008
  /**
7705
8009
  * A class for querying and managing fungible asset-related operations on the Aptos blockchain.
7706
8010
  */
@@ -8972,6 +9276,70 @@ declare class Build {
8972
9276
  options?: InputGenerateTransactionOptions;
8973
9277
  withFeePayer?: boolean;
8974
9278
  }): Promise<SimpleTransaction>;
9279
+ /**
9280
+ * Build a transaction from a series of Move calls.
9281
+ *
9282
+ * This function allows you to create a transaction with a list of Move calls.
9283
+ *
9284
+ * Right now we only tested this logic with single signer and we will add support
9285
+ * for mutli agent transactions if needed.
9286
+ *
9287
+ * @param args.sender - The sender account address.
9288
+ * @param args.builder - The closure to construct the list of calls.
9289
+ * @param args.options - Optional transaction configurations.
9290
+ * @param args.withFeePayer - Whether there is a fee payer for the transaction.
9291
+ *
9292
+ * @returns SimpleTransaction
9293
+ *
9294
+ * @example
9295
+ * ```typescript
9296
+ * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
9297
+ *
9298
+ * const config = new AptosConfig({ network: Network.TESTNET });
9299
+ * const aptos = new Aptos(config);
9300
+ *
9301
+ * async function runExample() {
9302
+ * // Build a transaction from a chained series of Move calls.
9303
+ * const transaction = await aptos.transaction.script_composer({
9304
+ * sender: "0x1", // replace with a real sender account address
9305
+ * builder: builder: async (builder) => {
9306
+ * const coin = await builder.addBatchedCalls({
9307
+ * function: "0x1::coin::withdraw",
9308
+ * functionArguments: [CallArgument.new_signer(0), 1],
9309
+ * typeArguments: ["0x1::aptos_coin::AptosCoin"],
9310
+ * });
9311
+ *
9312
+ * // Pass the returned value from the first function call to the second call
9313
+ * const fungibleAsset = await builder.addBatchedCalls({
9314
+ * function: "0x1::coin::coin_to_fungible_asset",
9315
+ * functionArguments: [coin[0]],
9316
+ * typeArguments: ["0x1::aptos_coin::AptosCoin"],
9317
+ * });
9318
+ *
9319
+ * await builder.addBatchedCalls({
9320
+ * function: "0x1::primary_fungible_store::deposit",
9321
+ * functionArguments: [singleSignerED25519SenderAccount.accountAddress, fungibleAsset[0]],
9322
+ * typeArguments: [],
9323
+ * });
9324
+ * return builder;
9325
+ * },
9326
+ * options: {
9327
+ * gasUnitPrice: 100, // specify your own gas unit price if needed
9328
+ * maxGasAmount: 1000, // specify your own max gas amount if needed
9329
+ * },
9330
+ * });
9331
+ *
9332
+ * console.log(transaction);
9333
+ * }
9334
+ * runExample().catch(console.error);
9335
+ * ```
9336
+ */
9337
+ scriptComposer(args: {
9338
+ sender: AccountAddressInput;
9339
+ builder: (builder: AptosScriptComposer) => Promise<AptosScriptComposer>;
9340
+ options?: InputGenerateTransactionOptions;
9341
+ withFeePayer?: boolean;
9342
+ }): Promise<SimpleTransaction>;
8975
9343
  /**
8976
9344
  * Build a multi-agent transaction that allows multiple signers to authorize a transaction.
8977
9345
  *
@@ -10661,7 +11029,7 @@ declare class Keyless {
10661
11029
  /**
10662
11030
  * This installs a set of FederatedJWKs at an address for a given iss.
10663
11031
  *
10664
- * It will fetch the JWK set from the well-known endpoint and update the FederatedJWKs at the sender's address
11032
+ * It will fetch the JSON Web Keyset (JWK) set from the well-known endpoint and update the FederatedJWKs at the sender's address
10665
11033
  * to reflect it.
10666
11034
  *
10667
11035
  * @param args.sender The account that will install the JWKs
@@ -10810,64 +11178,6 @@ declare class Aptos {
10810
11178
  interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, AptosObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
10811
11179
  }
10812
11180
 
10813
- /**
10814
- * The API response type
10815
- *
10816
- * @param status - the response status. i.e. 200
10817
- * @param statusText - the response message
10818
- * @param data the response data
10819
- * @param url the url the request was made to
10820
- * @param headers the response headers
10821
- * @param config (optional) - the request object
10822
- * @param request (optional) - the request object
10823
- */
10824
- interface AptosResponse<Req, Res> {
10825
- status: number;
10826
- statusText: string;
10827
- data: Res;
10828
- url: string;
10829
- headers: any;
10830
- config?: any;
10831
- request?: Req;
10832
- }
10833
- /**
10834
- * Options for handling errors in the Aptos API.
10835
- */
10836
- type AptosApiErrorOpts = {
10837
- apiType: AptosApiType;
10838
- aptosRequest: AptosRequest;
10839
- aptosResponse: AptosResponse<any, any>;
10840
- };
10841
- /**
10842
- * Represents an error returned from the Aptos API.
10843
- * This class encapsulates the details of the error, including the request URL, response status, and additional data.
10844
- *
10845
- * @param name - The name of the error, which is always "AptosApiError".
10846
- * @param url - The URL to which the request was made.
10847
- * @param status - The HTTP response status code (e.g., 400).
10848
- * @param statusText - The message associated with the response status.
10849
- * @param data - The response data returned from the API.
10850
- * @param request - The original AptosRequest that triggered the error.
10851
- */
10852
- declare class AptosApiError extends Error {
10853
- readonly url: string;
10854
- readonly status: number;
10855
- readonly statusText: string;
10856
- readonly data: any;
10857
- readonly request: AptosRequest;
10858
- /**
10859
- * Constructs an instance of AptosApiError with relevant error details.
10860
- *
10861
- * @param opts - The options for creating the AptosApiError.
10862
- * @param opts.apiType - The type of API that generated the error.
10863
- * @param opts.aptosRequest - The request object that caused the error.
10864
- * @param opts.aptosResponse - The response object containing error details.
10865
- *
10866
- * @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
10867
- */
10868
- constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
10869
- }
10870
-
10871
11181
  type DeserializableClass<T extends Serializable> = {
10872
11182
  /**
10873
11183
  * Deserializes a serialized object using the provided deserializer.
@@ -10893,6 +11203,13 @@ declare function normalizeBundle<T extends Serializable>(cls: DeserializableClas
10893
11203
  * @param timeMs - The time in milliseconds to sleep.
10894
11204
  */
10895
11205
  declare function sleep(timeMs: number): Promise<null>;
11206
+ /**
11207
+ * Get the error message from an unknown error.
11208
+ *
11209
+ * @param error The error to get the message from
11210
+ * @returns The error message
11211
+ */
11212
+ declare function getErrorMessage(error: unknown): string;
10896
11213
  declare const nowInSeconds: () => number;
10897
11214
  /**
10898
11215
  * Floors the given timestamp to the nearest whole hour.
@@ -11192,4 +11509,118 @@ declare function postAptosPepperService<Req extends {}, Res extends {}>(options:
11192
11509
  */
11193
11510
  declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
11194
11511
 
11195
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_FA, APTOS_HARDENED_REGEX, AbstractKeylessAccount, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FederatedKeylessAccount, FederatedKeylessPublicKey, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, 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, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serialized, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, base64UrlDecode, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertNumber, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isCanonicalEd25519Signature, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isLargeNumber, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, objectStructTag, optionStructTag, padAndPackBytesWithLen, paginateWithCursor, parseEncodedStruct, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
11512
+ declare enum KeylessErrorCategory {
11513
+ API_ERROR = 0,
11514
+ EXTERNAL_API_ERROR = 1,
11515
+ SESSION_EXPIRED = 2,
11516
+ INVALID_STATE = 3,
11517
+ UNKNOWN = 4
11518
+ }
11519
+ declare enum KeylessErrorResolutionTip {
11520
+ REAUTHENTICATE = "Re-authentiate to continue using your keyless account",
11521
+ REAUTHENTICATE_UNSURE = "Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support",
11522
+ UPDATE_REQUEST_PARAMS = "Update the invalid request parameters and reauthenticate.",
11523
+ RATE_LIMIT_EXCEEDED = "Cache the keyless account and reuse it to avoid making too many requests. Keyless accounts are valid until either the EphemeralKeyPair expires, when the JWK is rotated, or when the proof verifying key is changed, whichever comes soonest.",
11524
+ SERVER_ERROR = "Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
11525
+ CALL_PRECHECK = "Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing.",
11526
+ REINSTANTIATE = "Try instantiating the account again. Avoid manipulating the account object directly",
11527
+ JOIN_SUPPORT_GROUP = "For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
11528
+ UNKNOWN = "Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"
11529
+ }
11530
+ declare enum KeylessErrorType {
11531
+ EPHEMERAL_KEY_PAIR_EXPIRED = 0,
11532
+ PROOF_NOT_FOUND = 1,
11533
+ ASYNC_PROOF_FETCH_FAILED = 2,
11534
+ INVALID_PROOF_VERIFICATION_FAILED = 3,
11535
+ INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND = 4,
11536
+ INVALID_JWT_SIG = 5,
11537
+ INVALID_JWT_JWK_NOT_FOUND = 6,
11538
+ INVALID_JWT_ISS_NOT_RECOGNIZED = 7,
11539
+ INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED = 8,
11540
+ INVALID_TW_SIG_VERIFICATION_FAILED = 9,
11541
+ INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND = 10,
11542
+ INVALID_EXPIRY_HORIZON = 11,
11543
+ JWT_PARSING_ERROR = 12,
11544
+ JWK_FETCH_FAILED = 13,
11545
+ JWK_FETCH_FAILED_FEDERATED = 14,
11546
+ RATE_LIMIT_EXCEEDED = 15,
11547
+ PEPPER_SERVICE_INTERNAL_ERROR = 16,
11548
+ PEPPER_SERVICE_BAD_REQUEST = 17,
11549
+ PEPPER_SERVICE_OTHER = 18,
11550
+ PROVER_SERVICE_INTERNAL_ERROR = 19,
11551
+ PROVER_SERVICE_BAD_REQUEST = 20,
11552
+ PROVER_SERVICE_OTHER = 21,
11553
+ FULL_NODE_CONFIG_LOOKUP_ERROR = 22,
11554
+ FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR = 23,
11555
+ FULL_NODE_JWKS_LOOKUP_ERROR = 24,
11556
+ FULL_NODE_OTHER = 25,
11557
+ UNKNOWN = 26
11558
+ }
11559
+ declare class KeylessError extends Error {
11560
+ readonly innerError?: unknown;
11561
+ readonly category: KeylessErrorCategory;
11562
+ readonly resolutionTip: KeylessErrorResolutionTip;
11563
+ readonly type: KeylessErrorType;
11564
+ readonly details?: string;
11565
+ /** @internal this constructor is for sdk internal use - do not instantiate outside of the SDK codebase */
11566
+ constructor(args: {
11567
+ innerError?: unknown;
11568
+ category: KeylessErrorCategory;
11569
+ resolutionTip: KeylessErrorResolutionTip;
11570
+ type: KeylessErrorType;
11571
+ message?: string;
11572
+ details?: string;
11573
+ });
11574
+ static constructMessage(message: string, tip: KeylessErrorResolutionTip, innerError?: unknown, details?: string): string;
11575
+ /**
11576
+ * Static constructor that creates a KeylessError instance using the KeylessErrors constant
11577
+ * @param args.type The type of KeylessError
11578
+ * @param args.aptosApiError optional AptosApiError supplied for api errors
11579
+ * @param args.details optional details to include in the error message
11580
+ * @returns A new KeylessError instance
11581
+ */
11582
+ static fromErrorType(args: {
11583
+ type: KeylessErrorType;
11584
+ error?: unknown;
11585
+ details?: string;
11586
+ }): KeylessError;
11587
+ }
11588
+ /**
11589
+ * Options for handling errors in the Aptos API.
11590
+ */
11591
+ type AptosApiErrorOpts = {
11592
+ apiType: AptosApiType;
11593
+ aptosRequest: AptosRequest;
11594
+ aptosResponse: AptosResponse<any, any>;
11595
+ };
11596
+ /**
11597
+ * Represents an error returned from the Aptos API.
11598
+ * This class encapsulates the details of the error, including the request URL, response status, and additional data.
11599
+ *
11600
+ * @param name - The name of the error, which is always "AptosApiError".
11601
+ * @param url - The URL to which the request was made.
11602
+ * @param status - The HTTP response status code (e.g., 400).
11603
+ * @param statusText - The message associated with the response status.
11604
+ * @param data - The response data returned from the API.
11605
+ * @param request - The original AptosRequest that triggered the error.
11606
+ */
11607
+ declare class AptosApiError extends Error {
11608
+ readonly url: string;
11609
+ readonly status: number;
11610
+ readonly statusText: string;
11611
+ readonly data: any;
11612
+ readonly request: AptosRequest;
11613
+ /**
11614
+ * Constructs an instance of AptosApiError with relevant error details.
11615
+ *
11616
+ * @param opts - The options for creating the AptosApiError.
11617
+ * @param opts.apiType - The type of API that generated the error.
11618
+ * @param opts.aptosRequest - The request object that caused the error.
11619
+ * @param opts.aptosResponse - The response object containing error details.
11620
+ *
11621
+ * @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
11622
+ */
11623
+ constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
11624
+ }
11625
+
11626
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_FA, APTOS_HARDENED_REGEX, AbstractKeylessAccount, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosScriptComposer, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FederatedKeylessAccount, FederatedKeylessPublicKey, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputBatchedFunctionData, 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, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveJWK, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, PrivateKeyVariants, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serialized, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, base64UrlDecode, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertCallArgument, convertNumber, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isCanonicalEd25519Signature, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, objectStructTag, optionStructTag, padAndPackBytesWithLen, paginateWithCursor, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };