@aptos-labs/ts-sdk 1.31.0 → 1.32.1

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 (530) 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 +446 -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 +85 -14
  13. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/Account.d.mts +4 -4
  15. package/dist/esm/account/Account.mjs +1 -1
  16. package/dist/esm/account/Ed25519Account.d.mts +4 -4
  17. package/dist/esm/account/Ed25519Account.mjs +1 -1
  18. package/dist/esm/account/EphemeralKeyPair.d.mts +3 -3
  19. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  20. package/dist/esm/account/FederatedKeylessAccount.d.mts +56 -8
  21. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  22. package/dist/esm/account/KeylessAccount.d.mts +28 -11
  23. package/dist/esm/account/KeylessAccount.mjs +1 -1
  24. package/dist/esm/account/MultiKeyAccount.d.mts +22 -10
  25. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  26. package/dist/esm/account/SingleKeyAccount.d.mts +4 -4
  27. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  28. package/dist/esm/account/index.d.mts +5 -5
  29. package/dist/esm/account/index.mjs +1 -1
  30. package/dist/esm/api/account.d.mts +5 -5
  31. package/dist/esm/api/account.mjs +1 -1
  32. package/dist/esm/api/ans.d.mts +3 -3
  33. package/dist/esm/api/ans.mjs +1 -1
  34. package/dist/esm/api/aptos.d.mts +4 -4
  35. package/dist/esm/api/aptos.mjs +1 -1
  36. package/dist/esm/api/aptosConfig.d.mts +1 -1
  37. package/dist/esm/api/aptosConfig.mjs +1 -1
  38. package/dist/esm/api/coin.d.mts +5 -5
  39. package/dist/esm/api/coin.mjs +1 -1
  40. package/dist/esm/api/digitalAsset.d.mts +5 -5
  41. package/dist/esm/api/digitalAsset.mjs +1 -1
  42. package/dist/esm/api/event.d.mts +3 -3
  43. package/dist/esm/api/event.mjs +1 -1
  44. package/dist/esm/api/faucet.d.mts +2 -2
  45. package/dist/esm/api/faucet.mjs +1 -1
  46. package/dist/esm/api/fungibleAsset.d.mts +5 -5
  47. package/dist/esm/api/fungibleAsset.mjs +1 -1
  48. package/dist/esm/api/general.d.mts +3 -3
  49. package/dist/esm/api/general.mjs +1 -1
  50. package/dist/esm/api/index.d.mts +4 -4
  51. package/dist/esm/api/index.mjs +1 -1
  52. package/dist/esm/api/keyless.d.mts +7 -7
  53. package/dist/esm/api/keyless.mjs +1 -1
  54. package/dist/esm/api/object.d.mts +3 -3
  55. package/dist/esm/api/object.mjs +1 -1
  56. package/dist/esm/api/staking.d.mts +3 -3
  57. package/dist/esm/api/staking.mjs +1 -1
  58. package/dist/esm/api/table.d.mts +3 -3
  59. package/dist/esm/api/table.mjs +1 -1
  60. package/dist/esm/api/transaction.d.mts +3 -3
  61. package/dist/esm/api/transaction.mjs +1 -1
  62. package/dist/esm/api/transactionSubmission/build.d.mts +3 -3
  63. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  64. package/dist/esm/api/transactionSubmission/management.d.mts +4 -4
  65. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  66. package/dist/esm/api/transactionSubmission/sign.d.mts +4 -4
  67. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  68. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  69. package/dist/esm/api/transactionSubmission/simulate.d.mts +3 -3
  70. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  71. package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
  72. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  73. package/dist/esm/api/utils.d.mts +2 -2
  74. package/dist/esm/api/utils.mjs +1 -1
  75. package/dist/esm/bcs/consts.d.mts +2 -2
  76. package/dist/esm/bcs/deserializer.d.mts +35 -27
  77. package/dist/esm/bcs/deserializer.mjs +1 -1
  78. package/dist/esm/bcs/index.d.mts +2 -2
  79. package/dist/esm/bcs/index.mjs +1 -1
  80. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +2 -2
  81. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  82. package/dist/esm/bcs/serializable/fixedBytes.d.mts +2 -2
  83. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  84. package/dist/esm/bcs/serializable/movePrimitives.d.mts +2 -2
  85. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  86. package/dist/esm/bcs/serializable/moveStructs.d.mts +11 -12
  87. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  88. package/dist/esm/bcs/serializer.d.mts +13 -13
  89. package/dist/esm/bcs/serializer.mjs +1 -1
  90. package/dist/esm/{chunk-22ZSW5EN.mjs → chunk-26WX3UFP.mjs} +2 -2
  91. package/dist/esm/{chunk-A2AEFKXS.mjs → chunk-2E3BT4YW.mjs} +2 -2
  92. package/dist/esm/{chunk-VYMRIKUV.mjs → chunk-2LQ4FTSR.mjs} +2 -2
  93. package/dist/esm/{chunk-L5J3V3HW.mjs → chunk-2REHS35S.mjs} +2 -2
  94. package/dist/esm/{chunk-CC7VOPYH.mjs → chunk-2YTHKFJZ.mjs} +2 -2
  95. package/dist/esm/{chunk-6FLHGOKP.mjs → chunk-42H7WETG.mjs} +2 -2
  96. package/dist/esm/{chunk-RBJNSUSU.mjs → chunk-4IQZOAN7.mjs} +2 -2
  97. package/dist/esm/{chunk-ZPQUCT22.mjs → chunk-4J2JYRV3.mjs} +2 -2
  98. package/dist/esm/chunk-4O5XDQDO.mjs +2 -0
  99. package/dist/esm/chunk-5B3SMBXQ.mjs +2 -0
  100. package/dist/esm/{chunk-5N6KJ7KS.mjs → chunk-5KCKWL2C.mjs} +2 -2
  101. package/dist/esm/{chunk-IFXUWUP2.mjs → chunk-5O3RHPER.mjs} +2 -2
  102. package/dist/esm/{chunk-PCLU4KLY.mjs → chunk-6ZOVTYLJ.mjs} +2 -2
  103. package/dist/esm/chunk-7ECCT6PK.mjs +1 -0
  104. package/dist/esm/{chunk-RAJTNQNL.mjs → chunk-7OHMMGS6.mjs} +2 -2
  105. package/dist/esm/{chunk-ZPIMARUG.mjs → chunk-A3USS2NC.mjs} +2 -2
  106. package/dist/esm/{chunk-NODYW7DM.mjs → chunk-ACVIE7IE.mjs} +2 -2
  107. package/dist/esm/{chunk-RNRNGJDA.mjs → chunk-AGEJNSEX.mjs} +2 -2
  108. package/dist/esm/{chunk-QQIVWB6G.mjs → chunk-AJ5JHBAE.mjs} +2 -2
  109. package/dist/esm/{chunk-QQIVWB6G.mjs.map → chunk-AJ5JHBAE.mjs.map} +1 -1
  110. package/dist/esm/{chunk-PRZ7AIGA.mjs → chunk-AKIO3OIT.mjs} +2 -2
  111. package/dist/esm/{chunk-KRVLR3L4.mjs → chunk-AOROYJ74.mjs} +2 -2
  112. package/dist/esm/chunk-AVZYJAXR.mjs +2 -0
  113. package/dist/esm/chunk-AVZYJAXR.mjs.map +1 -0
  114. package/dist/esm/{chunk-BG2TZI3H.mjs → chunk-BP45UJII.mjs} +2 -2
  115. package/dist/esm/{chunk-JGNMNCQB.mjs → chunk-BRV3RLKW.mjs} +2 -2
  116. package/dist/esm/{chunk-EE7GDBA5.mjs → chunk-CEW2NI3K.mjs} +2 -2
  117. package/dist/esm/{chunk-RNJHULIT.mjs → chunk-CPKG25HX.mjs} +2 -2
  118. package/dist/esm/chunk-CPKG25HX.mjs.map +1 -0
  119. package/dist/esm/chunk-D52UKPQF.mjs +2 -0
  120. package/dist/esm/chunk-D52UKPQF.mjs.map +1 -0
  121. package/dist/esm/{chunk-4LKLOUMG.mjs → chunk-D54FD6XE.mjs} +2 -2
  122. package/dist/esm/{chunk-MK2QAHXC.mjs → chunk-DYELAVMR.mjs} +2 -2
  123. package/dist/esm/{chunk-MSHZ4FWB.mjs → chunk-E2GPZCQI.mjs} +2 -2
  124. package/dist/esm/{chunk-MSHZ4FWB.mjs.map → chunk-E2GPZCQI.mjs.map} +1 -1
  125. package/dist/esm/chunk-EJKX6MGV.mjs +2 -0
  126. package/dist/esm/{chunk-WV2VJQDS.mjs.map → chunk-EJKX6MGV.mjs.map} +1 -1
  127. package/dist/esm/{chunk-OXM4BVAY.mjs → chunk-ERDYU5YQ.mjs} +2 -2
  128. package/dist/esm/{chunk-7JK7UG4E.mjs → chunk-ETF76XA3.mjs} +2 -2
  129. package/dist/esm/chunk-F45G3GP3.mjs +7 -0
  130. package/dist/esm/chunk-F45G3GP3.mjs.map +1 -0
  131. package/dist/esm/chunk-FD6FGKYY.mjs +1 -0
  132. package/dist/esm/{chunk-LDZPO76C.mjs → chunk-FFCCBAEZ.mjs} +2 -2
  133. package/dist/esm/chunk-FYYTCJS4.mjs +2 -0
  134. package/dist/esm/chunk-FYYTCJS4.mjs.map +1 -0
  135. package/dist/esm/{chunk-OAEDFM7T.mjs → chunk-GX4CYRK4.mjs} +2 -2
  136. package/dist/esm/{chunk-UCRROMZN.mjs → chunk-GZBVXXUL.mjs} +2 -2
  137. package/dist/esm/{chunk-AT2ZGTXQ.mjs → chunk-H7AALSJ7.mjs} +2 -2
  138. package/dist/esm/{chunk-EUGLLGYW.mjs → chunk-HBWIDPNN.mjs} +2 -2
  139. package/dist/esm/{chunk-BVVHGSWC.mjs → chunk-HPZQGMSH.mjs} +2 -2
  140. package/dist/esm/{chunk-T5BCTWGK.mjs → chunk-I5GENJBA.mjs} +2 -2
  141. package/dist/esm/chunk-I5GENJBA.mjs.map +1 -0
  142. package/dist/esm/{chunk-73GCGRFW.mjs → chunk-II26BNYA.mjs} +2 -2
  143. package/dist/esm/{chunk-BOWPP6YG.mjs → chunk-IQ4SCMB6.mjs} +2 -2
  144. package/dist/esm/chunk-IUSAYAEI.mjs +4 -0
  145. package/dist/esm/{chunk-HM5HITUC.mjs.map → chunk-IUSAYAEI.mjs.map} +1 -1
  146. package/dist/esm/{chunk-J245N3XF.mjs → chunk-J7PJSK3J.mjs} +2 -2
  147. package/dist/esm/{chunk-J245N3XF.mjs.map → chunk-J7PJSK3J.mjs.map} +1 -1
  148. package/dist/esm/{chunk-CL6EEMSL.mjs → chunk-JGLEKXFP.mjs} +2 -2
  149. package/dist/esm/{chunk-SOLWFAUY.mjs → chunk-JIT2FYGE.mjs} +2 -2
  150. package/dist/esm/chunk-JIT2FYGE.mjs.map +1 -0
  151. package/dist/esm/chunk-JNO7KPMG.mjs +4 -0
  152. package/dist/esm/chunk-JNO7KPMG.mjs.map +1 -0
  153. package/dist/esm/{chunk-AZ6LVQEG.mjs → chunk-JONEH52T.mjs} +2 -2
  154. package/dist/esm/chunk-K62JTXWQ.mjs +2 -0
  155. package/dist/esm/chunk-K62JTXWQ.mjs.map +1 -0
  156. package/dist/esm/{chunk-IAVI3H4V.mjs → chunk-KCEI5JYS.mjs} +2 -2
  157. package/dist/esm/{chunk-XFY4O2S3.mjs → chunk-KM6IOJ6Y.mjs} +2 -2
  158. package/dist/esm/{chunk-DMSHPWA5.mjs → chunk-KTM6KVUJ.mjs} +2 -2
  159. package/dist/esm/chunk-KX43GEAB.mjs +2 -0
  160. package/dist/esm/chunk-KX43GEAB.mjs.map +1 -0
  161. package/dist/esm/{chunk-KYJU5PWF.mjs → chunk-L25CRR2W.mjs} +2 -2
  162. package/dist/esm/{chunk-2652SPOM.mjs → chunk-LGHPJTF3.mjs} +2 -2
  163. package/dist/esm/chunk-LGHPJTF3.mjs.map +1 -0
  164. package/dist/esm/{chunk-AGBA3Y7A.mjs → chunk-LGTOOAQI.mjs} +2 -2
  165. package/dist/esm/chunk-LHBMBCFC.mjs +2 -0
  166. package/dist/esm/chunk-LHBMBCFC.mjs.map +1 -0
  167. package/dist/esm/{chunk-F2RY4YQ7.mjs → chunk-LYO22HMF.mjs} +2 -2
  168. package/dist/esm/{chunk-KW4FVBDD.mjs → chunk-MBEWPBGN.mjs} +2 -2
  169. package/dist/esm/chunk-MHN6XY4Z.mjs +2 -0
  170. package/dist/esm/{chunk-JVTDP4KV.mjs → chunk-ML7D2CVG.mjs} +2 -2
  171. package/dist/esm/chunk-NF7ZQQE3.mjs +2 -0
  172. package/dist/esm/chunk-NF7ZQQE3.mjs.map +1 -0
  173. package/dist/esm/{chunk-XQ7ONNII.mjs → chunk-O4MRRWRI.mjs} +2 -2
  174. package/dist/esm/{chunk-PHP47DI4.mjs → chunk-OIOGOW6I.mjs} +1 -1
  175. package/dist/esm/{chunk-PHP47DI4.mjs.map → chunk-OIOGOW6I.mjs.map} +1 -1
  176. package/dist/esm/{chunk-ZINOJTLU.mjs → chunk-OPO5EYF7.mjs} +2 -2
  177. package/dist/esm/{chunk-6DMDYBV6.mjs → chunk-OVI7L7OG.mjs} +2 -2
  178. package/dist/esm/{chunk-TPJLAYW6.mjs → chunk-P2FTRAK3.mjs} +2 -2
  179. package/dist/esm/{chunk-IECDO22V.mjs → chunk-Q3CWUEXI.mjs} +2 -2
  180. package/dist/esm/chunk-Q3CWUEXI.mjs.map +1 -0
  181. package/dist/esm/{chunk-4JXB6V5O.mjs → chunk-RC43EXC4.mjs} +2 -2
  182. package/dist/esm/{chunk-WZCKSN2U.mjs → chunk-RLH25IDA.mjs} +2 -2
  183. package/dist/esm/{chunk-UGL2GPGK.mjs → chunk-RSO5YIDW.mjs} +2 -2
  184. package/dist/esm/chunk-RZGTHCJY.mjs +2 -0
  185. package/dist/esm/{chunk-2CGJLPHP.mjs.map → chunk-RZGTHCJY.mjs.map} +1 -1
  186. package/dist/esm/chunk-SPRNSFUV.mjs +2 -0
  187. package/dist/esm/chunk-SPRNSFUV.mjs.map +1 -0
  188. package/dist/esm/{chunk-2GEIHUHT.mjs → chunk-SPX2YFZN.mjs} +2 -2
  189. package/dist/esm/chunk-SPX2YFZN.mjs.map +1 -0
  190. package/dist/esm/chunk-SY4HK6CC.mjs +2 -0
  191. package/dist/esm/chunk-SY4HK6CC.mjs.map +1 -0
  192. package/dist/esm/{chunk-OTY3NO7Q.mjs → chunk-T6ADNZE5.mjs} +2 -2
  193. package/dist/esm/{chunk-3H5DGQKX.mjs → chunk-TGW36YOD.mjs} +2 -2
  194. package/dist/esm/{chunk-WSZCPSV4.mjs → chunk-TQA6HY6A.mjs} +2 -2
  195. package/dist/esm/{chunk-XFJD6QIP.mjs → chunk-U3GE6IPF.mjs} +2 -2
  196. package/dist/esm/chunk-UGTIALNW.mjs +2 -0
  197. package/dist/esm/{chunk-JNRMHDRA.mjs → chunk-UKVH4UGL.mjs} +2 -2
  198. package/dist/esm/chunk-UWLW2VLZ.mjs +2 -0
  199. package/dist/esm/chunk-UWLW2VLZ.mjs.map +1 -0
  200. package/dist/esm/chunk-UZTJWOLS.mjs +2 -0
  201. package/dist/esm/chunk-V4FKFCBL.mjs +2 -0
  202. package/dist/esm/chunk-V4FKFCBL.mjs.map +1 -0
  203. package/dist/esm/{chunk-4ZK3JNQT.mjs → chunk-VGITSRT6.mjs} +2 -2
  204. package/dist/esm/chunk-VGJIATTB.mjs +2 -0
  205. package/dist/esm/chunk-VGJIATTB.mjs.map +1 -0
  206. package/dist/esm/{chunk-XOCRDV2V.mjs → chunk-VQZMI3EZ.mjs} +2 -2
  207. package/dist/esm/chunk-WQF3IOXC.mjs +2 -0
  208. package/dist/esm/chunk-WQF3IOXC.mjs.map +1 -0
  209. package/dist/esm/chunk-WYOFF5DJ.mjs +2 -0
  210. package/dist/esm/chunk-WYOFF5DJ.mjs.map +1 -0
  211. package/dist/esm/{chunk-YZ5BCOGI.mjs → chunk-X7JNNNMC.mjs} +2 -2
  212. package/dist/esm/{chunk-JN36BNWA.mjs → chunk-XIB6LX22.mjs} +2 -2
  213. package/dist/esm/chunk-YIQ3JFHW.mjs +2 -0
  214. package/dist/esm/chunk-YIQ3JFHW.mjs.map +1 -0
  215. package/dist/esm/chunk-YP3VO6GM.mjs +2 -0
  216. package/dist/esm/chunk-YP3VO6GM.mjs.map +1 -0
  217. package/dist/esm/{chunk-OZN3OOJV.mjs → chunk-ZMBXHMVQ.mjs} +2 -2
  218. package/dist/esm/cli/index.d.mts +2 -2
  219. package/dist/esm/cli/index.mjs +1 -1
  220. package/dist/esm/cli/localNode.mjs +1 -1
  221. package/dist/esm/cli/move.d.mts +1 -1
  222. package/dist/esm/client/core.d.mts +1 -2
  223. package/dist/esm/client/core.mjs +1 -1
  224. package/dist/esm/client/get.d.mts +1 -2
  225. package/dist/esm/client/get.mjs +1 -1
  226. package/dist/esm/client/index.d.mts +2 -3
  227. package/dist/esm/client/index.mjs +1 -1
  228. package/dist/esm/client/post.d.mts +1 -2
  229. package/dist/esm/client/post.mjs +1 -1
  230. package/dist/esm/core/account/index.d.mts +2 -2
  231. package/dist/esm/core/account/index.mjs +1 -1
  232. package/dist/esm/core/account/utils/address.d.mts +2 -2
  233. package/dist/esm/core/account/utils/address.mjs +1 -1
  234. package/dist/esm/core/account/utils/index.d.mts +2 -2
  235. package/dist/esm/core/account/utils/index.mjs +1 -1
  236. package/dist/esm/core/accountAddress.d.mts +19 -10
  237. package/dist/esm/core/accountAddress.mjs +1 -1
  238. package/dist/esm/core/authenticationKey.d.mts +3 -3
  239. package/dist/esm/core/authenticationKey.mjs +1 -1
  240. package/dist/esm/core/crypto/ed25519.d.mts +26 -12
  241. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  242. package/dist/esm/core/crypto/ephemeral.d.mts +3 -3
  243. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  244. package/dist/esm/core/crypto/federatedKeyless.d.mts +4 -4
  245. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  246. package/dist/esm/core/crypto/hdKey.d.mts +0 -1
  247. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  248. package/dist/esm/core/crypto/index.d.mts +4 -4
  249. package/dist/esm/core/crypto/index.mjs +1 -1
  250. package/dist/esm/core/crypto/keyless.d.mts +72 -11
  251. package/dist/esm/core/crypto/keyless.mjs +1 -1
  252. package/dist/esm/core/crypto/multiEd25519.d.mts +3 -3
  253. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  254. package/dist/esm/core/crypto/multiKey.d.mts +3 -3
  255. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  256. package/dist/esm/core/crypto/privateKey.d.mts +37 -10
  257. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  258. package/dist/esm/core/crypto/proof.d.mts +2 -2
  259. package/dist/esm/core/crypto/proof.mjs +1 -1
  260. package/dist/esm/core/crypto/publicKey.d.mts +3 -3
  261. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  262. package/dist/esm/core/crypto/secp256k1.d.mts +23 -9
  263. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  264. package/dist/esm/core/crypto/signature.d.mts +2 -2
  265. package/dist/esm/core/crypto/signature.mjs +1 -1
  266. package/dist/esm/core/crypto/singleKey.d.mts +3 -3
  267. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  268. package/dist/esm/core/crypto/utils.d.mts +2 -2
  269. package/dist/esm/core/crypto/utils.mjs +1 -1
  270. package/dist/esm/core/hex.d.mts +39 -3
  271. package/dist/esm/core/hex.mjs +1 -1
  272. package/dist/esm/core/index.d.mts +5 -5
  273. package/dist/esm/core/index.mjs +1 -1
  274. package/dist/esm/errors/index.d.mts +122 -0
  275. package/dist/esm/errors/index.mjs +2 -0
  276. package/dist/esm/index.d.mts +10 -10
  277. package/dist/esm/index.mjs +1 -1
  278. package/dist/esm/internal/account.d.mts +4 -4
  279. package/dist/esm/internal/account.mjs +1 -1
  280. package/dist/esm/internal/ans.d.mts +4 -4
  281. package/dist/esm/internal/ans.mjs +1 -1
  282. package/dist/esm/internal/coin.d.mts +2 -2
  283. package/dist/esm/internal/coin.mjs +1 -1
  284. package/dist/esm/internal/digitalAsset.d.mts +4 -4
  285. package/dist/esm/internal/digitalAsset.mjs +1 -1
  286. package/dist/esm/internal/event.d.mts +2 -2
  287. package/dist/esm/internal/event.mjs +1 -1
  288. package/dist/esm/internal/faucet.d.mts +1 -1
  289. package/dist/esm/internal/faucet.mjs +1 -1
  290. package/dist/esm/internal/fungibleAsset.d.mts +4 -4
  291. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  292. package/dist/esm/internal/general.d.mts +2 -2
  293. package/dist/esm/internal/general.mjs +1 -1
  294. package/dist/esm/internal/keyless.d.mts +9 -5
  295. package/dist/esm/internal/keyless.mjs +1 -1
  296. package/dist/esm/internal/object.d.mts +2 -2
  297. package/dist/esm/internal/object.mjs +1 -1
  298. package/dist/esm/internal/staking.d.mts +1 -1
  299. package/dist/esm/internal/staking.mjs +1 -1
  300. package/dist/esm/internal/table.d.mts +2 -2
  301. package/dist/esm/internal/table.mjs +1 -1
  302. package/dist/esm/internal/transaction.d.mts +1 -1
  303. package/dist/esm/internal/transaction.mjs +1 -1
  304. package/dist/esm/internal/transactionSubmission.d.mts +3 -3
  305. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  306. package/dist/esm/internal/view.d.mts +3 -3
  307. package/dist/esm/internal/view.mjs +1 -1
  308. package/dist/esm/{publicKey-_tPa99ea.d.mts → publicKey-BVXX1nVl.d.mts} +2 -2
  309. package/dist/esm/transactions/authenticator/account.d.mts +3 -3
  310. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  311. package/dist/esm/transactions/authenticator/index.d.mts +3 -3
  312. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  313. package/dist/esm/transactions/authenticator/transaction.d.mts +9 -4
  314. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  315. package/dist/esm/transactions/index.d.mts +3 -3
  316. package/dist/esm/transactions/index.mjs +1 -1
  317. package/dist/esm/transactions/instances/chainId.d.mts +2 -2
  318. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  319. package/dist/esm/transactions/instances/identifier.d.mts +2 -2
  320. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  321. package/dist/esm/transactions/instances/index.d.mts +3 -3
  322. package/dist/esm/transactions/instances/index.mjs +1 -1
  323. package/dist/esm/transactions/instances/moduleId.d.mts +2 -2
  324. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  325. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +2 -2
  326. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  327. package/dist/esm/transactions/instances/rawTransaction.d.mts +2 -2
  328. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  329. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +3 -3
  330. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  331. package/dist/esm/transactions/instances/signedTransaction.d.mts +3 -3
  332. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  333. package/dist/esm/transactions/instances/simpleTransaction.d.mts +2 -2
  334. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  335. package/dist/esm/transactions/instances/transactionArgument.d.mts +2 -2
  336. package/dist/esm/transactions/instances/transactionPayload.d.mts +2 -2
  337. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  338. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +4 -4
  339. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  340. package/dist/esm/transactions/management/index.d.mts +4 -4
  341. package/dist/esm/transactions/management/index.mjs +1 -1
  342. package/dist/esm/transactions/management/transactionWorker.d.mts +4 -4
  343. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  344. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +2 -2
  345. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  346. package/dist/esm/transactions/transactionBuilder/index.d.mts +3 -3
  347. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  348. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +3 -3
  349. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  350. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +3 -3
  351. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  352. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -3
  353. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  354. package/dist/esm/transactions/typeTag/index.d.mts +2 -2
  355. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  356. package/dist/esm/transactions/typeTag/parser.d.mts +2 -2
  357. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  358. package/dist/esm/transactions/types.d.mts +2 -2
  359. package/dist/esm/types/index.d.mts +3 -1260
  360. package/dist/esm/types/index.mjs +1 -1
  361. package/dist/esm/types/keyless.d.mts +22 -1
  362. package/dist/esm/types/types.d.mts +1289 -0
  363. package/dist/esm/types/types.mjs +2 -0
  364. package/dist/esm/types/types.mjs.map +1 -0
  365. package/dist/esm/utils/const.d.mts +7 -1
  366. package/dist/esm/utils/const.mjs +1 -1
  367. package/dist/esm/utils/helpers.d.mts +10 -3
  368. package/dist/esm/utils/helpers.mjs +1 -1
  369. package/dist/esm/utils/index.d.mts +3 -3
  370. package/dist/esm/utils/index.mjs +1 -1
  371. package/dist/esm/utils/normalizeBundle.d.mts +2 -2
  372. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  373. package/dist/esm/version.d.mts +1 -1
  374. package/dist/esm/version.mjs +1 -1
  375. package/package.json +1 -1
  376. package/src/account/AbstractKeylessAccount.ts +203 -10
  377. package/src/account/FederatedKeylessAccount.ts +83 -35
  378. package/src/account/KeylessAccount.ts +44 -37
  379. package/src/account/MultiKeyAccount.ts +18 -5
  380. package/src/api/keyless.ts +2 -2
  381. package/src/bcs/deserializer.ts +53 -30
  382. package/src/bcs/serializable/moveStructs.ts +16 -17
  383. package/src/bcs/serializer.ts +22 -12
  384. package/src/client/core.ts +2 -2
  385. package/src/client/get.ts +1 -2
  386. package/src/client/index.ts +0 -1
  387. package/src/client/post.ts +1 -2
  388. package/src/core/accountAddress.ts +36 -9
  389. package/src/core/crypto/ed25519.ts +34 -14
  390. package/src/core/crypto/hdKey.ts +0 -1
  391. package/src/core/crypto/keyless.ts +245 -38
  392. package/src/core/crypto/privateKey.ts +81 -5
  393. package/src/core/crypto/secp256k1.ts +31 -11
  394. package/src/core/hex.ts +47 -0
  395. package/src/errors/index.ts +406 -0
  396. package/src/index.ts +1 -0
  397. package/src/internal/account.ts +6 -6
  398. package/src/internal/ans.ts +2 -1
  399. package/src/internal/keyless.ts +57 -19
  400. package/src/internal/transaction.ts +2 -1
  401. package/src/internal/transactionSubmission.ts +36 -18
  402. package/src/transactions/authenticator/transaction.ts +20 -0
  403. package/src/types/index.ts +1 -1483
  404. package/src/types/keyless.ts +19 -0
  405. package/src/types/types.ts +1512 -0
  406. package/src/utils/const.ts +7 -0
  407. package/src/utils/helpers.ts +10 -0
  408. package/src/version.ts +1 -1
  409. package/dist/common/chunk-7IYTZDXV.js +0 -2
  410. package/dist/common/chunk-7IYTZDXV.js.map +0 -1
  411. package/dist/esm/chunk-2652SPOM.mjs.map +0 -1
  412. package/dist/esm/chunk-2CGJLPHP.mjs +0 -2
  413. package/dist/esm/chunk-2GEIHUHT.mjs.map +0 -1
  414. package/dist/esm/chunk-4CDDWSKZ.mjs +0 -2
  415. package/dist/esm/chunk-4OV7QU2U.mjs +0 -2
  416. package/dist/esm/chunk-4VU2ABLU.mjs +0 -2
  417. package/dist/esm/chunk-4VU2ABLU.mjs.map +0 -1
  418. package/dist/esm/chunk-5S3Z7MT4.mjs +0 -2
  419. package/dist/esm/chunk-5S3Z7MT4.mjs.map +0 -1
  420. package/dist/esm/chunk-5SGSPCOY.mjs +0 -2
  421. package/dist/esm/chunk-5SGSPCOY.mjs.map +0 -1
  422. package/dist/esm/chunk-7XS45O6M.mjs +0 -2
  423. package/dist/esm/chunk-7XS45O6M.mjs.map +0 -1
  424. package/dist/esm/chunk-BAGUHYFD.mjs +0 -2
  425. package/dist/esm/chunk-BAGUHYFD.mjs.map +0 -1
  426. package/dist/esm/chunk-CDQGPCHU.mjs +0 -2
  427. package/dist/esm/chunk-CDQGPCHU.mjs.map +0 -1
  428. package/dist/esm/chunk-FTZGP6XW.mjs +0 -2
  429. package/dist/esm/chunk-FTZGP6XW.mjs.map +0 -1
  430. package/dist/esm/chunk-GLATLXF6.mjs +0 -2
  431. package/dist/esm/chunk-GLATLXF6.mjs.map +0 -1
  432. package/dist/esm/chunk-GQABU3RQ.mjs +0 -2
  433. package/dist/esm/chunk-GQABU3RQ.mjs.map +0 -1
  434. package/dist/esm/chunk-HM5HITUC.mjs +0 -4
  435. package/dist/esm/chunk-IBLZ6MZU.mjs +0 -2
  436. package/dist/esm/chunk-IECDO22V.mjs.map +0 -1
  437. package/dist/esm/chunk-KFNDDPOW.mjs +0 -2
  438. package/dist/esm/chunk-KFNDDPOW.mjs.map +0 -1
  439. package/dist/esm/chunk-KIW54KWR.mjs +0 -2
  440. package/dist/esm/chunk-KM6UXNC7.mjs +0 -2
  441. package/dist/esm/chunk-KM6UXNC7.mjs.map +0 -1
  442. package/dist/esm/chunk-KUX6GQ2E.mjs +0 -1
  443. package/dist/esm/chunk-LEKBJ2EG.mjs +0 -2
  444. package/dist/esm/chunk-LEKBJ2EG.mjs.map +0 -1
  445. package/dist/esm/chunk-M22UGFQ5.mjs +0 -2
  446. package/dist/esm/chunk-M22UGFQ5.mjs.map +0 -1
  447. package/dist/esm/chunk-N2FKVZ4D.mjs +0 -1
  448. package/dist/esm/chunk-N47FTRYO.mjs +0 -2
  449. package/dist/esm/chunk-N47FTRYO.mjs.map +0 -1
  450. package/dist/esm/chunk-ONBFUPEC.mjs +0 -2
  451. package/dist/esm/chunk-P3J54CQG.mjs +0 -2
  452. package/dist/esm/chunk-P3J54CQG.mjs.map +0 -1
  453. package/dist/esm/chunk-RNJHULIT.mjs.map +0 -1
  454. package/dist/esm/chunk-SGQFWWLQ.mjs +0 -2
  455. package/dist/esm/chunk-SGQFWWLQ.mjs.map +0 -1
  456. package/dist/esm/chunk-SOLWFAUY.mjs.map +0 -1
  457. package/dist/esm/chunk-T5BCTWGK.mjs.map +0 -1
  458. package/dist/esm/chunk-WV2VJQDS.mjs +0 -2
  459. package/dist/esm/chunk-Y267I7DC.mjs +0 -2
  460. package/dist/esm/chunk-Y267I7DC.mjs.map +0 -1
  461. package/dist/esm/client/types.d.mts +0 -66
  462. package/dist/esm/client/types.mjs +0 -2
  463. package/src/client/types.ts +0 -138
  464. /package/dist/esm/{chunk-22ZSW5EN.mjs.map → chunk-26WX3UFP.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-A2AEFKXS.mjs.map → chunk-2E3BT4YW.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-VYMRIKUV.mjs.map → chunk-2LQ4FTSR.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-L5J3V3HW.mjs.map → chunk-2REHS35S.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-CC7VOPYH.mjs.map → chunk-2YTHKFJZ.mjs.map} +0 -0
  469. /package/dist/esm/{chunk-6FLHGOKP.mjs.map → chunk-42H7WETG.mjs.map} +0 -0
  470. /package/dist/esm/{chunk-RBJNSUSU.mjs.map → chunk-4IQZOAN7.mjs.map} +0 -0
  471. /package/dist/esm/{chunk-ZPQUCT22.mjs.map → chunk-4J2JYRV3.mjs.map} +0 -0
  472. /package/dist/esm/{chunk-IBLZ6MZU.mjs.map → chunk-4O5XDQDO.mjs.map} +0 -0
  473. /package/dist/esm/{chunk-KIW54KWR.mjs.map → chunk-5B3SMBXQ.mjs.map} +0 -0
  474. /package/dist/esm/{chunk-5N6KJ7KS.mjs.map → chunk-5KCKWL2C.mjs.map} +0 -0
  475. /package/dist/esm/{chunk-IFXUWUP2.mjs.map → chunk-5O3RHPER.mjs.map} +0 -0
  476. /package/dist/esm/{chunk-PCLU4KLY.mjs.map → chunk-6ZOVTYLJ.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-KUX6GQ2E.mjs.map → chunk-7ECCT6PK.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-RAJTNQNL.mjs.map → chunk-7OHMMGS6.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-ZPIMARUG.mjs.map → chunk-A3USS2NC.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-NODYW7DM.mjs.map → chunk-ACVIE7IE.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-RNRNGJDA.mjs.map → chunk-AGEJNSEX.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-PRZ7AIGA.mjs.map → chunk-AKIO3OIT.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-KRVLR3L4.mjs.map → chunk-AOROYJ74.mjs.map} +0 -0
  484. /package/dist/esm/{chunk-BG2TZI3H.mjs.map → chunk-BP45UJII.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-JGNMNCQB.mjs.map → chunk-BRV3RLKW.mjs.map} +0 -0
  486. /package/dist/esm/{chunk-EE7GDBA5.mjs.map → chunk-CEW2NI3K.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-4LKLOUMG.mjs.map → chunk-D54FD6XE.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-MK2QAHXC.mjs.map → chunk-DYELAVMR.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-OXM4BVAY.mjs.map → chunk-ERDYU5YQ.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-7JK7UG4E.mjs.map → chunk-ETF76XA3.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-N2FKVZ4D.mjs.map → chunk-FD6FGKYY.mjs.map} +0 -0
  492. /package/dist/esm/{chunk-LDZPO76C.mjs.map → chunk-FFCCBAEZ.mjs.map} +0 -0
  493. /package/dist/esm/{chunk-OAEDFM7T.mjs.map → chunk-GX4CYRK4.mjs.map} +0 -0
  494. /package/dist/esm/{chunk-UCRROMZN.mjs.map → chunk-GZBVXXUL.mjs.map} +0 -0
  495. /package/dist/esm/{chunk-AT2ZGTXQ.mjs.map → chunk-H7AALSJ7.mjs.map} +0 -0
  496. /package/dist/esm/{chunk-EUGLLGYW.mjs.map → chunk-HBWIDPNN.mjs.map} +0 -0
  497. /package/dist/esm/{chunk-BVVHGSWC.mjs.map → chunk-HPZQGMSH.mjs.map} +0 -0
  498. /package/dist/esm/{chunk-73GCGRFW.mjs.map → chunk-II26BNYA.mjs.map} +0 -0
  499. /package/dist/esm/{chunk-BOWPP6YG.mjs.map → chunk-IQ4SCMB6.mjs.map} +0 -0
  500. /package/dist/esm/{chunk-CL6EEMSL.mjs.map → chunk-JGLEKXFP.mjs.map} +0 -0
  501. /package/dist/esm/{chunk-AZ6LVQEG.mjs.map → chunk-JONEH52T.mjs.map} +0 -0
  502. /package/dist/esm/{chunk-IAVI3H4V.mjs.map → chunk-KCEI5JYS.mjs.map} +0 -0
  503. /package/dist/esm/{chunk-XFY4O2S3.mjs.map → chunk-KM6IOJ6Y.mjs.map} +0 -0
  504. /package/dist/esm/{chunk-DMSHPWA5.mjs.map → chunk-KTM6KVUJ.mjs.map} +0 -0
  505. /package/dist/esm/{chunk-KYJU5PWF.mjs.map → chunk-L25CRR2W.mjs.map} +0 -0
  506. /package/dist/esm/{chunk-AGBA3Y7A.mjs.map → chunk-LGTOOAQI.mjs.map} +0 -0
  507. /package/dist/esm/{chunk-F2RY4YQ7.mjs.map → chunk-LYO22HMF.mjs.map} +0 -0
  508. /package/dist/esm/{chunk-KW4FVBDD.mjs.map → chunk-MBEWPBGN.mjs.map} +0 -0
  509. /package/dist/esm/{chunk-4OV7QU2U.mjs.map → chunk-MHN6XY4Z.mjs.map} +0 -0
  510. /package/dist/esm/{chunk-JVTDP4KV.mjs.map → chunk-ML7D2CVG.mjs.map} +0 -0
  511. /package/dist/esm/{chunk-XQ7ONNII.mjs.map → chunk-O4MRRWRI.mjs.map} +0 -0
  512. /package/dist/esm/{chunk-ZINOJTLU.mjs.map → chunk-OPO5EYF7.mjs.map} +0 -0
  513. /package/dist/esm/{chunk-6DMDYBV6.mjs.map → chunk-OVI7L7OG.mjs.map} +0 -0
  514. /package/dist/esm/{chunk-TPJLAYW6.mjs.map → chunk-P2FTRAK3.mjs.map} +0 -0
  515. /package/dist/esm/{chunk-4JXB6V5O.mjs.map → chunk-RC43EXC4.mjs.map} +0 -0
  516. /package/dist/esm/{chunk-WZCKSN2U.mjs.map → chunk-RLH25IDA.mjs.map} +0 -0
  517. /package/dist/esm/{chunk-UGL2GPGK.mjs.map → chunk-RSO5YIDW.mjs.map} +0 -0
  518. /package/dist/esm/{chunk-OTY3NO7Q.mjs.map → chunk-T6ADNZE5.mjs.map} +0 -0
  519. /package/dist/esm/{chunk-3H5DGQKX.mjs.map → chunk-TGW36YOD.mjs.map} +0 -0
  520. /package/dist/esm/{chunk-WSZCPSV4.mjs.map → chunk-TQA6HY6A.mjs.map} +0 -0
  521. /package/dist/esm/{chunk-XFJD6QIP.mjs.map → chunk-U3GE6IPF.mjs.map} +0 -0
  522. /package/dist/esm/{chunk-ONBFUPEC.mjs.map → chunk-UGTIALNW.mjs.map} +0 -0
  523. /package/dist/esm/{chunk-JNRMHDRA.mjs.map → chunk-UKVH4UGL.mjs.map} +0 -0
  524. /package/dist/esm/{chunk-4CDDWSKZ.mjs.map → chunk-UZTJWOLS.mjs.map} +0 -0
  525. /package/dist/esm/{chunk-4ZK3JNQT.mjs.map → chunk-VGITSRT6.mjs.map} +0 -0
  526. /package/dist/esm/{chunk-XOCRDV2V.mjs.map → chunk-VQZMI3EZ.mjs.map} +0 -0
  527. /package/dist/esm/{chunk-YZ5BCOGI.mjs.map → chunk-X7JNNNMC.mjs.map} +0 -0
  528. /package/dist/esm/{chunk-JN36BNWA.mjs.map → chunk-XIB6LX22.mjs.map} +0 -0
  529. /package/dist/esm/{chunk-OZN3OOJV.mjs.map → chunk-ZMBXHMVQ.mjs.map} +0 -0
  530. /package/dist/esm/{client/types.mjs.map → errors/index.mjs.map} +0 -0
