@aptos-labs/ts-sdk 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/dist/common/chunk-KSEUZTKY.js +2 -0
  2. package/dist/common/chunk-KSEUZTKY.js.map +1 -0
  3. package/dist/common/cli/index.d.ts +37 -0
  4. package/dist/common/cli/index.js +2 -0
  5. package/dist/common/cli/index.js.map +1 -0
  6. package/dist/common/index.d.ts +384 -111
  7. package/dist/common/index.js +24 -24
  8. package/dist/common/index.js.map +1 -1
  9. package/dist/esm/{Ed25519Account-DHqzsb8B.d.mts → Ed25519Account--qjfup2u.d.mts} +1 -1
  10. package/dist/esm/api/account.d.mts +51 -10
  11. package/dist/esm/api/account.mjs +1 -1
  12. package/dist/esm/api/ans.d.mts +10 -18
  13. package/dist/esm/api/ans.mjs +1 -1
  14. package/dist/esm/api/aptos.d.mts +6 -2
  15. package/dist/esm/api/aptos.mjs +1 -1
  16. package/dist/esm/api/aptosConfig.d.mts +4 -0
  17. package/dist/esm/api/aptosConfig.mjs +1 -1
  18. package/dist/esm/api/coin.d.mts +8 -1
  19. package/dist/esm/api/coin.mjs +1 -1
  20. package/dist/esm/api/digitalAsset.d.mts +144 -5
  21. package/dist/esm/api/digitalAsset.mjs +1 -1
  22. package/dist/esm/api/event.d.mts +14 -9
  23. package/dist/esm/api/event.mjs +1 -1
  24. package/dist/esm/api/faucet.d.mts +3 -0
  25. package/dist/esm/api/faucet.mjs +1 -1
  26. package/dist/esm/api/fungibleAsset.d.mts +30 -7
  27. package/dist/esm/api/fungibleAsset.mjs +1 -1
  28. package/dist/esm/api/general.d.mts +51 -28
  29. package/dist/esm/api/general.mjs +1 -1
  30. package/dist/esm/api/index.d.mts +2 -2
  31. package/dist/esm/api/index.mjs +1 -1
  32. package/dist/esm/api/staking.d.mts +11 -2
  33. package/dist/esm/api/staking.mjs +1 -1
  34. package/dist/esm/api/transaction.d.mts +60 -17
  35. package/dist/esm/api/transaction.mjs +1 -1
  36. package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
  37. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  38. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  39. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  40. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
  41. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  42. package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
  43. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  44. package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
  45. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  46. package/dist/esm/api/utils.mjs +1 -1
  47. package/dist/esm/bcs/index.mjs +1 -1
  48. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  49. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  50. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  51. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  52. package/dist/esm/bcs/serializer.mjs +1 -1
  53. package/dist/esm/{chunk-T4C6BVXK.mjs → chunk-2M6OT6DU.mjs} +2 -2
  54. package/dist/esm/chunk-2M6OT6DU.mjs.map +1 -0
  55. package/dist/esm/chunk-3CLYWZYZ.mjs +2 -0
  56. package/dist/esm/{chunk-A7XZTJ3D.mjs → chunk-3F6EYD5O.mjs} +2 -2
  57. package/dist/esm/{chunk-36QXVFR5.mjs → chunk-52C73T26.mjs} +2 -2
  58. package/dist/esm/{chunk-GJDGR3KQ.mjs → chunk-54BANKLA.mjs} +2 -2
  59. package/dist/esm/{chunk-CQS6ZCJ7.mjs → chunk-5AQEETAC.mjs} +1 -1
  60. package/dist/esm/chunk-5AQEETAC.mjs.map +1 -0
  61. package/dist/esm/{chunk-3RQ5V3F3.mjs → chunk-63AIRYJX.mjs} +2 -2
  62. package/dist/esm/{chunk-HJYT6LDB.mjs → chunk-647IOEXV.mjs} +2 -2
  63. package/dist/esm/{chunk-M4SQNMCW.mjs → chunk-6CBPMYW5.mjs} +2 -2
  64. package/dist/esm/chunk-6CBPMYW5.mjs.map +1 -0
  65. package/dist/esm/{chunk-GHYE26Q5.mjs → chunk-6FBKUTGF.mjs} +2 -2
  66. package/dist/esm/chunk-7CAEMK4R.mjs +2 -0
  67. package/dist/esm/chunk-7CAEMK4R.mjs.map +1 -0
  68. package/dist/esm/{chunk-AIPKOP3K.mjs → chunk-7PYFGGHM.mjs} +2 -2
  69. package/dist/esm/chunk-7PYFGGHM.mjs.map +1 -0
  70. package/dist/esm/{chunk-5ID6W7XL.mjs → chunk-A7MSW6OL.mjs} +2 -2
  71. package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-AOCNYMMX.mjs} +2 -2
  72. package/dist/esm/{chunk-RIUFW2OG.mjs → chunk-AP7UZTPZ.mjs} +2 -2
  73. package/dist/esm/{chunk-FXHXOVL4.mjs → chunk-BMKDEIRL.mjs} +2 -2
  74. package/dist/esm/chunk-BMKDEIRL.mjs.map +1 -0
  75. package/dist/esm/{chunk-EV75CYGN.mjs → chunk-BSEQPVD6.mjs} +2 -2
  76. package/dist/esm/chunk-BWFJHFBQ.mjs +2 -0
  77. package/dist/esm/{chunk-U3YYSIIT.mjs → chunk-DMKUAQB7.mjs} +2 -2
  78. package/dist/esm/chunk-DSTKXJMA.mjs +2 -0
  79. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  80. package/dist/esm/{chunk-G56GPLTB.mjs → chunk-FS3NSGBF.mjs} +2 -2
  81. package/dist/esm/{chunk-UEKKYJGA.mjs → chunk-G2QII3AT.mjs} +2 -2
  82. package/dist/esm/{chunk-527DYQ3X.mjs → chunk-GMVVQD72.mjs} +2 -2
  83. package/dist/esm/chunk-GMVVQD72.mjs.map +1 -0
  84. package/dist/esm/{chunk-DUP7XY5P.mjs → chunk-GXVUN32G.mjs} +2 -2
  85. package/dist/esm/{chunk-VNIABDOT.mjs → chunk-H4UVHJ3M.mjs} +2 -2
  86. package/dist/esm/{chunk-KXFMI7RM.mjs → chunk-HB6T27S2.mjs} +2 -2
  87. package/dist/esm/{chunk-5NWTYUKC.mjs → chunk-HXN2WRUX.mjs} +2 -2
  88. package/dist/esm/{chunk-SUTBXHYU.mjs → chunk-I7YI22IW.mjs} +2 -2
  89. package/dist/esm/chunk-I7YI22IW.mjs.map +1 -0
  90. package/dist/esm/{chunk-FVMJDRHO.mjs → chunk-IA6XM7QE.mjs} +2 -2
  91. package/dist/esm/chunk-IA6XM7QE.mjs.map +1 -0
  92. package/dist/esm/{chunk-QRS4DGP3.mjs → chunk-IOSQVDZI.mjs} +2 -2
  93. package/dist/esm/{chunk-QRS4DGP3.mjs.map → chunk-IOSQVDZI.mjs.map} +1 -1
  94. package/dist/esm/{chunk-NF5OUPPU.mjs → chunk-IS3OLRMB.mjs} +2 -2
  95. package/dist/esm/chunk-IS3OLRMB.mjs.map +1 -0
  96. package/dist/esm/{chunk-DGLW7OBS.mjs → chunk-KL6VJ3UK.mjs} +2 -2
  97. package/dist/esm/{chunk-QRVYLV76.mjs → chunk-KOAUBVO6.mjs} +2 -2
  98. package/dist/esm/{chunk-25UTAIJG.mjs → chunk-KUOIRTNL.mjs} +2 -2
  99. package/dist/esm/chunk-KVIVMWN5.mjs +2 -0
  100. package/dist/esm/chunk-L4Q2XTHT.mjs +2 -0
  101. package/dist/esm/chunk-MIEV7J74.mjs +2 -0
  102. package/dist/esm/chunk-MIEV7J74.mjs.map +1 -0
  103. package/dist/esm/{chunk-5EN52MUT.mjs → chunk-NPFNYP75.mjs} +2 -2
  104. package/dist/esm/chunk-OKCU4GHN.mjs +2 -0
  105. package/dist/esm/chunk-OKCU4GHN.mjs.map +1 -0
  106. package/dist/esm/{chunk-6O5ZR5ME.mjs → chunk-ONDQ4MK7.mjs} +2 -2
  107. package/dist/esm/{chunk-NJRNZEHX.mjs → chunk-OWW6SIDP.mjs} +1 -1
  108. package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
  109. package/dist/esm/chunk-QIAHBEEW.mjs +2 -0
  110. package/dist/esm/{chunk-SRDIYE3M.mjs.map → chunk-QIAHBEEW.mjs.map} +1 -1
  111. package/dist/esm/{chunk-EJBUUMWV.mjs → chunk-QK4P26SH.mjs} +2 -2
  112. package/dist/esm/{chunk-FPD4JBPV.mjs → chunk-QTSECE7R.mjs} +2 -2
  113. package/dist/esm/chunk-QTSECE7R.mjs.map +1 -0
  114. package/dist/esm/{chunk-FC5MU6ZN.mjs → chunk-QVKMFPAV.mjs} +2 -2
  115. package/dist/esm/{chunk-O3YFCZJ5.mjs → chunk-QW3VNZJ7.mjs} +2 -2
  116. package/dist/esm/chunk-R5QUBEH6.mjs +2 -0
  117. package/dist/esm/{chunk-JOLLCFQL.mjs → chunk-RAYJRFIG.mjs} +2 -2
  118. package/dist/esm/{chunk-JOLLCFQL.mjs.map → chunk-RAYJRFIG.mjs.map} +1 -1
  119. package/dist/esm/{chunk-35EWRSDK.mjs → chunk-RHBCVCOS.mjs} +2 -2
  120. package/dist/esm/{chunk-VLNBGWGX.mjs → chunk-SDUIZ3FY.mjs} +2 -2
  121. package/dist/esm/chunk-SDUIZ3FY.mjs.map +1 -0
  122. package/dist/esm/{chunk-XDXI3TRT.mjs → chunk-TBFLWWV4.mjs} +2 -2
  123. package/dist/esm/chunk-TBMAJ6AW.mjs +2 -0
  124. package/dist/esm/chunk-TGLSJGFO.mjs +2 -0
  125. package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
  126. package/dist/esm/chunk-TLKV4NHK.mjs +2 -0
  127. package/dist/esm/chunk-TLKV4NHK.mjs.map +1 -0
  128. package/dist/esm/{chunk-YG6YYQRG.mjs → chunk-TR2YS7DT.mjs} +2 -2
  129. package/dist/esm/chunk-TR2YS7DT.mjs.map +1 -0
  130. package/dist/esm/{chunk-MJPUASSD.mjs → chunk-U43IJHQN.mjs} +2 -2
  131. package/dist/esm/{chunk-KAGLWBIJ.mjs → chunk-UML2VQZT.mjs} +2 -2
  132. package/dist/esm/{chunk-KQB7A4OX.mjs → chunk-V4YBGBCN.mjs} +2 -2
  133. package/dist/esm/{chunk-B4DWWHNL.mjs → chunk-V6SPPOWX.mjs} +2 -2
  134. package/dist/esm/{chunk-CP4QCRBZ.mjs → chunk-VBTJVPAM.mjs} +2 -2
  135. package/dist/esm/{chunk-3PMUIXFS.mjs → chunk-VM3EJYJU.mjs} +2 -2
  136. package/dist/esm/chunk-VM3EJYJU.mjs.map +1 -0
  137. package/dist/esm/chunk-VX6LTXGB.mjs +2 -0
  138. package/dist/esm/chunk-VX6LTXGB.mjs.map +1 -0
  139. package/dist/esm/chunk-WEZXFWPR.mjs +2 -0
  140. package/dist/esm/{chunk-CXR7MOBW.mjs.map → chunk-WEZXFWPR.mjs.map} +1 -1
  141. package/dist/esm/chunk-WFZDFFBM.mjs +2 -0
  142. package/dist/esm/{chunk-5ZQJLHJA.mjs → chunk-XYLYHSEI.mjs} +2 -2
  143. package/dist/esm/chunk-Y2VA7F5D.mjs +2 -0
  144. package/dist/esm/chunk-Y2VA7F5D.mjs.map +1 -0
  145. package/dist/esm/{chunk-FNLRLSGJ.mjs → chunk-Y5M5DD64.mjs} +2 -2
  146. package/dist/esm/{chunk-CAGDOGXS.mjs → chunk-YWQLLV2R.mjs} +2 -2
  147. package/dist/esm/chunk-ZEXZ4CX5.mjs +2 -0
  148. package/dist/esm/{chunk-3MFILHZT.mjs → chunk-ZKNM27TR.mjs} +2 -2
  149. package/dist/esm/{chunk-QJAI7DNA.mjs → chunk-ZPNCA4C7.mjs} +2 -2
  150. package/dist/esm/chunk-ZYYK3UXP.mjs +2 -0
  151. package/dist/esm/cli/index.mjs +1 -1
  152. package/dist/esm/client/core.mjs +1 -1
  153. package/dist/esm/client/get.mjs +1 -1
  154. package/dist/esm/client/index.mjs +1 -1
  155. package/dist/esm/client/post.mjs +1 -1
  156. package/dist/esm/client/types.mjs +1 -1
  157. package/dist/esm/core/account/Account.d.mts +2 -2
  158. package/dist/esm/core/account/Account.mjs +1 -1
  159. package/dist/esm/core/account/Ed25519Account.d.mts +2 -2
  160. package/dist/esm/core/account/Ed25519Account.mjs +1 -1
  161. package/dist/esm/core/account/SingleKeyAccount.d.mts +2 -2
  162. package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
  163. package/dist/esm/core/account/index.d.mts +2 -2
  164. package/dist/esm/core/account/index.mjs +1 -1
  165. package/dist/esm/core/account/utils/address.mjs +1 -1
  166. package/dist/esm/core/account/utils/index.mjs +1 -1
  167. package/dist/esm/core/accountAddress.mjs +1 -1
  168. package/dist/esm/core/authenticationKey.d.mts +1 -1
  169. package/dist/esm/core/authenticationKey.mjs +1 -1
  170. package/dist/esm/core/common.mjs +1 -1
  171. package/dist/esm/core/crypto/ed25519.d.mts +9 -2
  172. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  173. package/dist/esm/core/crypto/index.d.mts +1 -1
  174. package/dist/esm/core/crypto/index.mjs +1 -1
  175. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  176. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  177. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  178. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  179. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  180. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  181. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  182. package/dist/esm/core/crypto/secp256k1.d.mts +8 -1
  183. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  184. package/dist/esm/core/crypto/signature.mjs +1 -1
  185. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  186. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  187. package/dist/esm/core/crypto/utils.mjs +1 -1
  188. package/dist/esm/core/hex.mjs +1 -1
  189. package/dist/esm/core/index.d.mts +2 -2
  190. package/dist/esm/core/index.mjs +1 -1
  191. package/dist/esm/index.d.mts +2 -4
  192. package/dist/esm/index.mjs +1 -1
  193. package/dist/esm/internal/account.d.mts +3 -3
  194. package/dist/esm/internal/account.mjs +1 -1
  195. package/dist/esm/internal/ans.d.mts +2 -2
  196. package/dist/esm/internal/ans.mjs +1 -1
  197. package/dist/esm/internal/coin.d.mts +1 -1
  198. package/dist/esm/internal/coin.mjs +1 -1
  199. package/dist/esm/internal/digitalAsset.d.mts +3 -3
  200. package/dist/esm/internal/digitalAsset.mjs +1 -1
  201. package/dist/esm/internal/event.d.mts +1 -1
  202. package/dist/esm/internal/event.mjs +1 -1
  203. package/dist/esm/internal/faucet.mjs +1 -1
  204. package/dist/esm/internal/fungibleAsset.d.mts +6 -6
  205. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  206. package/dist/esm/internal/general.mjs +1 -1
  207. package/dist/esm/internal/staking.d.mts +2 -2
  208. package/dist/esm/internal/staking.mjs +1 -1
  209. package/dist/esm/internal/transaction.d.mts +5 -1
  210. package/dist/esm/internal/transaction.mjs +1 -1
  211. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  212. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  213. package/dist/esm/internal/view.d.mts +1 -1
  214. package/dist/esm/internal/view.mjs +1 -1
  215. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  216. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  217. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  218. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  219. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  220. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  221. package/dist/esm/transactions/index.d.mts +2 -2
  222. package/dist/esm/transactions/index.mjs +1 -1
  223. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  224. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  225. package/dist/esm/transactions/instances/index.d.mts +1 -1
  226. package/dist/esm/transactions/instances/index.mjs +1 -1
  227. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  228. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  229. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  230. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  231. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  232. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  233. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  234. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  235. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  236. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  237. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  238. package/dist/esm/transactions/management/index.d.mts +2 -2
  239. package/dist/esm/transactions/management/index.mjs +1 -1
  240. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  241. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  242. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  243. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  244. package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -2
  245. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  246. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  247. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  248. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  249. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  250. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  251. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  252. package/dist/esm/transactions/types.d.mts +1 -1
  253. package/dist/esm/types/index.d.mts +1 -0
  254. package/dist/esm/types/index.mjs +1 -1
  255. package/dist/esm/version.d.mts +1 -1
  256. package/dist/esm/version.mjs +1 -1
  257. package/package.json +7 -6
  258. package/src/api/account.ts +48 -7
  259. package/src/api/ans.ts +8 -16
  260. package/src/api/aptos.ts +4 -0
  261. package/src/api/aptosConfig.ts +4 -0
  262. package/src/api/coin.ts +7 -0
  263. package/src/api/digitalAsset.ts +140 -1
  264. package/src/api/event.ts +13 -8
  265. package/src/api/faucet.ts +3 -0
  266. package/src/api/fungibleAsset.ts +27 -4
  267. package/src/api/general.ts +48 -25
  268. package/src/api/staking.ts +9 -0
  269. package/src/api/transaction.ts +57 -14
  270. package/src/client/core.ts +2 -1
  271. package/src/core/crypto/ed25519.ts +44 -10
  272. package/src/core/crypto/secp256k1.ts +9 -3
  273. package/src/index.ts +0 -1
  274. package/src/internal/account.ts +6 -9
  275. package/src/internal/digitalAsset.ts +1 -1
  276. package/src/internal/fungibleAsset.ts +3 -3
  277. package/src/internal/transaction.ts +48 -10
  278. package/src/types/index.ts +1 -0
  279. package/src/version.ts +1 -1
  280. package/dist/esm/chunk-3PMUIXFS.mjs.map +0 -1
  281. package/dist/esm/chunk-4AVC2RCH.mjs +0 -2
  282. package/dist/esm/chunk-4AVC2RCH.mjs.map +0 -1
  283. package/dist/esm/chunk-4NHWV5AI.mjs +0 -2
  284. package/dist/esm/chunk-527DYQ3X.mjs.map +0 -1
  285. package/dist/esm/chunk-AIPKOP3K.mjs.map +0 -1
  286. package/dist/esm/chunk-ARGODLTZ.mjs +0 -2
  287. package/dist/esm/chunk-ARGODLTZ.mjs.map +0 -1
  288. package/dist/esm/chunk-ASXXZH2D.mjs +0 -2
  289. package/dist/esm/chunk-ASXXZH2D.mjs.map +0 -1
  290. package/dist/esm/chunk-B7X6PSE7.mjs +0 -2
  291. package/dist/esm/chunk-BAYKVJBZ.mjs +0 -2
  292. package/dist/esm/chunk-CEHCDA3G.mjs +0 -2
  293. package/dist/esm/chunk-CQS6ZCJ7.mjs.map +0 -1
  294. package/dist/esm/chunk-CXR7MOBW.mjs +0 -2
  295. package/dist/esm/chunk-F7EMGK4M.mjs +0 -2
  296. package/dist/esm/chunk-FPD4JBPV.mjs.map +0 -1
  297. package/dist/esm/chunk-FVMJDRHO.mjs.map +0 -1
  298. package/dist/esm/chunk-FXHXOVL4.mjs.map +0 -1
  299. package/dist/esm/chunk-IZF6DFAL.mjs +0 -2
  300. package/dist/esm/chunk-LG7RJQ57.mjs +0 -2
  301. package/dist/esm/chunk-M4SQNMCW.mjs.map +0 -1
  302. package/dist/esm/chunk-N3U47Y6Y.mjs +0 -2
  303. package/dist/esm/chunk-NF5OUPPU.mjs.map +0 -1
  304. package/dist/esm/chunk-NJRNZEHX.mjs.map +0 -1
  305. package/dist/esm/chunk-PF57EOJY.mjs +0 -2
  306. package/dist/esm/chunk-SRDIYE3M.mjs +0 -2
  307. package/dist/esm/chunk-SUTBXHYU.mjs.map +0 -1
  308. package/dist/esm/chunk-SWZOGZJ6.mjs +0 -2
  309. package/dist/esm/chunk-SWZOGZJ6.mjs.map +0 -1
  310. package/dist/esm/chunk-SZKJ3TC5.mjs +0 -1
  311. package/dist/esm/chunk-SZKJ3TC5.mjs.map +0 -1
  312. package/dist/esm/chunk-T4C6BVXK.mjs.map +0 -1
  313. package/dist/esm/chunk-UGPALAPN.mjs +0 -2
  314. package/dist/esm/chunk-UQCSBLD5.mjs +0 -2
  315. package/dist/esm/chunk-VBDMQERT.mjs +0 -2
  316. package/dist/esm/chunk-VHANL47W.mjs +0 -2
  317. package/dist/esm/chunk-VHANL47W.mjs.map +0 -1
  318. package/dist/esm/chunk-VLNBGWGX.mjs.map +0 -1
  319. package/dist/esm/chunk-XX5J7KKC.mjs +0 -2
  320. package/dist/esm/chunk-YG6YYQRG.mjs.map +0 -1
  321. package/dist/esm/chunk-YIGDWPGM.mjs +0 -2
  322. package/dist/esm/chunk-YIGDWPGM.mjs.map +0 -1
  323. /package/dist/esm/{chunk-VBDMQERT.mjs.map → chunk-3CLYWZYZ.mjs.map} +0 -0
  324. /package/dist/esm/{chunk-A7XZTJ3D.mjs.map → chunk-3F6EYD5O.mjs.map} +0 -0
  325. /package/dist/esm/{chunk-36QXVFR5.mjs.map → chunk-52C73T26.mjs.map} +0 -0
  326. /package/dist/esm/{chunk-GJDGR3KQ.mjs.map → chunk-54BANKLA.mjs.map} +0 -0
  327. /package/dist/esm/{chunk-3RQ5V3F3.mjs.map → chunk-63AIRYJX.mjs.map} +0 -0
  328. /package/dist/esm/{chunk-HJYT6LDB.mjs.map → chunk-647IOEXV.mjs.map} +0 -0
  329. /package/dist/esm/{chunk-GHYE26Q5.mjs.map → chunk-6FBKUTGF.mjs.map} +0 -0
  330. /package/dist/esm/{chunk-5ID6W7XL.mjs.map → chunk-A7MSW6OL.mjs.map} +0 -0
  331. /package/dist/esm/{chunk-BCUSI3N6.mjs.map → chunk-AOCNYMMX.mjs.map} +0 -0
  332. /package/dist/esm/{chunk-RIUFW2OG.mjs.map → chunk-AP7UZTPZ.mjs.map} +0 -0
  333. /package/dist/esm/{chunk-EV75CYGN.mjs.map → chunk-BSEQPVD6.mjs.map} +0 -0
  334. /package/dist/esm/{chunk-PF57EOJY.mjs.map → chunk-BWFJHFBQ.mjs.map} +0 -0
  335. /package/dist/esm/{chunk-U3YYSIIT.mjs.map → chunk-DMKUAQB7.mjs.map} +0 -0
  336. /package/dist/esm/{chunk-B7X6PSE7.mjs.map → chunk-DSTKXJMA.mjs.map} +0 -0
  337. /package/dist/esm/{chunk-LG7RJQ57.mjs.map → chunk-FBPNHF54.mjs.map} +0 -0
  338. /package/dist/esm/{chunk-G56GPLTB.mjs.map → chunk-FS3NSGBF.mjs.map} +0 -0
  339. /package/dist/esm/{chunk-UEKKYJGA.mjs.map → chunk-G2QII3AT.mjs.map} +0 -0
  340. /package/dist/esm/{chunk-DUP7XY5P.mjs.map → chunk-GXVUN32G.mjs.map} +0 -0
  341. /package/dist/esm/{chunk-VNIABDOT.mjs.map → chunk-H4UVHJ3M.mjs.map} +0 -0
  342. /package/dist/esm/{chunk-KXFMI7RM.mjs.map → chunk-HB6T27S2.mjs.map} +0 -0
  343. /package/dist/esm/{chunk-5NWTYUKC.mjs.map → chunk-HXN2WRUX.mjs.map} +0 -0
  344. /package/dist/esm/{chunk-DGLW7OBS.mjs.map → chunk-KL6VJ3UK.mjs.map} +0 -0
  345. /package/dist/esm/{chunk-QRVYLV76.mjs.map → chunk-KOAUBVO6.mjs.map} +0 -0
  346. /package/dist/esm/{chunk-25UTAIJG.mjs.map → chunk-KUOIRTNL.mjs.map} +0 -0
  347. /package/dist/esm/{chunk-IZF6DFAL.mjs.map → chunk-KVIVMWN5.mjs.map} +0 -0
  348. /package/dist/esm/{chunk-UQCSBLD5.mjs.map → chunk-L4Q2XTHT.mjs.map} +0 -0
  349. /package/dist/esm/{chunk-5EN52MUT.mjs.map → chunk-NPFNYP75.mjs.map} +0 -0
  350. /package/dist/esm/{chunk-6O5ZR5ME.mjs.map → chunk-ONDQ4MK7.mjs.map} +0 -0
  351. /package/dist/esm/{chunk-EJBUUMWV.mjs.map → chunk-QK4P26SH.mjs.map} +0 -0
  352. /package/dist/esm/{chunk-FC5MU6ZN.mjs.map → chunk-QVKMFPAV.mjs.map} +0 -0
  353. /package/dist/esm/{chunk-O3YFCZJ5.mjs.map → chunk-QW3VNZJ7.mjs.map} +0 -0
  354. /package/dist/esm/{chunk-UGPALAPN.mjs.map → chunk-R5QUBEH6.mjs.map} +0 -0
  355. /package/dist/esm/{chunk-35EWRSDK.mjs.map → chunk-RHBCVCOS.mjs.map} +0 -0
  356. /package/dist/esm/{chunk-XDXI3TRT.mjs.map → chunk-TBFLWWV4.mjs.map} +0 -0
  357. /package/dist/esm/{chunk-CEHCDA3G.mjs.map → chunk-TBMAJ6AW.mjs.map} +0 -0
  358. /package/dist/esm/{chunk-BAYKVJBZ.mjs.map → chunk-TGLSJGFO.mjs.map} +0 -0
  359. /package/dist/esm/{chunk-F7EMGK4M.mjs.map → chunk-TJDC5PWD.mjs.map} +0 -0
  360. /package/dist/esm/{chunk-MJPUASSD.mjs.map → chunk-U43IJHQN.mjs.map} +0 -0
  361. /package/dist/esm/{chunk-KAGLWBIJ.mjs.map → chunk-UML2VQZT.mjs.map} +0 -0
  362. /package/dist/esm/{chunk-KQB7A4OX.mjs.map → chunk-V4YBGBCN.mjs.map} +0 -0
  363. /package/dist/esm/{chunk-B4DWWHNL.mjs.map → chunk-V6SPPOWX.mjs.map} +0 -0
  364. /package/dist/esm/{chunk-CP4QCRBZ.mjs.map → chunk-VBTJVPAM.mjs.map} +0 -0
  365. /package/dist/esm/{chunk-4NHWV5AI.mjs.map → chunk-WFZDFFBM.mjs.map} +0 -0
  366. /package/dist/esm/{chunk-5ZQJLHJA.mjs.map → chunk-XYLYHSEI.mjs.map} +0 -0
  367. /package/dist/esm/{chunk-FNLRLSGJ.mjs.map → chunk-Y5M5DD64.mjs.map} +0 -0
  368. /package/dist/esm/{chunk-CAGDOGXS.mjs.map → chunk-YWQLLV2R.mjs.map} +0 -0
  369. /package/dist/esm/{chunk-XX5J7KKC.mjs.map → chunk-ZEXZ4CX5.mjs.map} +0 -0
  370. /package/dist/esm/{chunk-3MFILHZT.mjs.map → chunk-ZKNM27TR.mjs.map} +0 -0
  371. /package/dist/esm/{chunk-QJAI7DNA.mjs.map → chunk-ZPNCA4C7.mjs.map} +0 -0
  372. /package/dist/esm/{chunk-N3U47Y6Y.mjs.map → chunk-ZYYK3UXP.mjs.map} +0 -0
  373. /package/dist/esm/{publicKey-B3XRNhHO.d.mts → publicKey-lq5djCIY.d.mts} +0 -0