@@ -1,5 +1,5 @@
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
3
  import EventEmitter from 'eventemitter3';
4
4
 
5
5
  type Maybe<T> = T | null;
@@ -635,8 +635,7 @@ declare class U256 extends Serializable implements TransactionArgument {
635
635
  * const vecOfStrings = new MoveVector([new MoveString("hello"), new MoveString("world")]);
636
636
  * const vecOfStrings2 = MoveVector.MoveString(["hello", "world"]);
637
637
  *
638
- * @params
639
- * values: an Array<T> of values where T is a class that implements Serializable
638
+ * @param values an Array<T> of values where T is a class that implements Serializable
640
639
  * @returns a `MoveVector<T>` with the values `values`
641
640
  */
642
641
  declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends Serializable implements TransactionArgument {
@@ -875,7 +874,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
875
874
  * MoveOption.U8(1).isSome() === true;
876
875
  * MoveOption.U8().isSome() === false;
877
876
  * MoveOption.U8(undefined).isSome() === false;
878
- * @params value: the value used to fill the MoveOption. If `value` is undefined
877
+ * @param value the value used to fill the MoveOption. If `value` is undefined
879
878
  * the resulting MoveOption's .isSome() method will return false.
880
879
  * @returns a MoveOption<U8> with an inner value `value`
881
880
  */
@@ -887,7 +886,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
887
886
  * MoveOption.U16(1).isSome() === true;
888
887
  * MoveOption.U16().isSome() === false;
889
888
  * MoveOption.U16(undefined).isSome() === false;
890
- * @params value: the value used to fill the MoveOption. If `value` is undefined
889
+ * @param value the value used to fill the MoveOption. If `value` is undefined
891
890
  * the resulting MoveOption's .isSome() method will return false.
892
891
  * @returns a MoveOption<U16> with an inner value `value`
893
892
  */
@@ -899,7 +898,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
899
898
  * MoveOption.U32(1).isSome() === true;
900
899
  * MoveOption.U32().isSome() === false;
901
900
  * MoveOption.U32(undefined).isSome() === false;
902
- * @params value: the value used to fill the MoveOption. If `value` is undefined
901
+ * @param value the value used to fill the MoveOption. If `value` is undefined
903
902
  * the resulting MoveOption's .isSome() method will return false.
904
903
  * @returns a MoveOption<U32> with an inner value `value`
905
904
  */
@@ -911,7 +910,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
911
910
  * MoveOption.U64(1).isSome() === true;
912
911
  * MoveOption.U64().isSome() === false;
913
912
  * MoveOption.U64(undefined).isSome() === false;
914
- * @params value: the value used to fill the MoveOption. If `value` is undefined
913
+ * @param value the value used to fill the MoveOption. If `value` is undefined
915
914
  * the resulting MoveOption's .isSome() method will return false.
916
915
  * @returns a MoveOption<U64> with an inner value `value`
917
916
  */
@@ -923,7 +922,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
923
922
  * MoveOption.U128(1).isSome() === true;
924
923
  * MoveOption.U128().isSome() === false;
925
924
  * MoveOption.U128(undefined).isSome() === false;
926
- * @params value: the value used to fill the MoveOption. If `value` is undefined
925
+ * @param value the value used to fill the MoveOption. If `value` is undefined
927
926
  * the resulting MoveOption's .isSome() method will return false.
928
927
  * @returns a MoveOption<U128> with an inner value `value`
929
928
  */
@@ -935,7 +934,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
935
934
  * MoveOption.U256(1).isSome() === true;
936
935
  * MoveOption.U256().isSome() === false;
937
936
  * MoveOption.U256(undefined).isSome() === false;
938
- * @params value: the value used to fill the MoveOption. If `value` is undefined
937
+ * @param value the value used to fill the MoveOption. If `value` is undefined
939
938
  * the resulting MoveOption's .isSome() method will return false.
940
939
  * @returns a MoveOption<U256> with an inner value `value`
941
940
  */
@@ -947,7 +946,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
947
946
  * MoveOption.Bool(true).isSome() === true;
948
947
  * MoveOption.Bool().isSome() === false;
949
948
  * MoveOption.Bool(undefined).isSome() === false;
950
- * @params value: the value used to fill the MoveOption. If `value` is undefined
949
+ * @param value the value used to fill the MoveOption. If `value` is undefined
951
950
  * the resulting MoveOption's .isSome() method will return false.
952
951
  * @returns a MoveOption<Bool> with an inner value `value`
953
952
  */
@@ -960,7 +959,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
960
959
  * MoveOption.MoveString("").isSome() === true;
961
960
  * MoveOption.MoveString().isSome() === false;
962
961
  * MoveOption.MoveString(undefined).isSome() === false;
963
- * @params value: the value used to fill the MoveOption. If `value` is undefined
962
+ * @param value the value used to fill the MoveOption. If `value` is undefined
964
963
  * the resulting MoveOption's .isSome() method will return false.
965
964
  * @returns a MoveOption<MoveString> with an inner value `value`
966
965
  */
@@ -1132,10 +1131,6 @@ declare abstract class AccountPublicKey extends PublicKey {
1132
1131
 
1133
1132
  /**
1134
1133
  * 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
1134
  */
1140
1135
  interface PrivateKey {
1141
1136
  /**
@@ -1153,6 +1148,37 @@ interface PrivateKey {
1153
1148
  */
1154
1149
  toUint8Array(): Uint8Array;
1155
1150
  }
1151
+ declare class PrivateKey {
1152
+ /**
1153
+ * The AIP-80 compliant prefixes for each private key type. Append this to a private key's hex representation
1154
+ * to get an AIP-80 compliant string.
1155
+ *
1156
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1157
+ */
1158
+ static readonly AIP80_PREFIXES: {
1159
+ ed25519: string;
1160
+ secp256k1: string;
1161
+ };
1162
+ /**
1163
+ * Format a HexInput to an AIP-80 compliant string.
1164
+ *
1165
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1166
+ *
1167
+ * @param privateKey - The HexString or Uint8Array format of the private key.
1168
+ * @param privateKeyType - The private key type
1169
+ */
1170
+ static formatPrivateKey(privateKey: HexInput, type: PrivateKeyVariants): string;
1171
+ /**
1172
+ * Parse a HexInput that may be a HexString, Uint8Array, or a AIP-80 compliant string to a Hex instance.
1173
+ *
1174
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1175
+ *
1176
+ * @param value - A HexString, Uint8Array, or a AIP-80 compliant string.
1177
+ * @param privateKeyType - The private key type
1178
+ * @param strict - If true, the value MUST be compliant with AIP-80.
1179
+ */
1180
+ static parseHexInput(value: HexInput, type: PrivateKeyVariants, strict?: boolean): Hex;
1181
+ }
1156
1182
 
1157
1183
  /**
1158
1184
  * Checks if an ED25519 signature is non-canonical.
@@ -1247,20 +1273,17 @@ declare class Ed25519PublicKey extends AccountPublicKey {
1247
1273
  }
1248
1274
  /**
1249
1275
  * 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
1276
  */
1256
1277
  declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1257
1278
  /**
1258
1279
  * Length of an Ed25519 private key
1280
+ * @readonly
1259
1281
  */
1260
1282
  static readonly LENGTH: number;
1261
1283
  /**
1262
1284
  * The Ed25519 key seed to use for BIP-32 compatibility
1263
1285
  * See more {@link https://github.com/satoshilabs/slips/blob/master/slip-0010.md}
1286
+ * @readonly
1264
1287
  */
1265
1288
  static readonly SLIP_0010_SEED = "ed25519 seed";
1266
1289
  /**
@@ -1271,9 +1294,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1271
1294
  /**
1272
1295
  * Create a new PrivateKey instance from a Uint8Array or String.
1273
1296
  *
1297
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1298
+ *
1274
1299
  * @param hexInput HexInput (string or Uint8Array)
1300
+ * @param strict If true, private key must AIP-80 compliant.
1275
1301
  */
1276
- constructor(hexInput: HexInput);
1302
+ constructor(hexInput: HexInput, strict?: boolean);
1277
1303
  /**
1278
1304
  * Generate a new random private key.
1279
1305
  *
@@ -1328,6 +1354,20 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1328
1354
  * @returns string representation of the private key.
1329
1355
  */
1330
1356
  toString(): string;
1357
+ /**
1358
+ * Get the private key as a hex string with the 0x prefix.
1359
+ *
1360
+ * @returns string representation of the private key.
1361
+ */
1362
+ toHexString(): string;
1363
+ /**
1364
+ * Get the private key as a AIP-80 compliant hex string.
1365
+ *
1366
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
1367
+ *
1368
+ * @returns AIP-80 compliant string representation of the private key.
1369
+ */
1370
+ toAIP80String(): string;
1331
1371
  serialize(serializer: Serializer): void;
1332
1372
  static deserialize(deserializer: Deserializer): Ed25519PrivateKey;
1333
1373
  /**
@@ -1342,12 +1382,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
1342
1382
  }
1343
1383
  /**
1344
1384
  * 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
1385
  */
1348
1386
  declare class Ed25519Signature extends Signature {
1349
1387
  /**
1350
- * Length of an Ed25519 signature
1388
+ * Length of an Ed25519 signature, which is 64 bytes.
1389
+ *
1390
+ * @readonly
1351
1391
  */
1352
1392
  static readonly LENGTH = 64;
1353
1393
  /**
@@ -1414,7 +1454,6 @@ declare const deriveKey: (hashSeed: Uint8Array | string, data: Uint8Array | stri
1414
1454
  * @param key
1415
1455
  * @param chainCode
1416
1456
  * @param index
1417
- * @constructor
1418
1457
  */
1419
1458
  declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => DerivedKeys;
1420
1459
  /**
@@ -1938,6 +1977,12 @@ type Groth16VerificationKeyResponse = {
1938
1977
  gamma_abc_g1: [string, string];
1939
1978
  gamma_g2: string;
1940
1979
  };
1980
+ type MoveAnyStruct = {
1981
+ variant: {
1982
+ data: string;
1983
+ type_name: string;
1984
+ };
1985
+ };
1941
1986
 
1942
1987
  /**
1943
1988
  * Types of API endpoints used for routing requests in the Aptos network.
@@ -1995,6 +2040,12 @@ declare enum ProcessorType {
1995
2040
  USER_TRANSACTION_PROCESSOR = "user_transaction_processor",
1996
2041
  OBJECT_PROCESSOR = "objects_processor"
1997
2042
  }
2043
+ /**
2044
+ * Regular expression pattern for Firebase Auth issuer URLs
2045
+ * Matches URLs in the format: https://securetoken.google.com/[project-id]
2046
+ * where project-id can contain letters, numbers, hyphens, and underscores
2047
+ */
2048
+ declare const FIREBASE_AUTH_ISS_PATTERN: RegExp;
1998
2049
 
1999
2050
  /**
2000
2051
  * Represents the configuration settings for an Aptos SDK client instance.
@@ -2330,6 +2381,12 @@ declare class KeylessSignature extends Signature {
2330
2381
  ephemeralPublicKey: EphemeralPublicKey;
2331
2382
  ephemeralSignature: EphemeralSignature;
2332
2383
  });
2384
+ /**
2385
+ * Get the kid of the JWT used to derive the Keyless Account used to sign.
2386
+ *
2387
+ * @returns the kid as a string
2388
+ */
2389
+ getJwkKid(): string;
2333
2390
  serialize(serializer: Serializer): void;
2334
2391
  static deserialize(deserializer: Deserializer): KeylessSignature;
2335
2392
  static getSimulationSignature(): KeylessSignature;
@@ -2478,12 +2535,12 @@ declare class KeylessConfiguration {
2478
2535
  /**
2479
2536
  * The verification key used to verify Groth16 proofs on chain
2480
2537
  */
2481
- readonly verficationKey: Groth16VerificationKey;
2538
+ readonly verificationKey: Groth16VerificationKey;
2482
2539
  /**
2483
2540
  * The maximum lifespan of an ephemeral key pair. This is configured on chain.
2484
2541
  */
2485
2542
  readonly maxExpHorizonSecs: number;
2486
- constructor(verficationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
2543
+ constructor(verificationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
2487
2544
  static create(res: Groth16VerificationKeyResponse, maxExpHorizonSecs: number): KeylessConfiguration;
2488
2545
  }
2489
2546
  /**
@@ -2505,7 +2562,7 @@ declare class Groth16VerificationKey {
2505
2562
  /**
2506
2563
  * The `gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H`, where H is the generator of G1
2507
2564
  */
2508
- readonly gammaAbcG1: G1Bytes[];
2565
+ readonly gammaAbcG1: [G1Bytes, G1Bytes];
2509
2566
  /**
2510
2567
  * The `gamma * H`, where `H` is the generator of G2
2511
2568
  */
@@ -2517,6 +2574,14 @@ declare class Groth16VerificationKey {
2517
2574
  gammaAbcG1: [HexInput, HexInput];
2518
2575
  gammaG2: HexInput;
2519
2576
  });
2577
+ /**
2578
+ * Calculates the hash of the serialized form of the verification key.
2579
+ * This is useful for comparing verification keys or using them as unique identifiers.
2580
+ *
2581
+ * @returns The SHA3-256 hash of the serialized verification key as a Uint8Array
2582
+ */
2583
+ hash(): Uint8Array;
2584
+ serialize(serializer: Serializer): void;
2520
2585
  /**
2521
2586
  * Converts a Groth16VerificationKeyResponse object into a Groth16VerificationKey instance.
2522
2587
  *
@@ -2544,6 +2609,53 @@ declare function getKeylessConfig(args: {
2544
2609
  aptosConfig: AptosConfig;
2545
2610
  options?: LedgerVersionArg;
2546
2611
  }): Promise<KeylessConfiguration>;
2612
+ /**
2613
+ * Parses a JWT and returns the 'iss', 'aud', and 'uid' values.
2614
+ *
2615
+ * @param args - The arguments for parsing the JWT.
2616
+ * @param args.jwt - The JWT to parse.
2617
+ * @param args.uidKey - The key to use for the 'uid' value; defaults to 'sub'.
2618
+ * @returns The 'iss', 'aud', and 'uid' values from the JWT.
2619
+ */
2620
+ declare function getIssAudAndUidVal(args: {
2621
+ jwt: string;
2622
+ uidKey?: string;
2623
+ }): {
2624
+ iss: string;
2625
+ aud: string;
2626
+ uidVal: string;
2627
+ };
2628
+ declare function getKeylessJWKs(args: {
2629
+ aptosConfig: AptosConfig;
2630
+ jwkAddr?: AccountAddressInput;
2631
+ options?: LedgerVersionArg;
2632
+ }): Promise<Map<string, MoveJWK[]>>;
2633
+ declare class MoveJWK extends Serializable {
2634
+ kid: string;
2635
+ kty: string;
2636
+ alg: string;
2637
+ e: string;
2638
+ n: string;
2639
+ constructor(args: {
2640
+ kid: string;
2641
+ kty: string;
2642
+ alg: string;
2643
+ e: string;
2644
+ n: string;
2645
+ });
2646
+ serialize(serializer: Serializer): void;
2647
+ static fromMoveStruct(struct: MoveAnyStruct): MoveJWK;
2648
+ static deserialize(deserializer: Deserializer): MoveJWK;
2649
+ }
2650
+ interface JwtHeader {
2651
+ kid: string;
2652
+ }
2653
+ /**
2654
+ * Safely parses the JWT header.
2655
+ * @param jwtHeader The JWT header string
2656
+ * @returns Parsed JWT header as an object.
2657
+ */
2658
+ declare function parseJwtHeader(jwtHeader: string): JwtHeader;
2547
2659
 
2548
2660
  /**
2549
2661
  * Represents the FederatedKeylessPublicKey public key
@@ -2661,7 +2773,6 @@ declare function poseidonHash(inputs: (number | bigint | string)[]): bigint;
2661
2773
  * Represents a Secp256k1 ECDSA public key.
2662
2774
  *
2663
2775
  * @extends PublicKey
2664
- * @static
2665
2776
  * @property LENGTH - The length of the Secp256k1 public key in bytes.
2666
2777
  */
2667
2778
  declare class Secp256k1PublicKey extends PublicKey {
@@ -2739,9 +2850,12 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2739
2850
  /**
2740
2851
  * Create a new PrivateKey instance from a Uint8Array or String.
2741
2852
  *
2853
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
2854
+ *
2742
2855
  * @param hexInput A HexInput (string or Uint8Array)
2856
+ * @param strict If true, private key must AIP-80 compliant.
2743
2857
  */
2744
- constructor(hexInput: HexInput);
2858
+ constructor(hexInput: HexInput, strict?: boolean);
2745
2859
  /**
2746
2860
  * Generate a new random private key.
2747
2861
  *
@@ -2795,6 +2909,20 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2795
2909
  * @returns string representation of the private key
2796
2910
  */
2797
2911
  toString(): string;
2912
+ /**
2913
+ * Get the private key as a hex string with the 0x prefix.
2914
+ *
2915
+ * @returns string representation of the private key.
2916
+ */
2917
+ toHexString(): string;
2918
+ /**
2919
+ * Get the private key as a AIP-80 compliant hex string.
2920
+ *
2921
+ * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
2922
+ *
2923
+ * @returns AIP-80 compliant string representation of the private key.
2924
+ */
2925
+ toAIP80String(): string;
2798
2926
  serialize(serializer: Serializer): void;
2799
2927
  static deserialize(deserializer: Deserializer): Secp256k1PrivateKey;
2800
2928
  /**
@@ -2809,13 +2937,11 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
2809
2937
  /**
2810
2938
  * Represents a signature of a message signed using a Secp256k1 ECDSA private key.
2811
2939
  *
2812
- * @static
2813
- * @readonly
2814
- * @length The length of Secp256k1 ECDSA signatures, which is 64 bytes.
2815
2940
  */
2816
2941
  declare class Secp256k1Signature extends Signature {
2817
2942
  /**
2818
- * Secp256k1 ecdsa signatures are 256-bit.
2943
+ * Secp256k1 ecdsa signatures are 256-bit or 64 bytes
2944
+ * @readonly
2819
2945
  */
2820
2946
  static readonly LENGTH = 64;
2821
2947
  /**
@@ -3834,6 +3960,11 @@ declare abstract class TransactionAuthenticator extends Serializable {
3834
3960
  * @param deserializer - The deserializer instance used to read the serialized data.
3835
3961
  */
3836
3962
  static deserialize(deserializer: Deserializer): TransactionAuthenticator;
3963
+ isEd25519(): this is TransactionAuthenticatorEd25519;
3964
+ isMultiEd25519(): this is TransactionAuthenticatorMultiEd25519;
3965
+ isMultiAgent(): this is TransactionAuthenticatorMultiAgent;
3966
+ isFeePayer(): this is TransactionAuthenticatorFeePayer;
3967
+ isSingleSender(): this is TransactionAuthenticatorSingleSender;
3837
3968
  }
3838
3969
  /**
3839
3970
  * Represents a transaction authenticator using Ed25519 for a single signer transaction.
@@ -4904,11 +5035,18 @@ declare class EphemeralKeyPair extends Serializable {
4904
5035
  sign(data: HexInput): EphemeralSignature;
4905
5036
  }
4906
5037
 
5038
+ /**
5039
+ * An interface which defines if an Account utilizes Keyless signing.
5040
+ */
5041
+ interface KeylessSigner extends Account$1 {
5042
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5043
+ }
5044
+ declare function isKeylessSigner(obj: any): obj is KeylessSigner;
4907
5045
  /**
4908
5046
  * Account implementation for the Keyless authentication scheme. This abstract class is used for standard Keyless Accounts
4909
5047
  * and Federated Keyless Accounts.
4910
5048
  */
4911
- declare abstract class AbstractKeylessAccount extends Serializable implements Account$1 {
5049
+ declare abstract class AbstractKeylessAccount extends Serializable implements KeylessSigner {
4912
5050
  static readonly PEPPER_LENGTH: number;
4913
5051
  /**
4914
5052
  * The KeylessPublicKey associated with the account
@@ -4956,10 +5094,34 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
4956
5094
  * The JWT token used to derive the account
4957
5095
  */
4958
5096
  readonly jwt: string;
5097
+ /**
5098
+ * The hash of the verification key used to verify the proof. This is optional and can be used to check verifying key
5099
+ * rotations which may invalidate the proof.
5100
+ */
5101
+ readonly verificationKeyHash?: Uint8Array;
4959
5102
  /**
4960
5103
  * An event emitter used to assist in handling asynchronous proof fetching.
4961
5104
  */
4962
5105
  private readonly emitter;
5106
+ /**
5107
+ * Use the static generator `create(...)` instead.
5108
+ * Creates an instance of the KeylessAccount with an optional proof.
5109
+ *
5110
+ * @param args - The parameters for creating a KeylessAccount.
5111
+ * @param args.address - Optional account address associated with the KeylessAccount.
5112
+ * @param args.publicKey - A KeylessPublicKey or FederatedKeylessPublicKey.
5113
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5114
+ * @param args.iss - A JWT issuer.
5115
+ * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
5116
+ * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
5117
+ * @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
5118
+ * OIDC registration with the identity provider.
5119
+ * @param args.pepper - A hexadecimal input used for additional security.
5120
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5121
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5122
+ * @param args.jwt - A JSON Web Token used for authentication.
5123
+ * @param args.verificationKeyHash Optional 32-byte verification key hash as hex input used to check proof validity.
5124
+ */
4963
5125
  protected constructor(args: {
4964
5126
  address?: AccountAddress;
4965
5127
  publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
@@ -4972,13 +5134,29 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
4972
5134
  proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
4973
5135
  proofFetchCallback?: ProofFetchCallback;
4974
5136
  jwt: string;
5137
+ verificationKeyHash?: HexInput;
4975
5138
  });
4976
5139
  /**
4977
- * This initializes the asynchronous proof fetch
4978
- * @return
5140
+ * This initializes the asynchronous proof fetch.
5141
+ * @return Emits whether the proof succeeds or fails, but has no return.
4979
5142
  */
4980
5143
  init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
5144
+ /**
5145
+ * Serializes the jwt data into a format suitable for transmission or storage.
5146
+ * This function ensures that both the jwt data and the proof are properly serialized.
5147
+ *
5148
+ * @param serializer - The serializer instance used to convert the jwt data into bytes.
5149
+ */
4981
5150
  serialize(serializer: Serializer): void;
5151
+ static partialDeserialize(deserializer: Deserializer): {
5152
+ address: AccountAddress;
5153
+ jwt: string;
5154
+ uidKey: string;
5155
+ pepper: Uint8Array;
5156
+ ephemeralKeyPair: EphemeralKeyPair;
5157
+ proof: ZeroKnowledgeSig;
5158
+ verificationKeyHash?: Uint8Array;
5159
+ };
4982
5160
  /**
4983
5161
  * Checks if the proof is expired. If so the account must be re-derived with a new EphemeralKeyPair
4984
5162
  * and JWT token.
@@ -5002,6 +5180,11 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
5002
5180
  * @return
5003
5181
  */
5004
5182
  waitForProofFetch(): Promise<void>;
5183
+ /**
5184
+ * Validates that the Keyless Account can be used to sign transactions.
5185
+ * @return
5186
+ */
5187
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5005
5188
  /**
5006
5189
  * Sign the given message using Keyless.
5007
5190
  * @param message in HexInput format
@@ -5030,6 +5213,19 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
5030
5213
  message: HexInput;
5031
5214
  signature: KeylessSignature;
5032
5215
  }): boolean;
5216
+ /**
5217
+ * Fetches the JWK from the issuer's well-known JWKS endpoint.
5218
+ *
5219
+ * @param args.publicKey The keyless public key to query
5220
+ * @param args.kid The kid of the JWK to fetch
5221
+ * @returns A JWK matching the `kid` in the JWT header.
5222
+ * @throws {KeylessError} If the JWK cannot be fetched
5223
+ */
5224
+ static fetchJWK(args: {
5225
+ aptosConfig: AptosConfig;
5226
+ publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
5227
+ kid: string;
5228
+ }): Promise<MoveJWK>;
5033
5229
  }
5034
5230
  /**
5035
5231
  * A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create
@@ -5049,6 +5245,12 @@ declare class TransactionAndProof extends Serializable {
5049
5245
  */
5050
5246
  readonly domainSeparator = "APTOS::TransactionAndProof";
5051
5247
  constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
5248
+ /**
5249
+ * Serializes the transaction data into a format suitable for transmission or storage.
5250
+ * This function ensures that both the transaction bytes and the proof are properly serialized.
5251
+ *
5252
+ * @param serializer - The serializer instance used to convert the transaction data into bytes.
5253
+ */
5052
5254
  serialize(serializer: Serializer): void;
5053
5255
  /**
5054
5256
  * Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.
@@ -5079,9 +5281,6 @@ interface ProofFetchEvents {
5079
5281
  *
5080
5282
  * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
5081
5283
  * EphemeralKeyPair, and corresponding proof.
5082
- *
5083
- * @static
5084
- * @readonly PEPPER_LENGTH - The length of the pepper used for privacy preservation.
5085
5284
  */
5086
5285
  declare class KeylessAccount extends AbstractKeylessAccount {
5087
5286
  /**
@@ -5089,9 +5288,21 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5089
5288
  */
5090
5289
  readonly publicKey: KeylessPublicKey;
5091
5290
  /**
5092
- * Creates an instance of the transaction with an optional proof.
5291
+ * Use the static generator `create(...)` instead.
5292
+ * Creates an instance of the KeylessAccount with an optional proof.
5093
5293
  *
5094
- * @param args.proof - An optional ZkProof associated with the transaction.
5294
+ * @param args - The parameters for creating a KeylessAccount.
5295
+ * @param args.address - Optional account address associated with the KeylessAccount.
5296
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5297
+ * @param args.iss - A JWT issuer.
5298
+ * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
5299
+ * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
5300
+ * @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
5301
+ * OIDC registration with the identity provider.
5302
+ * @param args.pepper - A hexadecimal input used for additional security.
5303
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5304
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5305
+ * @param args.jwt - A JSON Web Token used for authentication.
5095
5306
  */
5096
5307
  private constructor();
5097
5308
  /**
@@ -5109,10 +5320,17 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5109
5320
  * @returns A KeylessAccount instance created from the deserialized data.
5110
5321
  */
5111
5322
  static deserialize(deserializer: Deserializer): KeylessAccount;
5112
- static fromBytes(bytes: Uint8Array): KeylessAccount;
5323
+ /**
5324
+ * Deserialize bytes using this account's information.
5325
+ *
5326
+ * @param bytes The bytes being interpreted.
5327
+ * @returns
5328
+ */
5329
+ static fromBytes(bytes: HexInput): KeylessAccount;
5113
5330
  /**
5114
5331
  * Creates a KeylessAccount instance using the provided parameters.
5115
5332
  * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5333
+ * This is used instead of the KeylessAccount constructor.
5116
5334
  *
5117
5335
  * @param args - The parameters for creating a KeylessAccount.
5118
5336
  * @param args.address - Optional account address associated with the KeylessAccount.
@@ -5131,6 +5349,7 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5131
5349
  pepper: HexInput;
5132
5350
  uidKey?: string;
5133
5351
  proofFetchCallback?: ProofFetchCallback;
5352
+ verificationKey?: Groth16VerificationKey;
5134
5353
  }): KeylessAccount;
5135
5354
  }
5136
5355
 
@@ -5139,8 +5358,8 @@ declare class KeylessAccount extends AbstractKeylessAccount {
5139
5358
  *
5140
5359
  * Used to represent a FederatedKeyless based account and sign transactions with it.
5141
5360
  *
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.
5361
+ * Use `FederatedKeylessAccount.create()` to instantiate a KeylessAccount with a JSON Web Token (JWT), proof, EphemeralKeyPair and the
5362
+ * address the JSON Web Key Set (JWKS) are installed that will be used to verify the JWT.
5144
5363
  *
5145
5364
  * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
5146
5365
  * EphemeralKeyPair, and corresponding proof.
@@ -5150,10 +5369,57 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
5150
5369
  * The FederatedKeylessPublicKey associated with the account
5151
5370
  */
5152
5371
  readonly publicKey: FederatedKeylessPublicKey;
5372
+ /**
5373
+ * Use the static generator `FederatedKeylessAccount.create(...)` instead.
5374
+ * Creates a KeylessAccount instance using the provided parameters.
5375
+ * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5376
+ *
5377
+ * @param args - The parameters for creating a KeylessAccount.
5378
+ * @param args.address - Optional account address associated with the KeylessAccount.
5379
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5380
+ * @param args.jwt - A JSON Web Token used for authentication.
5381
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5382
+ * @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
5383
+ * @param args.uidKey - Optional key for user identification, defaults to "sub".
5384
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5385
+ */
5153
5386
  private constructor();
5387
+ /**
5388
+ * Serializes the transaction data into a format suitable for transmission or storage.
5389
+ * This function ensures that both the transaction bytes and the proof are properly serialized.
5390
+ *
5391
+ * @param serializer - The serializer instance used to convert the transaction data into bytes.
5392
+ */
5154
5393
  serialize(serializer: Serializer): void;
5394
+ /**
5395
+ * Deserializes the provided deserializer to create a KeylessAccount instance.
5396
+ * This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.
5397
+ *
5398
+ * @param deserializer - The deserializer instance used to retrieve the serialized data.
5399
+ * @returns A KeylessAccount instance created from the deserialized data.
5400
+ */
5155
5401
  static deserialize(deserializer: Deserializer): FederatedKeylessAccount;
5156
- static fromBytes(bytes: Uint8Array): FederatedKeylessAccount;
5402
+ /**
5403
+ * Deserialize bytes using this account's information.
5404
+ *
5405
+ * @param bytes The bytes being interpreted.
5406
+ * @returns
5407
+ */
5408
+ static fromBytes(bytes: HexInput): FederatedKeylessAccount;
5409
+ /**
5410
+ * Creates a KeylessAccount instance using the provided parameters.
5411
+ * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
5412
+ * This is used instead of the KeylessAccount constructor.
5413
+ *
5414
+ * @param args - The parameters for creating a KeylessAccount.
5415
+ * @param args.address - Optional account address associated with the KeylessAccount.
5416
+ * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
5417
+ * @param args.jwt - A JSON Web Token used for authentication.
5418
+ * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
5419
+ * @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
5420
+ * @param args.uidKey - Optional key for user identification, defaults to "sub".
5421
+ * @param args.proofFetchCallback - Optional callback function for fetching proof.
5422
+ */
5157
5423
  static create(args: {
5158
5424
  address?: AccountAddress;
5159
5425
  proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
@@ -5163,6 +5429,7 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
5163
5429
  jwkAddress: AccountAddressInput;
5164
5430
  uidKey?: string;
5165
5431
  proofFetchCallback?: ProofFetchCallback;
5432
+ verificationKey?: Groth16VerificationKey;
5166
5433
  }): FederatedKeylessAccount;
5167
5434
  }
5168
5435
 
@@ -5184,7 +5451,7 @@ interface VerifyMultiKeySignatureArgs {
5184
5451
  *
5185
5452
  * Note: Generating a signer instance does not create the account on-chain.
5186
5453
  */
5187
- declare class MultiKeyAccount implements Account$1 {
5454
+ declare class MultiKeyAccount implements Account$1, KeylessSigner {
5188
5455
  /**
5189
5456
  * Public key associated with the account
5190
5457
  */
@@ -5264,9 +5531,14 @@ declare class MultiKeyAccount implements Account$1 {
5264
5531
  */
5265
5532
  waitForProofFetch(): Promise<void>;
5266
5533
  /**
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.
5534
+ * Validates that the Keyless Account can be used to sign transactions.
5535
+ * @return
5536
+ */
5537
+ checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
5538
+ /**
5539
+ * Sign the given message using the MultiKeyAccount's signers
5540
+ * @param message in HexInput format
5541
+ * @returns MultiKeySignature
5270
5542
  */
5271
5543
  sign(data: HexInput): MultiKeySignature;
5272
5544
  /**
@@ -10661,7 +10933,7 @@ declare class Keyless {
10661
10933
  /**
10662
10934
  * This installs a set of FederatedJWKs at an address for a given iss.
10663
10935
  *
10664
- * It will fetch the JWK set from the well-known endpoint and update the FederatedJWKs at the sender's address
10936
+ * It will fetch the JSON Web Keyset (JWK) set from the well-known endpoint and update the FederatedJWKs at the sender's address
10665
10937
  * to reflect it.
10666
10938
  *
10667
10939
  * @param args.sender The account that will install the JWKs
@@ -10810,64 +11082,6 @@ declare class Aptos {
10810
11082
  interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, AptosObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
10811
11083
  }
10812
11084
 
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
11085
  type DeserializableClass<T extends Serializable> = {
10872
11086
  /**
10873
11087
  * Deserializes a serialized object using the provided deserializer.
@@ -10893,6 +11107,13 @@ declare function normalizeBundle<T extends Serializable>(cls: DeserializableClas
10893
11107
  * @param timeMs - The time in milliseconds to sleep.
10894
11108
  */
10895
11109
  declare function sleep(timeMs: number): Promise<null>;
11110
+ /**
11111
+ * Get the error message from an unknown error.
11112
+ *
11113
+ * @param error The error to get the message from
11114
+ * @returns The error message
11115
+ */
11116
+ declare function getErrorMessage(error: unknown): string;
10896
11117
  declare const nowInSeconds: () => number;
10897
11118
  /**
10898
11119
  * Floors the given timestamp to the nearest whole hour.
@@ -11192,4 +11413,118 @@ declare function postAptosPepperService<Req extends {}, Res extends {}>(options:
11192
11413
  */
11193
11414
  declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
11194
11415
 
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 };
11416
+ declare enum KeylessErrorCategory {
11417
+ API_ERROR = 0,
11418
+ EXTERNAL_API_ERROR = 1,
11419
+ SESSION_EXPIRED = 2,
11420
+ INVALID_STATE = 3,
11421
+ UNKNOWN = 4
11422
+ }
11423
+ declare enum KeylessErrorResolutionTip {
11424
+ REAUTHENTICATE = "Re-authentiate to continue using your keyless account",
11425
+ REAUTHENTICATE_UNSURE = "Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support",
11426
+ UPDATE_REQUEST_PARAMS = "Update the invalid request parameters and reauthenticate.",
11427
+ 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.",
11428
+ SERVER_ERROR = "Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
11429
+ CALL_PRECHECK = "Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing.",
11430
+ REINSTANTIATE = "Try instantiating the account again. Avoid manipulating the account object directly",
11431
+ JOIN_SUPPORT_GROUP = "For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
11432
+ UNKNOWN = "Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"
11433
+ }
11434
+ declare enum KeylessErrorType {
11435
+ EPHEMERAL_KEY_PAIR_EXPIRED = 0,
11436
+ PROOF_NOT_FOUND = 1,
11437
+ ASYNC_PROOF_FETCH_FAILED = 2,
11438
+ INVALID_PROOF_VERIFICATION_FAILED = 3,
11439
+ INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND = 4,
11440
+ INVALID_JWT_SIG = 5,
11441
+ INVALID_JWT_JWK_NOT_FOUND = 6,
11442
+ INVALID_JWT_ISS_NOT_RECOGNIZED = 7,
11443
+ INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED = 8,
11444
+ INVALID_TW_SIG_VERIFICATION_FAILED = 9,
11445
+ INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND = 10,
11446
+ INVALID_EXPIRY_HORIZON = 11,
11447
+ JWT_PARSING_ERROR = 12,
11448
+ JWK_FETCH_FAILED = 13,
11449
+ JWK_FETCH_FAILED_FEDERATED = 14,
11450
+ RATE_LIMIT_EXCEEDED = 15,
11451
+ PEPPER_SERVICE_INTERNAL_ERROR = 16,
11452
+ PEPPER_SERVICE_BAD_REQUEST = 17,
11453
+ PEPPER_SERVICE_OTHER = 18,
11454
+ PROVER_SERVICE_INTERNAL_ERROR = 19,
11455
+ PROVER_SERVICE_BAD_REQUEST = 20,
11456
+ PROVER_SERVICE_OTHER = 21,
11457
+ FULL_NODE_CONFIG_LOOKUP_ERROR = 22,
11458
+ FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR = 23,
11459
+ FULL_NODE_JWKS_LOOKUP_ERROR = 24,
11460
+ FULL_NODE_OTHER = 25,
11461
+ UNKNOWN = 26
11462
+ }
11463
+ declare class KeylessError extends Error {
11464
+ readonly innerError?: unknown;
11465
+ readonly category: KeylessErrorCategory;
11466
+ readonly resolutionTip: KeylessErrorResolutionTip;
11467
+ readonly type: KeylessErrorType;
11468
+ readonly details?: string;
11469
+ /** @internal this constructor is for sdk internal use - do not instantiate outside of the SDK codebase */
11470
+ constructor(args: {
11471
+ innerError?: unknown;
11472
+ category: KeylessErrorCategory;
11473
+ resolutionTip: KeylessErrorResolutionTip;
11474
+ type: KeylessErrorType;
11475
+ message?: string;
11476
+ details?: string;
11477
+ });
11478
+ static constructMessage(message: string, tip: KeylessErrorResolutionTip, innerError?: unknown, details?: string): string;
11479
+ /**
11480
+ * Static constructor that creates a KeylessError instance using the KeylessErrors constant
11481
+ * @param args.type The type of KeylessError
11482
+ * @param args.aptosApiError optional AptosApiError supplied for api errors
11483
+ * @param args.details optional details to include in the error message
11484
+ * @returns A new KeylessError instance
11485
+ */
11486
+ static fromErrorType(args: {
11487
+ type: KeylessErrorType;
11488
+ error?: unknown;
11489
+ details?: string;
11490
+ }): KeylessError;
11491
+ }
11492
+ /**
11493
+ * Options for handling errors in the Aptos API.
11494
+ */
11495
+ type AptosApiErrorOpts = {
11496
+ apiType: AptosApiType;
11497
+ aptosRequest: AptosRequest;
11498
+ aptosResponse: AptosResponse<any, any>;
11499
+ };
11500
+ /**
11501
+ * Represents an error returned from the Aptos API.
11502
+ * This class encapsulates the details of the error, including the request URL, response status, and additional data.
11503
+ *
11504
+ * @param name - The name of the error, which is always "AptosApiError".
11505
+ * @param url - The URL to which the request was made.
11506
+ * @param status - The HTTP response status code (e.g., 400).
11507
+ * @param statusText - The message associated with the response status.
11508
+ * @param data - The response data returned from the API.
11509
+ * @param request - The original AptosRequest that triggered the error.
11510
+ */
11511
+ declare class AptosApiError extends Error {
11512
+ readonly url: string;
11513
+ readonly status: number;
11514
+ readonly statusText: string;
11515
+ readonly data: any;
11516
+ readonly request: AptosRequest;
11517
+ /**
11518
+ * Constructs an instance of AptosApiError with relevant error details.
11519
+ *
11520
+ * @param opts - The options for creating the AptosApiError.
11521
+ * @param opts.apiType - The type of API that generated the error.
11522
+ * @param opts.aptosRequest - The request object that caused the error.
11523
+ * @param opts.aptosResponse - The response object containing error details.
11524
+ *
11525
+ * @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
11526
+ */
11527
+ constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
11528
+ }
11529
+
11530
+ 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, 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, FIREBASE_AUTH_ISS_PATTERN, 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 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, 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, 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 };