@@ -1,5 +1,4 @@
1
1
  import EventEmitter from 'eventemitter3';
2
- import { ChildProcessWithoutNullStreams } from 'child_process';
3
2
 
4
3
  declare const NetworkToIndexerAPI: Record<string, string>;
5
4
  declare const NetworkToNodeAPI: Record<string, string>;
@@ -963,6 +962,7 @@ type ClientHeadersType = {
963
962
  interface ClientRequest<Req> {
964
963
  url: string;
965
964
  method: "GET" | "POST";
965
+ originMethod?: string;
966
966
  body?: Req;
967
967
  contentType?: string;
968
968
  params?: any;
@@ -3021,7 +3021,7 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
3021
3021
  * The Ed25519 signing key
3022
3022
  * @private
3023
3023
  */
3024
- private readonly signingKeyPair;
3024
+ private readonly signingKey;
3025
3025
  /**
3026
3026
  * Create a new PrivateKey instance from a Uint8Array or String.
3027
3027
  *
@@ -3105,6 +3105,13 @@ declare class Ed25519Signature extends Signature {
3105
3105
  toUint8Array(): Uint8Array;
3106
3106
  serialize(serializer: Serializer): void;
3107
3107
  static deserialize(deserializer: Deserializer): Ed25519Signature;
3108
+ /**
3109
+ * Checks if an ED25519 signature is non-canonical.
3110
+ *
3111
+ * Comes from Aptos Core
3112
+ * https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos-crypto/src/ed25519/ed25519_sigs.rs#L47-L85
3113
+ */
3114
+ isCanonicalSignature(): boolean;
3108
3115
  }
3109
3116
 
3110
3117
  type DerivedKeys = {
@@ -3441,6 +3448,11 @@ declare class Secp256k1PublicKey extends PublicKey {
3441
3448
  * @param hexInput A HexInput (string or Uint8Array)
3442
3449
  */
3443
3450
  constructor(hexInput: HexInput);
3451
+ /**
3452
+ * Verifies a Secp256k1 signature against the public key
3453
+ *
3454
+ * Note signatures are validated to be canonical as a malleability check
3455
+ */
3444
3456
  verifySignature(args: VerifySignatureArgs): boolean;
3445
3457
  toUint8Array(): Uint8Array;
3446
3458
  serialize(serializer: Serializer): void;
@@ -3498,6 +3510,8 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
3498
3510
  /**
3499
3511
  * Sign the given message with the private key.
3500
3512
  *
3513
+ * Note: signatures are canonical, and non-malleable
3514
+ *
3501
3515
  * @param message a message as a string or Uint8Array
3502
3516
  * @returns Signature
3503
3517
  */
@@ -3987,6 +4001,10 @@ declare enum ProcessorType {
3987
4001
 
3988
4002
  /**
3989
4003
  * This class holds the config information for the SDK client instance.
4004
+ *
4005
+ * @example
4006
+ *
4007
+ * const aptosConfig = new AptosConfig({network:Network.TESTNET})
3990
4008
  */
3991
4009
  declare class AptosConfig {
3992
4010
  /**
@@ -4089,7 +4107,9 @@ declare class Account {
4089
4107
  *
4090
4108
  * @returns Account module
4091
4109
  *
4092
- * @example An example of an account module
4110
+ * @example
4111
+ * const module = await aptos.getAccountModule({accountAddress:"0x456"})
4112
+ * // An example of an account module response
4093
4113
  * ```
4094
4114
  * {
4095
4115
  * bytecode: "0xa11ceb0b0600000006010002030206050807070f0d081c200",
@@ -4108,6 +4128,9 @@ declare class Account {
4108
4128
  * Note: In order to get all account transactions, this function may call the API
4109
4129
  * multiple times as it auto paginates.
4110
4130
  *
4131
+ * @example
4132
+ * const transactions = await aptos.getAccountTransactions({accountAddress:"0x456"})
4133
+ *
4111
4134
  * @param args.accountAddress Aptos account address
4112
4135
  * @param args.options.offset The number transaction to start returning results from
4113
4136
  * @param args.options.limit The number of results to return
@@ -4124,6 +4147,9 @@ declare class Account {
4124
4147
  * Note: In order to get all account resources, this function may call the API
4125
4148
  * multiple times as it auto paginates.
4126
4149
  *
4150
+ * @example
4151
+ * const resources = await aptos.getAccountResources({accountAddress:"0x456"})
4152
+ *
4127
4153
  * @param args.accountAddress Aptos account address
4128
4154
  * @param args.options.offset The number resource to start returning results from
4129
4155
  * @param args.options.limit The number of results to return
@@ -4145,12 +4171,9 @@ declare class Account {
4145
4171
  *
4146
4172
  * @returns Account resource
4147
4173
  *
4148
- * @example An example of an account resource
4149
- * ```
4150
- * {
4151
- * value: 6
4152
- * }
4153
- * ```
4174
+ * @example
4175
+ * const resource = await aptos.getAccountResource({accountAddress:"0x456"})
4176
+ *
4154
4177
  */
4155
4178
  getAccountResource<T extends {} = any>(args: {
4156
4179
  accountAddress: AccountAddressInput;
@@ -4162,6 +4185,9 @@ declare class Account {
4162
4185
  *
4163
4186
  * This handles both if the account's authentication key has been rotated or not.
4164
4187
  *
4188
+ * @example
4189
+ * const accountAddress = await aptos.lookupOriginalAccountAddress({authenticationKey:account.accountAddress})
4190
+ *
4165
4191
  * @param args.authenticationKey The authentication key
4166
4192
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4167
4193
  * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
@@ -4175,6 +4201,9 @@ declare class Account {
4175
4201
  /**
4176
4202
  * Queries the current count of tokens owned by an account
4177
4203
  *
4204
+ * @example
4205
+ * const tokensCount = await aptos.getAccountTokensCount({accountAddress:"0x456"})
4206
+ *
4178
4207
  * @param args.accountAddress The account address
4179
4208
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4180
4209
  * @returns Current count of tokens owned by the account
@@ -4189,6 +4218,9 @@ declare class Account {
4189
4218
  * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
4190
4219
  * If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
4191
4220
  *
4221
+ * @example
4222
+ * const accountOwnedTokens = await aptos.getAccountOwnedTokens({accountAddress:"0x456"})
4223
+ *
4192
4224
  * @param args.accountAddress The account address we want to get the tokens for
4193
4225
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4194
4226
  * @param args.options.tokenStandard The NFT standard to query for
@@ -4208,6 +4240,9 @@ declare class Account {
4208
4240
  * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
4209
4241
  * If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
4210
4242
  *
4243
+ * @example
4244
+ * const accountOwnedTokens = await aptos.getAccountOwnedTokensFromCollectionAddress({accountAddress:"0x123", collectionAddress:"0x456"})
4245
+ *
4211
4246
  * @param args.accountAddress The account address we want to get the tokens for
4212
4247
  * @param args.collectionAddress The address of the collection being queried
4213
4248
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -4229,6 +4264,9 @@ declare class Account {
4229
4264
  * This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
4230
4265
  * If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
4231
4266
  *
4267
+ * @example
4268
+ * const accountCollectionsWithOwnedTokens = await aptos.getAccountCollectionsWithOwnedTokens({accountAddress:"0x123"})
4269
+ *
4232
4270
  * @param args.accountAddress The account address we want to get the collections for
4233
4271
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4234
4272
  * @param args.options.tokenStandard The NFT standard to query for
@@ -4245,6 +4283,9 @@ declare class Account {
4245
4283
  /**
4246
4284
  * Queries the current count of transactions submitted by an account
4247
4285
  *
4286
+ * @example
4287
+ * const accountTransactionsCount = await aptos.getAccountTransactionsCount({accountAddress:"0x123"})
4288
+ *
4248
4289
  * @param args.accountAddress The account address we want to get the total count for
4249
4290
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4250
4291
  * @returns Current count of transactions made by an account
@@ -4256,6 +4297,9 @@ declare class Account {
4256
4297
  /**
4257
4298
  * Queries an account's coins data
4258
4299
  *
4300
+ * @example
4301
+ * const accountCoinsData = await aptos.getAccountCoinsData({accountAddress:"0x123"})
4302
+ *
4259
4303
  * @param args.accountAddress The account address we want to get the coins data for
4260
4304
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4261
4305
  * @param args.options.offset optional. The number coin to start returning results from
@@ -4272,6 +4316,9 @@ declare class Account {
4272
4316
  /**
4273
4317
  * Queries the current count of an account's coins aggregated
4274
4318
  *
4319
+ * @example
4320
+ * const accountCoinsCount = await aptos.getAccountCoinsCount({accountAddress:"0x123"})
4321
+ *
4275
4322
  * @param args.accountAddress The account address we want to get the total count for
4276
4323
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4277
4324
  * @returns Current count of the aggregated count of all account's coins
@@ -4283,6 +4330,9 @@ declare class Account {
4283
4330
  /**
4284
4331
  * Queries the account's APT amount
4285
4332
  *
4333
+ * @example
4334
+ * const accountAPTAmount = await aptos.getAccountAPTAmount({accountAddress:"0x123"})
4335
+ *
4286
4336
  * @param args.accountAddress The account address we want to get the total count for
4287
4337
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4288
4338
  * @returns Current amount of account's APT
@@ -4294,6 +4344,9 @@ declare class Account {
4294
4344
  /**
4295
4345
  * Queries the account's coin amount by the coin type
4296
4346
  *
4347
+ * @example
4348
+ * const accountCoinAmount = await aptos.getAccountCoinAmount({accountAddress:"0x123", coinType:"0x1::aptos_coin::AptosCoin"})
4349
+ *
4297
4350
  * @param args.accountAddress The account address we want to get the total count for
4298
4351
  * @param args.coinType The coin type to query
4299
4352
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -4307,6 +4360,9 @@ declare class Account {
4307
4360
  /**
4308
4361
  * Queries an account's owned objects
4309
4362
  *
4363
+ * @example
4364
+ * const accountOwnedObjects = await aptos.getAccountOwnedObjects({accountAddress:"0x123"})
4365
+ *
4310
4366
  * @param args.accountAddress The account address we want to get the objects for
4311
4367
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4312
4368
  * @param args.options.offset The starting position to start returning results from
@@ -4330,6 +4386,9 @@ declare class Account {
4330
4386
  * whether it is a Legacy ED25519 key or a Unified ED25519 key. It then derives the account based
4331
4387
  * on that.
4332
4388
  *
4389
+ * @example
4390
+ * const account = await aptos.deriveAccountFromPrivateKey({privateKey:new Ed25519PrivateKey("0x123")})
4391
+ *
4333
4392
  * @param args.privateKey An account private key
4334
4393
  * @returns Account type
4335
4394
  */
@@ -5157,6 +5216,13 @@ declare class Coin {
5157
5216
  /**
5158
5217
  * Generate a transfer coin transaction that can be simulated and/or signed and submitted
5159
5218
  *
5219
+ * @example
5220
+ * const transferCoinTransaction = await aptos.transferCoinTransaction({
5221
+ * sender: "0x123",
5222
+ * recipient:"0x456",
5223
+ * amount: 10,
5224
+ * })
5225
+ *
5160
5226
  * @param args.sender The sender account
5161
5227
  * @param args.recipient The recipient address
5162
5228
  * @param args.amount The amount to transfer
@@ -5221,6 +5287,9 @@ declare class DigitalAsset {
5221
5287
  * If, for some reason, a creator account has 2 collections with the same name in v1 and v2,
5222
5288
  * can pass an optional `tokenStandard` parameter to query a specific standard
5223
5289
  *
5290
+ * @example
5291
+ * const collection = await aptos.getCollectionData({creatorAddress:"0x123",collectionName:"myCollection"})
5292
+ *
5224
5293
  * @param args.creatorAddress the address of the collection's creator
5225
5294
  * @param args.collectionName the name of the collection
5226
5295
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -5236,6 +5305,9 @@ declare class DigitalAsset {
5236
5305
  /**
5237
5306
  * Queries data of a specific collection by the collection ID.
5238
5307
  *
5308
+ * @example
5309
+ * const collection = await aptos.getCollectionDataByCollectionId({collectionId:"0x123"})
5310
+ *
5239
5311
  * @param args.collectionId the ID of the collection, it's the same thing as the address of the collection object
5240
5312
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5241
5313
  * @returns GetCollectionDataResponse response type
@@ -5250,6 +5322,9 @@ declare class DigitalAsset {
5250
5322
  * This is the same as the collection's object address in V2, but V1 does
5251
5323
  * not use objects, and does not have an address
5252
5324
  *
5325
+ * @example
5326
+ * const collection = await aptos.getCollectionId({creatorAddress:"0x123",collectionName:"myCollection"})
5327
+ *
5253
5328
  * @param args.creatorAddress the address of the collection's creator
5254
5329
  * @param args.collectionName the name of the collection
5255
5330
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -5265,6 +5340,9 @@ declare class DigitalAsset {
5265
5340
  /**
5266
5341
  * Gets digital asset data given the address of a digital asset.
5267
5342
  *
5343
+ * @example
5344
+ * const digitalAsset = await aptos.getDigitalAssetData({digitalAssetAddress:"0x123"})
5345
+ *
5268
5346
  * @param args.tokenAddress The address of the digital asset
5269
5347
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5270
5348
  * @returns GetTokenDataResponse containing relevant data to the digital asset.
@@ -5276,6 +5354,9 @@ declare class DigitalAsset {
5276
5354
  /**
5277
5355
  * Gets digital asset ownership data given the address of a digital asset.
5278
5356
  *
5357
+ * @example
5358
+ * const digitalAssetOwner = await aptos.getCurrentDigitalAssetOwnership({digitalAssetAddress:"0x123"})
5359
+ *
5279
5360
  * @param args.tokenAddress The address of the digital asset
5280
5361
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5281
5362
  *
@@ -5288,6 +5369,9 @@ declare class DigitalAsset {
5288
5369
  /**
5289
5370
  * Gets the digital assets that the given address owns.
5290
5371
  *
5372
+ * @example
5373
+ * const digitalAssets = await aptos.getOwnedDigitalAssets({ownerAddress:"0x123"})
5374
+ *
5291
5375
  * @param args.ownerAddress The address of the owner
5292
5376
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5293
5377
  *
@@ -5301,6 +5385,9 @@ declare class DigitalAsset {
5301
5385
  /**
5302
5386
  * Gets the activity data given the address of a digital asset.
5303
5387
  *
5388
+ * @example
5389
+ * const digitalAssetActivity = await aptos.getDigitalAssetActivity({digitalAssetAddress:"0x123"})
5390
+ *
5304
5391
  * @param args.tokenAddress The address of the digital asset
5305
5392
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5306
5393
  *
@@ -5314,6 +5401,14 @@ declare class DigitalAsset {
5314
5401
  /**
5315
5402
  * Creates a new collection within the specified account
5316
5403
  *
5404
+ * @example
5405
+ * const transaction = await aptos.createCollectionTransaction({
5406
+ * creator: alice,
5407
+ * description: "collectionDescription",
5408
+ * name: "collectionName",
5409
+ * uri: "collection-uri.com",
5410
+ * });
5411
+ *
5317
5412
  * @param args.creator the account of the collection's creator
5318
5413
  * @param args.description the description of the collection
5319
5414
  * @param args.name the name of the collection
@@ -5347,6 +5442,15 @@ declare class DigitalAsset {
5347
5442
  /**
5348
5443
  * Create a transaction to mint a digital asset into the creators account within an existing collection.
5349
5444
  *
5445
+ * @example
5446
+ * const transaction = await aptos.mintDigitalAssetTransaction({
5447
+ * creator: alice,
5448
+ * description: "collectionDescription",
5449
+ * collection: "collectionName",
5450
+ * name: "digitalAssetName",
5451
+ * uri: "digital-asset-uri.com",
5452
+ * });
5453
+ *
5350
5454
  * @param args.creator the creator of the collection
5351
5455
  * @param args.collection the name of the collection the digital asset belongs to
5352
5456
  * @param args.description the description of the digital asset
@@ -5372,6 +5476,13 @@ declare class DigitalAsset {
5372
5476
  * We can transfer a digital asset only when the digital asset is not frozen
5373
5477
  * (i.e. owner transfer is not disabled such as for soul bound digital assets)
5374
5478
  *
5479
+ * @example
5480
+ * const transaction = await aptos.transferDigitalAssetTransaction({
5481
+ * sender: alice,
5482
+ * digitalAssetAddress: "0x123",
5483
+ * recipient: "0x456",
5484
+ * });
5485
+ *
5375
5486
  * @param args.sender The sender account of the current digital asset owner
5376
5487
  * @param args.digitalAssetAddress The digital asset address
5377
5488
  * @param args.recipient The recipient account address
@@ -5389,6 +5500,16 @@ declare class DigitalAsset {
5389
5500
  /**
5390
5501
  * Mint a soul bound digital asset into a recipient's account
5391
5502
  *
5503
+ * @example
5504
+ * const transaction = await aptos.mintSoulBoundTransaction({
5505
+ * account: alice,
5506
+ * collection: "collectionName",
5507
+ * description: "collectionDescription",
5508
+ * name: "digitalAssetName",
5509
+ * uri: "digital-asset-uri.com",
5510
+ * recipient: "0x123"
5511
+ * });
5512
+ *
5392
5513
  * @param args.account The account that mints the digital asset
5393
5514
  * @param args.collection The collection name that the digital asset belongs to
5394
5515
  * @param args.description The digital asset description
@@ -5407,7 +5528,7 @@ declare class DigitalAsset {
5407
5528
  description: string;
5408
5529
  name: string;
5409
5530
  uri: string;
5410
- recipient: AccountAddress;
5531
+ recipient: AccountAddressInput;
5411
5532
  propertyKeys?: Array<string>;
5412
5533
  propertyTypes?: Array<PropertyType>;
5413
5534
  propertyValues?: Array<PropertyValue>;
@@ -5416,6 +5537,12 @@ declare class DigitalAsset {
5416
5537
  /**
5417
5538
  * Burn a digital asset by its creator
5418
5539
  *
5540
+ * @example
5541
+ * const transaction = await aptos.burnDigitalAssetTransaction({
5542
+ * creator: alice,
5543
+ * digitalAssetAddress: "0x123",
5544
+ * });
5545
+ *
5419
5546
  * @param args.creator The creator account
5420
5547
  * @param args.digitalAssetAddress The digital asset address
5421
5548
  *
@@ -5430,6 +5557,12 @@ declare class DigitalAsset {
5430
5557
  /**
5431
5558
  * Freeze digital asset transfer ability
5432
5559
  *
5560
+ * @example
5561
+ * const transaction = await aptos.freezeDigitalAssetTransaferTransaction({
5562
+ * creator: alice,
5563
+ * digitalAssetAddress: "0x123",
5564
+ * });
5565
+ *
5433
5566
  * @param args.creator The creator account
5434
5567
  * @param args.digitalAssetAddress The digital asset address
5435
5568
  *
@@ -5444,6 +5577,12 @@ declare class DigitalAsset {
5444
5577
  /**
5445
5578
  * Unfreeze digital asset transfer ability
5446
5579
  *
5580
+ * @example
5581
+ * const transaction = await aptos.unfreezeDigitalAssetTransaferTransaction({
5582
+ * creator: alice,
5583
+ * digitalAssetAddress: "0x123",
5584
+ * });
5585
+ *
5447
5586
  * @param args.creator The creator account
5448
5587
  * @param args.digitalAssetAddress The digital asset address
5449
5588
  *
@@ -5458,6 +5597,13 @@ declare class DigitalAsset {
5458
5597
  /**
5459
5598
  * Set the digital asset description
5460
5599
  *
5600
+ * @example
5601
+ * const transaction = await aptos.setDigitalAssetDescriptionTransaction({
5602
+ * creator: alice,
5603
+ * description: "digitalAssetDescription",
5604
+ * digitalAssetAddress: "0x123",
5605
+ * });
5606
+ *
5461
5607
  * @param args.creator The creator account
5462
5608
  * @param args.description The digital asset description
5463
5609
  * @param args.digitalAssetAddress The digital asset address
@@ -5474,6 +5620,13 @@ declare class DigitalAsset {
5474
5620
  /**
5475
5621
  * Set the digital asset name
5476
5622
  *
5623
+ * @example
5624
+ * const transaction = await aptos.setDigitalAssetNameTransaction({
5625
+ * creator: alice,
5626
+ * name: "digitalAssetName",
5627
+ * digitalAssetAddress: "0x123",
5628
+ * });
5629
+ *
5477
5630
  * @param args.creator The creator account
5478
5631
  * @param args.name The digital asset name
5479
5632
  * @param args.digitalAssetAddress The digital asset address
@@ -5490,6 +5643,13 @@ declare class DigitalAsset {
5490
5643
  /**
5491
5644
  * Set the digital asset name
5492
5645
  *
5646
+ * @example
5647
+ * const transaction = await aptos.setDigitalAssetURITransaction({
5648
+ * creator: alice,
5649
+ * uri: "digital-asset-uri.com",
5650
+ * digitalAssetAddress: "0x123",
5651
+ * });
5652
+ *
5493
5653
  * @param args.creator The creator account
5494
5654
  * @param args.uri The digital asset uri
5495
5655
  * @param args.digitalAssetAddress The digital asset address
@@ -5506,6 +5666,15 @@ declare class DigitalAsset {
5506
5666
  /**
5507
5667
  * Add a digital asset property
5508
5668
  *
5669
+ * @example
5670
+ * const transaction = await aptos.addDigitalAssetPropertyTransaction({
5671
+ * creator: alice,
5672
+ * propertyKey: "newKey",
5673
+ * propertyType: "BOOLEAN",
5674
+ * propertyValue: true,
5675
+ * digitalAssetAddress: "0x123",
5676
+ * });
5677
+ *
5509
5678
  * @param args.account The account that mints the digital asset
5510
5679
  * @param args.digitalAssetAddress The digital asset address
5511
5680
  * @param args.propertyKey The property key for storing on-chain properties
@@ -5526,6 +5695,15 @@ declare class DigitalAsset {
5526
5695
  /**
5527
5696
  * Remove a digital asset property
5528
5697
  *
5698
+ * @example
5699
+ * const transaction = await aptos.removeDigitalAssetPropertyTransaction({
5700
+ * creator: alice,
5701
+ * propertyKey: "newKey",
5702
+ * propertyType: "BOOLEAN",
5703
+ * propertyValue: true,
5704
+ * digitalAssetAddress: "0x123",
5705
+ * });
5706
+ *
5529
5707
  * @param args.account The account that mints the digital asset
5530
5708
  * @param args.digitalAssetAddress The digital asset address
5531
5709
  * @param args.propertyKey The property key for storing on-chain properties
@@ -5546,6 +5724,15 @@ declare class DigitalAsset {
5546
5724
  /**
5547
5725
  * Update a digital asset property
5548
5726
  *
5727
+ * @example
5728
+ * const transaction = await aptos.updateDigitalAssetPropertyTransaction({
5729
+ * creator: alice,
5730
+ * propertyKey: "newKey",
5731
+ * propertyType: "BOOLEAN",
5732
+ * propertyValue: false,
5733
+ * digitalAssetAddress: "0x123",
5734
+ * });
5735
+ *
5549
5736
  * @param args.account The account that mints the digital asset
5550
5737
  * @param args.digitalAssetAddress The digital asset address
5551
5738
  * @param args.propertyKey The property key for storing on-chain properties
@@ -5566,6 +5753,15 @@ declare class DigitalAsset {
5566
5753
  /**
5567
5754
  * Add a typed digital asset property
5568
5755
  *
5756
+ * @example
5757
+ * const transaction = await aptos.addDigitalAssetTypedPropertyTransaction({
5758
+ * creator: alice,
5759
+ * propertyKey: "typedKey",
5760
+ * propertyType: "STRING",
5761
+ * propertyValue: "hello",
5762
+ * digitalAssetAddress: "0x123",
5763
+ * });
5764
+ *
5569
5765
  * @param args.account The account that mints the digital asset
5570
5766
  * @param args.digitalAssetAddress The digital asset address
5571
5767
  * @param args.propertyKey The property key for storing on-chain properties
@@ -5586,6 +5782,15 @@ declare class DigitalAsset {
5586
5782
  /**
5587
5783
  * Update a typed digital asset property
5588
5784
  *
5785
+ * @example
5786
+ * const transaction = await aptos.updateDigitalAssetTypedPropertyTransaction({
5787
+ * creator: alice,
5788
+ * propertyKey: "typedKey",
5789
+ * propertyType: "U8",
5790
+ * propertyValue: 2,
5791
+ * digitalAssetAddress: "0x123",
5792
+ * });
5793
+ *
5589
5794
  * @param args.account The account that mints the digital asset
5590
5795
  * @param args.digitalAssetAddress The digital asset address
5591
5796
  * @param args.propertyKey The property key for storing on-chain properties
@@ -5614,6 +5819,9 @@ declare class Event {
5614
5819
  /**
5615
5820
  * Get module events by event type
5616
5821
  *
5822
+ * @example
5823
+ * const events = await aptos.getModuleEventsByEventType({eventType:"0x1::transaction_fee::FeeStatement"})
5824
+ *
5617
5825
  * @param args.eventType - The event type
5618
5826
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5619
5827
  *
@@ -5627,6 +5835,9 @@ declare class Event {
5627
5835
  /**
5628
5836
  * Get events by creation number and an account address
5629
5837
  *
5838
+ * @example
5839
+ * const events = await aptos.getAccountEventsByCreationNumber({accountAddress:"0x123",creationNumber: 0})
5840
+ *
5630
5841
  * @param args.accountAddress - The account address
5631
5842
  * @param args.creationNumber - The event creation number
5632
5843
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -5641,6 +5852,9 @@ declare class Event {
5641
5852
  /**
5642
5853
  * Get events by event type and an account address
5643
5854
  *
5855
+ * @example
5856
+ * const events = await aptos.getAccountEventsByEventType({accountAddress:"0x123",eventType: "0x1::transaction_fee::FeeStatement"})
5857
+ *
5644
5858
  * @param args.accountAddress - The account address
5645
5859
  * @param args.eventType - The event type
5646
5860
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -5657,15 +5871,11 @@ declare class Event {
5657
5871
  * Get all events
5658
5872
  *
5659
5873
  * An optional `where` can be passed in to filter out the response.
5660
- *@param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5874
+ * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5661
5875
  * @example
5662
- * ```
5663
- * { where:
5664
- * {
5665
- * transaction_version: { _eq: 123456 },
5666
- * }
5667
- * }
5668
- * ```
5876
+ * const events = await aptos.getEvents()
5877
+ * // with filtering
5878
+ * const events = await aptos.getEvents({options: { where: { account_address: { _eq: "0x123" } } }});
5669
5879
  *
5670
5880
  * @returns GetEventsQuery response type
5671
5881
  */
@@ -5685,6 +5895,9 @@ declare class Faucet {
5685
5895
  * This creates an account if it does not exist and mints the specified amount of
5686
5896
  * coins into that account
5687
5897
  *
5898
+ * @example
5899
+ * const transaction = await aptos.fundAccount({accountAddress:"0x123", amount: 100})
5900
+ *
5688
5901
  * @param args.accountAddress Address of the account to fund
5689
5902
  * @param args.amount Amount of tokens to fund the account with
5690
5903
  * @param args.options Configuration options for waitForTransaction
@@ -5913,7 +6126,11 @@ declare class FungibleAsset {
5913
6126
  /**
5914
6127
  * Queries all fungible asset metadata.
5915
6128
  *
6129
+ * @example
6130
+ * const fungibleAsset = await aptos.getFungibleAssetMetadata()
6131
+ *
5916
6132
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
6133
+ * @param args.options Optional configuration for pagination and filtering
5917
6134
  *
5918
6135
  * @returns A list of fungible asset metadata
5919
6136
  */
@@ -5926,6 +6143,9 @@ declare class FungibleAsset {
5926
6143
  *
5927
6144
  * This query returns the fungible asset metadata for a specific fungible asset.
5928
6145
  *
6146
+ * @example
6147
+ * const fungibleAsset = await aptos.getFungibleAssetMetadataByAssetType({assetType:"0x123::test_coin::TestCoin"})
6148
+ *
5929
6149
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
5930
6150
  * @param args.assetType The asset type of the fungible asset.
5931
6151
  * e.g
@@ -5941,7 +6161,11 @@ declare class FungibleAsset {
5941
6161
  /**
5942
6162
  * Queries all fungible asset activities
5943
6163
  *
6164
+ * @example
6165
+ * const fungibleAssetActivities = await aptos.getFungibleAssetActivities()
6166
+ *
5944
6167
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
6168
+ * @param args.options Optional configuration for pagination and filtering
5945
6169
  *
5946
6170
  * @returns A list of fungible asset metadata
5947
6171
  */
@@ -5952,7 +6176,11 @@ declare class FungibleAsset {
5952
6176
  /**
5953
6177
  * Queries all fungible asset balances
5954
6178
  *
6179
+ * @example
6180
+ * const fungibleAssetBalances = await aptos.getCurrentFungibleAssetBalances()
6181
+ *
5955
6182
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
6183
+ * @param args.options Optional configuration for pagination and filtering
5956
6184
  *
5957
6185
  * @returns A list of fungible asset metadata
5958
6186
  */
@@ -5961,10 +6189,18 @@ declare class FungibleAsset {
5961
6189
  options?: PaginationArgs & WhereArg<CurrentFungibleAssetBalancesBoolExp>;
5962
6190
  }): Promise<GetCurrentFungibleAssetBalancesResponse>;
5963
6191
  /**
5964
- * Transfer `amount` of fungible asset from sender's primary store to recipient's primary store.
6192
+ * Transfer `amount` of fungible asset from sender's primary store to recipient's primary store.
5965
6193
  *
5966
6194
  * Use this method to transfer any fungible asset including fungible token.
5967
6195
  *
6196
+ * @example
6197
+ * const transaction = await aptos.transferFungibleAsset({
6198
+ * sender: alice,
6199
+ * fungibleAssetMetadataAddress: "0x123",
6200
+ * recipient: "0x456",
6201
+ * amount: 5
6202
+ * })
6203
+ *
5968
6204
  * @param sender The sender account
5969
6205
  * @param fungibleAssetMetadataAddress The fungible asset account address.
5970
6206
  * For example if you’re transferring USDT this would be the USDT address
@@ -5975,8 +6211,8 @@ declare class FungibleAsset {
5975
6211
  */
5976
6212
  transferFungibleAsset(args: {
5977
6213
  sender: Account$1;
5978
- fungibleAssetMetadataAddress: AccountAddress;
5979
- recipient: AccountAddress;
6214
+ fungibleAssetMetadataAddress: AccountAddressInput;
6215
+ recipient: AccountAddressInput;
5980
6216
  amount: AnyNumber;
5981
6217
  options?: InputGenerateTransactionOptions;
5982
6218
  }): Promise<SimpleTransaction>;
@@ -5993,7 +6229,9 @@ declare class General {
5993
6229
  *
5994
6230
  * @returns Aptos Ledger Info
5995
6231
  *
5996
- * @example An example of the returned data
6232
+ * @example
6233
+ * const ledgerInfo = await aptos.getLedgerInfo()
6234
+ * // an example of the returned data
5997
6235
  * ```
5998
6236
  * {
5999
6237
  * "chain_id": 4,
@@ -6012,12 +6250,18 @@ declare class General {
6012
6250
  /**
6013
6251
  * Queries for the chain id
6014
6252
  *
6253
+ * @example
6254
+ * const chainId = await aptos.getChainId()
6255
+ *
6015
6256
  * @returns The chain id
6016
6257
  */
6017
6258
  getChainId(): Promise<number>;
6018
6259
  /**
6019
6260
  * Queries for block by transaction version
6020
6261
  *
6262
+ * @example
6263
+ * const block = await aptos.getBlockByVersion({ledgerVersion:5})
6264
+ *
6021
6265
  * @param args.ledgerVersion Ledger version to lookup block information for
6022
6266
  * @param args.options.withTransactions If set to true, include all transactions in the block
6023
6267
  *
@@ -6032,6 +6276,9 @@ declare class General {
6032
6276
  /**
6033
6277
  * Get block by block height
6034
6278
  *
6279
+ * @example
6280
+ * const block = await aptos.getBlockByVersion({blockHeight:5})
6281
+ *
6035
6282
  * @param args.blockHeight Block height to lookup. Starts at 0
6036
6283
  * @param args.options.withTransactions If set to true, include all transactions in the block
6037
6284
  *
@@ -6046,17 +6293,21 @@ declare class General {
6046
6293
  /**
6047
6294
  * Queries for a table item for a table identified by the handle and the key for the item.
6048
6295
  * Key and value types need to be passed in to help with key serialization and value deserialization.
6296
+ *
6297
+ * @example https://api.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E
6298
+ * const tableItem = await aptos.getTableItem({
6299
+ * handle: "0x123",
6300
+ * data: {
6301
+ * key_type: "address", // Move type of table key
6302
+ * value_type: "u128", // Move type of table value
6303
+ * key: "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935" // Value of table key
6304
+ * },
6305
+ * })
6306
+ *
6049
6307
  * @param args.handle A pointer to where that table is stored
6050
6308
  * @param args.data Object that describes table item
6051
6309
  * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
6052
6310
  *
6053
- * @example https://api.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E
6054
- * {
6055
- * data.key_type = "address" // Move type of table key
6056
- * data.value_type = "u128" // Move type of table value
6057
- * data.key = "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935" // Value of table key
6058
- * }
6059
- *
6060
6311
  * @returns Table item value rendered in JSON
6061
6312
  */
6062
6313
  getTableItem<T>(args: {
@@ -6068,14 +6319,15 @@ declare class General {
6068
6319
  * Queries for a Move view function
6069
6320
  * @param args.payload Payload for the view function
6070
6321
  * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
6322
+ *
6071
6323
  * @example
6072
- * `
6073
- * const payload: ViewRequest = {
6074
- * function: "0x1::coin::balance",
6075
- * typeArguments: ["0x1::aptos_coin::AptosCoin"],
6076
- * functionArguments: [accountAddress],
6077
- * };
6078
- * `
6324
+ * const data = await aptos.view({
6325
+ * payload: {
6326
+ * function: "0x1::coin::balance",
6327
+ * typeArguments: ["0x1::aptos_coin::AptosCoin"],
6328
+ * functionArguments: [accountAddress],
6329
+ * }
6330
+ * })
6079
6331
  *
6080
6332
  * @returns an array of Move values
6081
6333
  */
@@ -6086,6 +6338,9 @@ declare class General {
6086
6338
  /**
6087
6339
  * Queries top user transactions
6088
6340
  *
6341
+ * @example
6342
+ * const topUserTransactions = await aptos.getChainTopUserTransactions({limit:5})
6343
+ *
6089
6344
  * @param args.limit The number of transactions to return
6090
6345
  * @returns GetChainTopUserTransactionsResponse
6091
6346
  */
@@ -6097,18 +6352,16 @@ declare class General {
6097
6352
  * For more detailed queries specification see
6098
6353
  * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
6099
6354
  *
6100
- * @param args.query.query A GraphQL query
6101
- * @param args.query.variables The variables for the query
6102
6355
  * @example
6103
- * ```
6104
- * {
6356
+ * const topUserTransactions = await aptos.queryIndexer({
6105
6357
  * query: `query MyQuery {
6106
- ledger_infos {
6107
- chain_id
6108
- }
6109
- }`;
6110
- * }
6111
- * ```
6358
+ * ledger_infos {
6359
+ * chain_id
6360
+ * }}`;
6361
+ * })
6362
+ *
6363
+ * @param args.query.query A GraphQL query
6364
+ * @param args.query.variables The variables for the query
6112
6365
  *
6113
6366
  * @return The provided T type
6114
6367
  */
@@ -6119,11 +6372,17 @@ declare class General {
6119
6372
  * Queries for the last successful indexer version
6120
6373
  *
6121
6374
  * This is useful to tell what ledger version the indexer is updated to, as it can be behind the full nodes.
6375
+ *
6376
+ * @example
6377
+ * const version = await aptos.getIndexerLastSuccessVersion()
6122
6378
  */
6123
6379
  getIndexerLastSuccessVersion(): Promise<bigint>;
6124
6380
  /**
6125
6381
  * Query the processor status for a specific processor type.
6126
6382
  *
6383
+ * @example
6384
+ * const status = await aptos.getProcessorStatus({processorType:"account_transactions_processor"})
6385
+ *
6127
6386
  * @param processorType The processor type to query
6128
6387
  * @returns
6129
6388
  */
@@ -6180,11 +6439,10 @@ declare class ANS {
6180
6439
  /**
6181
6440
  * Retrieve the owner address of a domain name or subdomain name from the contract.
6182
6441
  *
6183
- * ```ts
6442
+ * @example
6184
6443
  * // Will return the owner address of "test.aptos.apt" or undefined
6185
6444
  * const owner = await aptos.getOwnerAddress({name: "test.aptos"})
6186
6445
  * // owner = 0x123...
6187
- * ```
6188
6446
  *
6189
6447
  * @param args.name - A string of the name to retrieve
6190
6448
  *
@@ -6196,11 +6454,10 @@ declare class ANS {
6196
6454
  /**
6197
6455
  * Retrieve the expiration time of a domain name or subdomain name from the contract.
6198
6456
  *
6199
- * ```ts
6457
+ * @example
6200
6458
  * // Will return the expiration of "test.aptos.apt" or undefined
6201
6459
  * const exp = await aptos.getExpiration({name: "test.aptos"})
6202
6460
  * // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z
6203
- * ```
6204
6461
  *
6205
6462
  * @param args.name - A string of the name to retrieve
6206
6463
  *
@@ -6214,10 +6471,9 @@ declare class ANS {
6214
6471
  * address the name points to for use on chain. Note, the target address can
6215
6472
  * point to addresses that are not the owner of the name
6216
6473
  *
6217
- * ```ts
6474
+ * @example
6218
6475
  * const targetAddr = await aptos.getTargetAddress({name: "test.aptos"})
6219
6476
  * // targetAddr = 0x123...
6220
- * ```
6221
6477
  *
6222
6478
  * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
6223
6479
  *
@@ -6231,11 +6487,10 @@ declare class ANS {
6231
6487
  * address the name points to for use on chain. Note, the target address can
6232
6488
  * point to addresses that are not the owner of the name
6233
6489
  *
6234
- * ```ts
6490
+ * @example
6235
6491
  * await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress})
6236
6492
  * const address = await aptos.getTargetAddress({name: "test.aptos"})
6237
6493
  * // address = bob.accountAddress
6238
- * ```
6239
6494
  *
6240
6495
  * @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
6241
6496
  * @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
@@ -6253,10 +6508,9 @@ declare class ANS {
6253
6508
  * multiple names that target it, but only a single name that is primary. An
6254
6509
  * account also may not have a primary name.
6255
6510
  *
6256
- * ```ts
6511
+ * @example
6257
6512
  * const name = await aptos.getPrimaryName({address: alice.accountAddress})
6258
6513
  * // name = test.aptos
6259
- * ```
6260
6514
  *
6261
6515
  * @param args.address - A AccountAddressInput (address) of the account
6262
6516
  *
@@ -6270,11 +6524,10 @@ declare class ANS {
6270
6524
  * multiple names that target it, but only a single name that is primary. An
6271
6525
  * account also may not have a primary name.
6272
6526
  *
6273
- * ```ts
6527
+ * @example
6274
6528
  * await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
6275
6529
  * const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})
6276
6530
  * // primaryName = test.aptos
6277
- * ```
6278
6531
  *
6279
6532
  * @param args.sender - The sender account
6280
6533
  * @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
@@ -6289,7 +6542,7 @@ declare class ANS {
6289
6542
  /**
6290
6543
  * Registers a new name
6291
6544
  *
6292
- * ```ts
6545
+ * @example
6293
6546
  * // An example of registering a subdomain name assuming def.apt is already registered
6294
6547
  * // and belongs to the sender alice.
6295
6548
  * const txn = aptos.registerName({
@@ -6300,7 +6553,6 @@ declare class ANS {
6300
6553
  * expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,
6301
6554
  * },
6302
6555
  * });
6303
- * ```
6304
6556
  *
6305
6557
  * @param args.sender - The sender account
6306
6558
  * @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.
@@ -6327,10 +6579,9 @@ declare class ANS {
6327
6579
  *
6328
6580
  * Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
6329
6581
  *
6330
- * ```ts
6582
+ * @example
6331
6583
  * await aptos.renewDomain({sender: alice, name: "test"})
6332
6584
  * // test.apt will be renewed for one year
6333
- * ```
6334
6585
  *
6335
6586
  * @param args.sender - The sender account
6336
6587
  * @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.
@@ -6419,6 +6670,9 @@ declare class Staking {
6419
6670
  /**
6420
6671
  * Queries current number of delegators in a pool. Throws an error if the pool is not found.
6421
6672
  *
6673
+ * @example
6674
+ * const delegators = await aptos.getNumberOfDelegators({poolAddress:"0x123"})
6675
+ *
6422
6676
  * @param args.poolAddress Pool address
6423
6677
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
6424
6678
  * @returns The number of delegators for the given pool
@@ -6430,6 +6684,9 @@ declare class Staking {
6430
6684
  /**
6431
6685
  * Queries current number of delegators in a pool. Throws an error if the pool is not found.
6432
6686
  *
6687
+ * @example
6688
+ * const delegators = await aptos.getNumberOfDelegatorsForAllPools()
6689
+ *
6433
6690
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
6434
6691
  * @returns GetNumberOfDelegatorsForAllPoolsResponse response type
6435
6692
  */
@@ -6440,6 +6697,9 @@ declare class Staking {
6440
6697
  /**
6441
6698
  * Queries delegated staking activities
6442
6699
  *
6700
+ * @example
6701
+ * const delegators = await aptos.getDelegatedStakingActivities({delegatorAddress:"0x123",poolAddress:"0x456"})
6702
+ *
6443
6703
  * @param args.delegatorAddress Delegator address
6444
6704
  * @param args.poolAddress Pool address
6445
6705
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
@@ -6890,6 +7150,9 @@ declare class Transaction {
6890
7150
  * Queries on-chain transactions. This function will not return pending
6891
7151
  * transactions. For that, use `getTransactionsByHash`.
6892
7152
  *
7153
+ * @example
7154
+ * const transactions = await aptos.getTransactions()
7155
+ *
6893
7156
  * @param args.options.offset The number transaction to start with
6894
7157
  * @param args.options.limit Number of results to return
6895
7158
  *
@@ -6901,6 +7164,9 @@ declare class Transaction {
6901
7164
  /**
6902
7165
  * Queries on-chain transaction by version. This function will not return pending transactions.
6903
7166
  *
7167
+ * @example
7168
+ * const transaction = await aptos.getTransactions({ledgerVersion:1})
7169
+ *
6904
7170
  * @param args.ledgerVersion - Transaction version is an unsigned 64-bit number.
6905
7171
  * @returns On-chain transaction. Only on-chain transactions have versions, so this
6906
7172
  * function cannot be used to query pending transactions.
@@ -6910,6 +7176,10 @@ declare class Transaction {
6910
7176
  }): Promise<TransactionResponse>;
6911
7177
  /**
6912
7178
  * Queries on-chain transaction by transaction hash. This function will return pending transactions.
7179
+ *
7180
+ * @example
7181
+ * const transaction = await aptos.getTransactionByHash({transactionHash:"0x123"})
7182
+ *
6913
7183
  * @param args.transactionHash - Transaction hash should be hex-encoded bytes string with 0x prefix.
6914
7184
  * @returns Transaction from mempool (pending) or on-chain (committed) transaction
6915
7185
  */
@@ -6925,6 +7195,9 @@ declare class Transaction {
6925
7195
  * 2. Apply hash algorithm SHA3-256 to the hash message bytes.
6926
7196
  * 3. Hex-encode the hash bytes with 0x prefix.
6927
7197
  *
7198
+ * @example
7199
+ * const isPendingTransaction = await aptos.isPendingTransaction({transactionHash:"0x123"})
7200
+ *
6928
7201
  * @param args.transactionHash A hash of transaction
6929
7202
  * @returns `true` if transaction is in pending state and `false` otherwise
6930
7203
  */
@@ -6946,6 +7219,8 @@ declare class Transaction {
6946
7219
  * 4. Transaction does not move past the pending state within `args.options.timeoutSecs` seconds.
6947
7220
  * - The function will throw a WaitForTransactionError
6948
7221
  *
7222
+ * @example
7223
+ * const transaction = await aptos.waitForTransaction({transactionHash:"0x123"})
6949
7224
  *
6950
7225
  * @param args.transactionHash The hash of a transaction previously submitted to the blockchain.
6951
7226
  * @param args.options.timeoutSecs Timeout in seconds. Defaults to 20 seconds.
@@ -6963,14 +7238,9 @@ declare class Transaction {
6963
7238
  * For more information {@link https://api.mainnet.aptoslabs.com/v1/spec#/operations/estimate_gas_price}
6964
7239
  *
6965
7240
  * @returns Object holding the outputs of the estimate gas API
7241
+ *
6966
7242
  * @example
6967
- * ```
6968
- * {
6969
- * gas_estimate: number;
6970
- * deprioritized_gas_estimate?: number;
6971
- * prioritized_gas_estimate?: number;
6972
- * }
6973
- * ```
7243
+ * const gasPrice = await aptos.waitForTransaction()
6974
7244
  */
6975
7245
  getGasPriceEstimation(): Promise<GasEstimation>;
6976
7246
  /**
@@ -6978,6 +7248,11 @@ declare class Transaction {
6978
7248
  *
6979
7249
  * This allows a user to sign a transaction using their own preferred signing method, and
6980
7250
  * then submit it to the network.
7251
+ *
7252
+ * @example
7253
+ * const transaction = await aptos.transaction.build.simple({...})
7254
+ * const message = await aptos.getSigningMessage({transaction})
7255
+ *
6981
7256
  * @param args.transaction A raw transaction for signing elsewhere
6982
7257
  */
6983
7258
  getSigningMessage(args: {
@@ -6990,6 +7265,13 @@ declare class Transaction {
6990
7265
  * `aptos move compile --save-metadata ...`,
6991
7266
  * For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
6992
7267
  *
7268
+ * @example
7269
+ * const transaction = await aptos.publishPackageTransaction({
7270
+ * account: alice,
7271
+ * metadataBytes,
7272
+ * moduleBytecode: [byteCode],
7273
+ * })
7274
+ *
6993
7275
  * @param args.account The publisher account
6994
7276
  * @param args.metadataBytes The package metadata bytes
6995
7277
  * @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
@@ -7007,6 +7289,13 @@ declare class Transaction {
7007
7289
  * the account.
7008
7290
  * Note: Only legacy Ed25519 scheme is supported for now.
7009
7291
  * More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
7292
+ *
7293
+ * @example
7294
+ * const response = await aptos.rotateAuthKey({
7295
+ * fromAccount: alice,
7296
+ * toNewPrivateKey: new ED25519PublicKey("0x123"),
7297
+ * })
7298
+ *
7010
7299
  * @param args.fromAccount The account to rotate the auth key for
7011
7300
  * @param args.toNewPrivateKey The new private key to rotate to
7012
7301
  *
@@ -7019,6 +7308,13 @@ declare class Transaction {
7019
7308
  /**
7020
7309
  * Sign a transaction that can later be submitted to chain
7021
7310
  *
7311
+ * @example
7312
+ * const transaction = await aptos.transaction.build.simple({...})
7313
+ * const transaction = await aptos.transaction.sign({
7314
+ * signer: alice,
7315
+ * transaction
7316
+ * })
7317
+ *
7022
7318
  * @param args.signer The signer account
7023
7319
  * @param args.transaction A raw transaction to sign on
7024
7320
  *
@@ -7031,6 +7327,13 @@ declare class Transaction {
7031
7327
  /**
7032
7328
  * Sign a transaction as a fee payer that can later be submitted to chain
7033
7329
  *
7330
+ * @example
7331
+ * const transaction = await aptos.transaction.build.simple({...})
7332
+ * const transaction = await aptos.transaction.signAsFeePayer({
7333
+ * signer: alice,
7334
+ * transaction
7335
+ * })
7336
+ *
7034
7337
  * @param args.signer The fee payer signer account
7035
7338
  * @param args.transaction A raw transaction to sign on
7036
7339
  *
@@ -7068,13 +7371,13 @@ declare class Transaction {
7068
7371
  *
7069
7372
  * @param args.signer The signer account to sign the transaction
7070
7373
  * @param args.transaction An instance of a RawTransaction, plus optional secondary/fee payer addresses
7071
- * ```
7072
- * {
7073
- * rawTransaction: RawTransaction,
7074
- * secondarySignerAddresses? : Array<AccountAddress>,
7075
- * feePayerAddress?: AccountAddress
7076
- * }
7077
- * ```
7374
+ *
7375
+ * @example
7376
+ * const transaction = await aptos.transaction.build.simple({...})
7377
+ * const transaction = await aptos.signAndSubmitTransaction({
7378
+ * signer: alice,
7379
+ * transaction
7380
+ * })
7078
7381
  *
7079
7382
  * @return PendingTransactionResponse
7080
7383
  */
@@ -7090,6 +7393,10 @@ declare class Transaction {
7090
7393
  *
7091
7394
  * To use the SDK, create a new Aptos instance to get access
7092
7395
  * to all the sdk functionality.
7396
+ *
7397
+ * @example
7398
+ *
7399
+ * const aptos = new Aptos();
7093
7400
  */
7094
7401
  declare class Aptos {
7095
7402
  readonly config: AptosConfig;
@@ -7256,38 +7563,4 @@ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: Post
7256
7563
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7257
7564
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7258
7565
 
7259
- declare class LocalNode {
7260
- readonly MAXIMUM_WAIT_TIME_SEC = 75;
7261
- readonly READINESS_ENDPOINT = "http://127.0.0.1:8070/";
7262
- process: ChildProcessWithoutNullStreams | null;
7263
- /**
7264
- * kills all the descendent processes
7265
- * of the node process, including the node process itself
7266
- */
7267
- stop(): void;
7268
- /**
7269
- * Runs a local testnet and waits for process to be up.
7270
- *
7271
- * If local node process is already up it returns and does
7272
- * not start the process
7273
- */
7274
- run(): Promise<void>;
7275
- /**
7276
- * Starts the local testnet by running the aptos node run-local-testnet command
7277
- */
7278
- start(): void;
7279
- /**
7280
- * Waits for the local testnet process to be up
7281
- *
7282
- * @returns Promise<boolean>
7283
- */
7284
- waitUntilProcessIsUp(): Promise<boolean>;
7285
- /**
7286
- * Checks if the local testnet is up
7287
- *
7288
- * @returns Promise<boolean>
7289
- */
7290
- checkIfProcessIsUp(): Promise<boolean>;
7291
- }
7292
-
7293
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, type LedgerInfo, type LedgerVersionArg, LocalNode, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
7566
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };