@stacks/blockchain-api-client 0.71.1 → 1.0.3

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 (469) hide show
  1. package/README.md +362 -15
  2. package/lib/generated/apis/AccountsApi.d.ts +60 -25
  3. package/lib/generated/apis/AccountsApi.js +45 -10
  4. package/lib/generated/apis/AccountsApi.js.map +1 -1
  5. package/lib/generated/apis/BlocksApi.d.ts +38 -38
  6. package/lib/generated/apis/BlocksApi.js +20 -20
  7. package/lib/generated/apis/FaucetsApi.d.ts +10 -10
  8. package/lib/generated/apis/FaucetsApi.js +6 -6
  9. package/lib/generated/apis/FeesApi.d.ts +34 -6
  10. package/lib/generated/apis/FeesApi.js +33 -4
  11. package/lib/generated/apis/FeesApi.js.map +1 -1
  12. package/lib/generated/apis/FungibleTokensApi.d.ts +82 -0
  13. package/lib/generated/apis/FungibleTokensApi.js +80 -0
  14. package/lib/generated/apis/FungibleTokensApi.js.map +1 -0
  15. package/lib/generated/apis/InfoApi.d.ts +42 -24
  16. package/lib/generated/apis/InfoApi.js +22 -10
  17. package/lib/generated/apis/InfoApi.js.map +1 -1
  18. package/lib/generated/apis/MicroblocksApi.d.ts +14 -11
  19. package/lib/generated/apis/MicroblocksApi.js +8 -6
  20. package/lib/generated/apis/MicroblocksApi.js.map +1 -1
  21. package/lib/generated/apis/{BNSApi.d.ts → NamesApi.d.ts} +66 -63
  22. package/lib/generated/apis/{BNSApi.js → NamesApi.js} +30 -28
  23. package/lib/generated/apis/NamesApi.js.map +1 -0
  24. package/lib/generated/apis/NonFungibleTokensApi.d.ts +82 -0
  25. package/lib/generated/apis/NonFungibleTokensApi.js +80 -0
  26. package/lib/generated/apis/NonFungibleTokensApi.js.map +1 -0
  27. package/lib/generated/apis/RosettaApi.d.ts +42 -42
  28. package/lib/generated/apis/RosettaApi.js +22 -22
  29. package/lib/generated/apis/SearchApi.d.ts +4 -2
  30. package/lib/generated/apis/SearchApi.js +5 -2
  31. package/lib/generated/apis/SearchApi.js.map +1 -1
  32. package/lib/generated/apis/SmartContractsApi.d.ts +54 -23
  33. package/lib/generated/apis/SmartContractsApi.js +47 -12
  34. package/lib/generated/apis/SmartContractsApi.js.map +1 -1
  35. package/lib/generated/apis/{BurnchainApi.d.ts → StackingRewardsApi.d.ts} +31 -31
  36. package/lib/generated/apis/{BurnchainApi.js → StackingRewardsApi.js} +16 -16
  37. package/lib/generated/apis/StackingRewardsApi.js.map +1 -0
  38. package/lib/generated/apis/TransactionsApi.d.ts +87 -46
  39. package/lib/generated/apis/TransactionsApi.js +62 -24
  40. package/lib/generated/apis/TransactionsApi.js.map +1 -1
  41. package/lib/generated/apis/index.d.ts +4 -4
  42. package/lib/generated/apis/index.js +4 -4
  43. package/lib/generated/apis/index.js.map +1 -1
  44. package/lib/generated/models/AccountDataResponse.d.ts +2 -2
  45. package/lib/generated/models/AccountDataResponse.js +2 -2
  46. package/lib/generated/models/AddressAssetsListResponse.d.ts +2 -2
  47. package/lib/generated/models/AddressAssetsListResponse.js +2 -2
  48. package/lib/generated/models/AddressBalanceResponse.d.ts +2 -2
  49. package/lib/generated/models/AddressBalanceResponse.js +2 -2
  50. package/lib/generated/models/AddressBalanceResponseStx.d.ts +2 -2
  51. package/lib/generated/models/AddressBalanceResponseStx.js +2 -2
  52. package/lib/generated/models/AddressNftListResponse.d.ts +2 -2
  53. package/lib/generated/models/AddressNftListResponse.js +2 -2
  54. package/lib/generated/models/AddressNftListResponseValue.d.ts +2 -2
  55. package/lib/generated/models/AddressNftListResponseValue.js +2 -2
  56. package/lib/generated/models/AddressNonces.d.ts +2 -2
  57. package/lib/generated/models/AddressNonces.js +2 -2
  58. package/lib/generated/models/AddressStxInboundListResponse.d.ts +2 -2
  59. package/lib/generated/models/AddressStxInboundListResponse.js +2 -2
  60. package/lib/generated/models/AddressTokenOfferingLocked.d.ts +2 -2
  61. package/lib/generated/models/AddressTokenOfferingLocked.js +2 -2
  62. package/lib/generated/models/AddressTransactionWithTransfers.d.ts +2 -2
  63. package/lib/generated/models/AddressTransactionWithTransfers.js +2 -2
  64. package/lib/generated/models/AddressTransactionWithTransfersFtTransfers.d.ts +2 -2
  65. package/lib/generated/models/AddressTransactionWithTransfersFtTransfers.js +2 -2
  66. package/lib/generated/models/AddressTransactionWithTransfersNftTransfers.d.ts +6 -5
  67. package/lib/generated/models/AddressTransactionWithTransfersNftTransfers.js +5 -4
  68. package/lib/generated/models/AddressTransactionWithTransfersNftTransfers.js.map +1 -1
  69. package/lib/generated/models/AddressTransactionWithTransfersStxTransfers.d.ts +2 -2
  70. package/lib/generated/models/AddressTransactionWithTransfersStxTransfers.js +2 -2
  71. package/lib/generated/models/AddressTransactionWithTransfersValue.d.ts +33 -0
  72. package/lib/generated/models/AddressTransactionWithTransfersValue.js +44 -0
  73. package/lib/generated/models/AddressTransactionWithTransfersValue.js.map +1 -0
  74. package/lib/generated/models/AddressTransactionsListResponse.d.ts +2 -2
  75. package/lib/generated/models/AddressTransactionsListResponse.js +2 -2
  76. package/lib/generated/models/AddressTransactionsWithTransfersListResponse.d.ts +2 -2
  77. package/lib/generated/models/AddressTransactionsWithTransfersListResponse.js +2 -2
  78. package/lib/generated/models/AddressUnlockSchedule.d.ts +2 -2
  79. package/lib/generated/models/AddressUnlockSchedule.js +2 -2
  80. package/lib/generated/models/Block.d.ts +2 -2
  81. package/lib/generated/models/Block.js +2 -2
  82. package/lib/generated/models/BlockListResponse.d.ts +2 -2
  83. package/lib/generated/models/BlockListResponse.js +2 -2
  84. package/lib/generated/models/BnsError.d.ts +2 -2
  85. package/lib/generated/models/BnsError.js +2 -2
  86. package/lib/generated/models/BnsGetAllNamespacesResponse.d.ts +2 -2
  87. package/lib/generated/models/BnsGetAllNamespacesResponse.js +2 -2
  88. package/lib/generated/models/BnsGetNameInfoResponse.d.ts +2 -2
  89. package/lib/generated/models/BnsGetNameInfoResponse.js +2 -2
  90. package/lib/generated/models/BnsGetNamePriceResponse.d.ts +2 -2
  91. package/lib/generated/models/BnsGetNamePriceResponse.js +2 -2
  92. package/lib/generated/models/BnsGetNamespacePriceResponse.d.ts +2 -2
  93. package/lib/generated/models/BnsGetNamespacePriceResponse.js +2 -2
  94. package/lib/generated/models/BnsNamesOwnByAddressResponse.d.ts +2 -2
  95. package/lib/generated/models/BnsNamesOwnByAddressResponse.js +2 -2
  96. package/lib/generated/models/BurnchainReward.d.ts +2 -2
  97. package/lib/generated/models/BurnchainReward.js +2 -2
  98. package/lib/generated/models/BurnchainRewardListResponse.d.ts +2 -2
  99. package/lib/generated/models/BurnchainRewardListResponse.js +2 -2
  100. package/lib/generated/models/BurnchainRewardSlotHolder.d.ts +2 -2
  101. package/lib/generated/models/BurnchainRewardSlotHolder.js +2 -2
  102. package/lib/generated/models/BurnchainRewardSlotHolderListResponse.d.ts +2 -2
  103. package/lib/generated/models/BurnchainRewardSlotHolderListResponse.js +2 -2
  104. package/lib/generated/models/BurnchainRewardsTotal.d.ts +2 -2
  105. package/lib/generated/models/BurnchainRewardsTotal.js +2 -2
  106. package/lib/generated/models/ContractInterfaceResponse.d.ts +2 -2
  107. package/lib/generated/models/ContractInterfaceResponse.js +2 -2
  108. package/lib/generated/models/ContractListResponse.d.ts +40 -0
  109. package/lib/generated/models/ContractListResponse.js +47 -0
  110. package/lib/generated/models/ContractListResponse.js.map +1 -0
  111. package/lib/generated/models/ContractSourceResponse.d.ts +2 -2
  112. package/lib/generated/models/ContractSourceResponse.js +2 -2
  113. package/lib/generated/models/CoreNodeInfoResponse.d.ts +2 -2
  114. package/lib/generated/models/CoreNodeInfoResponse.js +2 -2
  115. package/lib/generated/models/CoreNodePoxResponse.d.ts +2 -2
  116. package/lib/generated/models/CoreNodePoxResponse.js +2 -2
  117. package/lib/generated/models/FeeRate.d.ts +2 -2
  118. package/lib/generated/models/FeeRate.js +2 -2
  119. package/lib/generated/models/FeeRateRequest.d.ts +2 -2
  120. package/lib/generated/models/FeeRateRequest.js +2 -2
  121. package/lib/generated/models/FungibleTokenMetadata.d.ts +2 -2
  122. package/lib/generated/models/FungibleTokenMetadata.js +2 -2
  123. package/lib/generated/models/FungibleTokensMetadataList.d.ts +2 -2
  124. package/lib/generated/models/FungibleTokensMetadataList.js +2 -2
  125. package/lib/generated/models/GetRawTransactionResult.d.ts +2 -2
  126. package/lib/generated/models/GetRawTransactionResult.js +2 -2
  127. package/lib/generated/models/GetStxSupplyLegacyFormatResponse.d.ts +2 -2
  128. package/lib/generated/models/GetStxSupplyLegacyFormatResponse.js +2 -2
  129. package/lib/generated/models/GetStxSupplyResponse.d.ts +2 -2
  130. package/lib/generated/models/GetStxSupplyResponse.js +2 -2
  131. package/lib/generated/models/InboundStxTransfer.d.ts +2 -2
  132. package/lib/generated/models/InboundStxTransfer.js +2 -2
  133. package/lib/generated/models/InlineResponse200.d.ts +2 -2
  134. package/lib/generated/models/InlineResponse200.js +2 -2
  135. package/lib/generated/models/MapEntryResponse.d.ts +2 -2
  136. package/lib/generated/models/MapEntryResponse.js +2 -2
  137. package/lib/generated/models/MempoolTransactionListResponse.d.ts +2 -2
  138. package/lib/generated/models/MempoolTransactionListResponse.js +2 -2
  139. package/lib/generated/models/Microblock.d.ts +2 -2
  140. package/lib/generated/models/Microblock.js +2 -2
  141. package/lib/generated/models/MicroblockListResponse.d.ts +2 -2
  142. package/lib/generated/models/MicroblockListResponse.js +2 -2
  143. package/lib/generated/models/NetworkBlockTimeResponse.d.ts +2 -2
  144. package/lib/generated/models/NetworkBlockTimeResponse.js +2 -2
  145. package/lib/generated/models/NetworkBlockTimesResponse.d.ts +2 -2
  146. package/lib/generated/models/NetworkBlockTimesResponse.js +2 -2
  147. package/lib/generated/models/NetworkBlockTimesResponseMainnet.d.ts +2 -2
  148. package/lib/generated/models/NetworkBlockTimesResponseMainnet.js +2 -2
  149. package/lib/generated/models/NetworkIdentifier.d.ts +2 -2
  150. package/lib/generated/models/NetworkIdentifier.js +2 -2
  151. package/lib/generated/models/NftEvent.d.ts +2 -2
  152. package/lib/generated/models/NftEvent.js +2 -2
  153. package/lib/generated/models/NonFungibleTokenMetadata.d.ts +2 -2
  154. package/lib/generated/models/NonFungibleTokenMetadata.js +2 -2
  155. package/lib/generated/models/NonFungibleTokensMetadataList.d.ts +2 -2
  156. package/lib/generated/models/NonFungibleTokensMetadataList.js +2 -2
  157. package/lib/generated/models/OtherTransactionIdentifier.d.ts +2 -2
  158. package/lib/generated/models/OtherTransactionIdentifier.js +2 -2
  159. package/lib/generated/models/PostCoreNodeTransactionsError.d.ts +2 -2
  160. package/lib/generated/models/PostCoreNodeTransactionsError.js +2 -2
  161. package/lib/generated/models/ReadOnlyFunctionArgs.d.ts +2 -2
  162. package/lib/generated/models/ReadOnlyFunctionArgs.js +2 -2
  163. package/lib/generated/models/ReadOnlyFunctionSuccessResponse.d.ts +2 -2
  164. package/lib/generated/models/ReadOnlyFunctionSuccessResponse.js +2 -2
  165. package/lib/generated/models/RosettaAccount.d.ts +2 -2
  166. package/lib/generated/models/RosettaAccount.js +2 -2
  167. package/lib/generated/models/RosettaAccountBalanceRequest.d.ts +2 -2
  168. package/lib/generated/models/RosettaAccountBalanceRequest.js +2 -2
  169. package/lib/generated/models/RosettaAccountBalanceResponse.d.ts +2 -2
  170. package/lib/generated/models/RosettaAccountBalanceResponse.js +2 -2
  171. package/lib/generated/models/RosettaAccountBalanceResponseCoinIdentifier.d.ts +2 -2
  172. package/lib/generated/models/RosettaAccountBalanceResponseCoinIdentifier.js +2 -2
  173. package/lib/generated/models/RosettaAccountBalanceResponseMetadata.d.ts +2 -2
  174. package/lib/generated/models/RosettaAccountBalanceResponseMetadata.js +2 -2
  175. package/lib/generated/models/RosettaAccountIdentifier.d.ts +2 -2
  176. package/lib/generated/models/RosettaAccountIdentifier.js +2 -2
  177. package/lib/generated/models/RosettaAmount.d.ts +2 -2
  178. package/lib/generated/models/RosettaAmount.js +2 -2
  179. package/lib/generated/models/RosettaBlock.d.ts +2 -2
  180. package/lib/generated/models/RosettaBlock.js +2 -2
  181. package/lib/generated/models/RosettaBlockMetadata.d.ts +2 -2
  182. package/lib/generated/models/RosettaBlockMetadata.js +2 -2
  183. package/lib/generated/models/RosettaBlockMetadata1.d.ts +2 -2
  184. package/lib/generated/models/RosettaBlockMetadata1.js +2 -2
  185. package/lib/generated/models/RosettaBlockRequest.d.ts +2 -2
  186. package/lib/generated/models/RosettaBlockRequest.js +2 -2
  187. package/lib/generated/models/RosettaBlockResponse.d.ts +2 -2
  188. package/lib/generated/models/RosettaBlockResponse.js +2 -2
  189. package/lib/generated/models/RosettaBlockTransactionRequest.d.ts +2 -2
  190. package/lib/generated/models/RosettaBlockTransactionRequest.js +2 -2
  191. package/lib/generated/models/RosettaBlockTransactionResponse.d.ts +2 -2
  192. package/lib/generated/models/RosettaBlockTransactionResponse.js +2 -2
  193. package/lib/generated/models/RosettaCoin.d.ts +2 -2
  194. package/lib/generated/models/RosettaCoin.js +2 -2
  195. package/lib/generated/models/RosettaCoinChange.d.ts +2 -2
  196. package/lib/generated/models/RosettaCoinChange.js +2 -2
  197. package/lib/generated/models/RosettaConstructionCombineRequest.d.ts +2 -2
  198. package/lib/generated/models/RosettaConstructionCombineRequest.js +2 -2
  199. package/lib/generated/models/RosettaConstructionCombineResponse.d.ts +2 -2
  200. package/lib/generated/models/RosettaConstructionCombineResponse.js +2 -2
  201. package/lib/generated/models/RosettaConstructionDeriveRequest.d.ts +2 -2
  202. package/lib/generated/models/RosettaConstructionDeriveRequest.js +2 -2
  203. package/lib/generated/models/RosettaConstructionDeriveResponse.d.ts +2 -2
  204. package/lib/generated/models/RosettaConstructionDeriveResponse.js +2 -2
  205. package/lib/generated/models/RosettaConstructionHashRequest.d.ts +2 -2
  206. package/lib/generated/models/RosettaConstructionHashRequest.js +2 -2
  207. package/lib/generated/models/RosettaConstructionHashResponse.d.ts +2 -2
  208. package/lib/generated/models/RosettaConstructionHashResponse.js +2 -2
  209. package/lib/generated/models/RosettaConstructionMetadataRequest.d.ts +2 -2
  210. package/lib/generated/models/RosettaConstructionMetadataRequest.js +2 -2
  211. package/lib/generated/models/RosettaConstructionMetadataResponse.d.ts +2 -2
  212. package/lib/generated/models/RosettaConstructionMetadataResponse.js +2 -2
  213. package/lib/generated/models/RosettaConstructionMetadataResponseMetadata.d.ts +2 -2
  214. package/lib/generated/models/RosettaConstructionMetadataResponseMetadata.js +2 -2
  215. package/lib/generated/models/RosettaConstructionParseRequest.d.ts +2 -2
  216. package/lib/generated/models/RosettaConstructionParseRequest.js +2 -2
  217. package/lib/generated/models/RosettaConstructionParseResponse.d.ts +2 -2
  218. package/lib/generated/models/RosettaConstructionParseResponse.js +2 -2
  219. package/lib/generated/models/RosettaConstructionPayloadResponse.d.ts +2 -2
  220. package/lib/generated/models/RosettaConstructionPayloadResponse.js +2 -2
  221. package/lib/generated/models/RosettaConstructionPayloadsRequest.d.ts +2 -2
  222. package/lib/generated/models/RosettaConstructionPayloadsRequest.js +2 -2
  223. package/lib/generated/models/RosettaConstructionPreprocessRequest.d.ts +2 -2
  224. package/lib/generated/models/RosettaConstructionPreprocessRequest.js +2 -2
  225. package/lib/generated/models/RosettaConstructionPreprocessResponse.d.ts +2 -2
  226. package/lib/generated/models/RosettaConstructionPreprocessResponse.js +2 -2
  227. package/lib/generated/models/RosettaConstructionSubmitRequest.d.ts +2 -2
  228. package/lib/generated/models/RosettaConstructionSubmitRequest.js +2 -2
  229. package/lib/generated/models/RosettaConstructionSubmitResponse.d.ts +2 -2
  230. package/lib/generated/models/RosettaConstructionSubmitResponse.js +2 -2
  231. package/lib/generated/models/RosettaCurrency.d.ts +2 -2
  232. package/lib/generated/models/RosettaCurrency.js +2 -2
  233. package/lib/generated/models/RosettaError.d.ts +2 -2
  234. package/lib/generated/models/RosettaError.js +2 -2
  235. package/lib/generated/models/RosettaErrorDetails.d.ts +2 -2
  236. package/lib/generated/models/RosettaErrorDetails.js +2 -2
  237. package/lib/generated/models/RosettaErrorNoDetails.d.ts +2 -2
  238. package/lib/generated/models/RosettaErrorNoDetails.js +2 -2
  239. package/lib/generated/models/RosettaMaxFeeAmount.d.ts +2 -2
  240. package/lib/generated/models/RosettaMaxFeeAmount.js +2 -2
  241. package/lib/generated/models/RosettaMempoolRequest.d.ts +2 -2
  242. package/lib/generated/models/RosettaMempoolRequest.js +2 -2
  243. package/lib/generated/models/RosettaMempoolResponse.d.ts +2 -2
  244. package/lib/generated/models/RosettaMempoolResponse.js +2 -2
  245. package/lib/generated/models/RosettaMempoolTransactionRequest.d.ts +2 -2
  246. package/lib/generated/models/RosettaMempoolTransactionRequest.js +2 -2
  247. package/lib/generated/models/RosettaMempoolTransactionResponse.d.ts +2 -2
  248. package/lib/generated/models/RosettaMempoolTransactionResponse.js +2 -2
  249. package/lib/generated/models/RosettaNetworkListResponse.d.ts +2 -2
  250. package/lib/generated/models/RosettaNetworkListResponse.js +2 -2
  251. package/lib/generated/models/RosettaNetworkListResponseSubNetworkIdentifier.d.ts +2 -2
  252. package/lib/generated/models/RosettaNetworkListResponseSubNetworkIdentifier.js +2 -2
  253. package/lib/generated/models/RosettaNetworkListResponseSubNetworkIdentifierMetadata.d.ts +2 -2
  254. package/lib/generated/models/RosettaNetworkListResponseSubNetworkIdentifierMetadata.js +2 -2
  255. package/lib/generated/models/RosettaNetworkOptionsResponse.d.ts +2 -2
  256. package/lib/generated/models/RosettaNetworkOptionsResponse.js +2 -2
  257. package/lib/generated/models/RosettaNetworkOptionsResponseAllow.d.ts +2 -2
  258. package/lib/generated/models/RosettaNetworkOptionsResponseAllow.js +2 -2
  259. package/lib/generated/models/RosettaNetworkOptionsResponseVersion.d.ts +2 -2
  260. package/lib/generated/models/RosettaNetworkOptionsResponseVersion.js +2 -2
  261. package/lib/generated/models/RosettaOperation.d.ts +2 -2
  262. package/lib/generated/models/RosettaOperation.js +2 -2
  263. package/lib/generated/models/RosettaOperationIdentifier.d.ts +2 -2
  264. package/lib/generated/models/RosettaOperationIdentifier.js +2 -2
  265. package/lib/generated/models/RosettaOperationStatus.d.ts +2 -2
  266. package/lib/generated/models/RosettaOperationStatus.js +2 -2
  267. package/lib/generated/models/RosettaOptions.d.ts +2 -2
  268. package/lib/generated/models/RosettaOptions.js +2 -2
  269. package/lib/generated/models/RosettaOptionsRequest.d.ts +2 -2
  270. package/lib/generated/models/RosettaOptionsRequest.js +2 -2
  271. package/lib/generated/models/RosettaParentBlockIdentifier.d.ts +2 -2
  272. package/lib/generated/models/RosettaParentBlockIdentifier.js +2 -2
  273. package/lib/generated/models/RosettaPublicKey.d.ts +2 -2
  274. package/lib/generated/models/RosettaPublicKey.js +2 -2
  275. package/lib/generated/models/RosettaRelatedOperation.d.ts +2 -2
  276. package/lib/generated/models/RosettaRelatedOperation.js +2 -2
  277. package/lib/generated/models/RosettaSignature.d.ts +2 -2
  278. package/lib/generated/models/RosettaSignature.js +2 -2
  279. package/lib/generated/models/RosettaStatusRequest.d.ts +2 -2
  280. package/lib/generated/models/RosettaStatusRequest.js +2 -2
  281. package/lib/generated/models/RosettaSubAccount.d.ts +2 -2
  282. package/lib/generated/models/RosettaSubAccount.js +2 -2
  283. package/lib/generated/models/RosettaTransaction.d.ts +2 -2
  284. package/lib/generated/models/RosettaTransaction.js +2 -2
  285. package/lib/generated/models/RunFaucetResponse.d.ts +2 -2
  286. package/lib/generated/models/RunFaucetResponse.js +2 -2
  287. package/lib/generated/models/ServerStatusResponse.d.ts +2 -2
  288. package/lib/generated/models/ServerStatusResponse.js +2 -2
  289. package/lib/generated/models/SigningPayload.d.ts +2 -2
  290. package/lib/generated/models/SigningPayload.js +2 -2
  291. package/lib/generated/models/SmartContract.d.ts +51 -0
  292. package/lib/generated/models/SmartContract.js +50 -0
  293. package/lib/generated/models/SmartContract.js.map +1 -0
  294. package/lib/generated/models/TransactionIdentifier.d.ts +2 -2
  295. package/lib/generated/models/TransactionIdentifier.js +2 -2
  296. package/lib/generated/models/TransactionResults.d.ts +2 -2
  297. package/lib/generated/models/TransactionResults.js +2 -2
  298. package/lib/generated/models/UnanchoredTransactionListResponse.d.ts +2 -2
  299. package/lib/generated/models/UnanchoredTransactionListResponse.js +2 -2
  300. package/lib/generated/models/index.d.ts +3 -0
  301. package/lib/generated/models/index.js +3 -0
  302. package/lib/generated/models/index.js.map +1 -1
  303. package/lib/generated/runtime.d.ts +2 -2
  304. package/lib/generated/runtime.js +2 -2
  305. package/lib/index.umd.js +1393 -976
  306. package/lib/index.umd.js.map +1 -1
  307. package/lib/socket-io/index.d.ts +4 -0
  308. package/lib/socket-io/index.js +6 -1
  309. package/lib/socket-io/index.js.map +1 -1
  310. package/lib/ws/index.d.ts +7 -1
  311. package/lib/ws/index.js +51 -0
  312. package/lib/ws/index.js.map +1 -1
  313. package/package.json +5 -5
  314. package/src/generated/.openapi-generator/FILES +7 -4
  315. package/src/generated/apis/AccountsApi.ts +88 -25
  316. package/src/generated/apis/BlocksApi.ts +38 -38
  317. package/src/generated/apis/FaucetsApi.ts +10 -10
  318. package/src/generated/apis/FeesApi.ts +69 -6
  319. package/src/generated/apis/FungibleTokensApi.ts +150 -0
  320. package/src/generated/apis/InfoApi.ts +42 -24
  321. package/src/generated/apis/MicroblocksApi.ts +14 -11
  322. package/src/generated/apis/{BNSApi.ts → NamesApi.ts} +66 -63
  323. package/src/generated/apis/NonFungibleTokensApi.ts +150 -0
  324. package/src/generated/apis/RosettaApi.ts +42 -42
  325. package/src/generated/apis/SearchApi.ts +8 -2
  326. package/src/generated/apis/SmartContractsApi.ts +93 -22
  327. package/src/generated/apis/{BurnchainApi.ts → StackingRewardsApi.ts} +31 -31
  328. package/src/generated/apis/TransactionsApi.ts +120 -46
  329. package/src/generated/apis/index.ts +4 -4
  330. package/src/generated/models/AccountDataResponse.ts +2 -2
  331. package/src/generated/models/AddressAssetsListResponse.ts +2 -2
  332. package/src/generated/models/AddressBalanceResponse.ts +2 -2
  333. package/src/generated/models/AddressBalanceResponseStx.ts +2 -2
  334. package/src/generated/models/AddressNftListResponse.ts +2 -2
  335. package/src/generated/models/AddressNftListResponseValue.ts +2 -2
  336. package/src/generated/models/AddressNonces.ts +2 -2
  337. package/src/generated/models/AddressStxInboundListResponse.ts +2 -2
  338. package/src/generated/models/AddressTokenOfferingLocked.ts +2 -2
  339. package/src/generated/models/AddressTransactionWithTransfers.ts +2 -2
  340. package/src/generated/models/AddressTransactionWithTransfersFtTransfers.ts +2 -2
  341. package/src/generated/models/AddressTransactionWithTransfersNftTransfers.ts +14 -7
  342. package/src/generated/models/AddressTransactionWithTransfersStxTransfers.ts +2 -2
  343. package/src/generated/models/AddressTransactionWithTransfersValue.ts +64 -0
  344. package/src/generated/models/AddressTransactionsListResponse.ts +2 -2
  345. package/src/generated/models/AddressTransactionsWithTransfersListResponse.ts +2 -2
  346. package/src/generated/models/AddressUnlockSchedule.ts +2 -2
  347. package/src/generated/models/Block.ts +2 -2
  348. package/src/generated/models/BlockListResponse.ts +2 -2
  349. package/src/generated/models/BnsError.ts +2 -2
  350. package/src/generated/models/BnsGetAllNamespacesResponse.ts +2 -2
  351. package/src/generated/models/BnsGetNameInfoResponse.ts +2 -2
  352. package/src/generated/models/BnsGetNamePriceResponse.ts +2 -2
  353. package/src/generated/models/BnsGetNamespacePriceResponse.ts +2 -2
  354. package/src/generated/models/BnsNamesOwnByAddressResponse.ts +2 -2
  355. package/src/generated/models/BurnchainReward.ts +2 -2
  356. package/src/generated/models/BurnchainRewardListResponse.ts +2 -2
  357. package/src/generated/models/BurnchainRewardSlotHolder.ts +2 -2
  358. package/src/generated/models/BurnchainRewardSlotHolderListResponse.ts +2 -2
  359. package/src/generated/models/BurnchainRewardsTotal.ts +2 -2
  360. package/src/generated/models/ContractInterfaceResponse.ts +2 -2
  361. package/src/generated/models/ContractListResponse.ts +79 -0
  362. package/src/generated/models/ContractSourceResponse.ts +2 -2
  363. package/src/generated/models/CoreNodeInfoResponse.ts +2 -2
  364. package/src/generated/models/CoreNodePoxResponse.ts +2 -2
  365. package/src/generated/models/FeeRate.ts +2 -2
  366. package/src/generated/models/FeeRateRequest.ts +2 -2
  367. package/src/generated/models/FungibleTokenMetadata.ts +2 -2
  368. package/src/generated/models/FungibleTokensMetadataList.ts +2 -2
  369. package/src/generated/models/GetRawTransactionResult.ts +2 -2
  370. package/src/generated/models/GetStxSupplyLegacyFormatResponse.ts +2 -2
  371. package/src/generated/models/GetStxSupplyResponse.ts +2 -2
  372. package/src/generated/models/InboundStxTransfer.ts +2 -2
  373. package/src/generated/models/InlineResponse200.ts +2 -2
  374. package/src/generated/models/MapEntryResponse.ts +2 -2
  375. package/src/generated/models/MempoolTransactionListResponse.ts +2 -2
  376. package/src/generated/models/Microblock.ts +2 -2
  377. package/src/generated/models/MicroblockListResponse.ts +2 -2
  378. package/src/generated/models/NetworkBlockTimeResponse.ts +2 -2
  379. package/src/generated/models/NetworkBlockTimesResponse.ts +2 -2
  380. package/src/generated/models/NetworkBlockTimesResponseMainnet.ts +2 -2
  381. package/src/generated/models/NetworkIdentifier.ts +2 -2
  382. package/src/generated/models/NftEvent.ts +2 -2
  383. package/src/generated/models/NonFungibleTokenMetadata.ts +2 -2
  384. package/src/generated/models/NonFungibleTokensMetadataList.ts +2 -2
  385. package/src/generated/models/OtherTransactionIdentifier.ts +2 -2
  386. package/src/generated/models/PostCoreNodeTransactionsError.ts +2 -2
  387. package/src/generated/models/ReadOnlyFunctionArgs.ts +2 -2
  388. package/src/generated/models/ReadOnlyFunctionSuccessResponse.ts +2 -2
  389. package/src/generated/models/RosettaAccount.ts +2 -2
  390. package/src/generated/models/RosettaAccountBalanceRequest.ts +2 -2
  391. package/src/generated/models/RosettaAccountBalanceResponse.ts +2 -2
  392. package/src/generated/models/RosettaAccountBalanceResponseCoinIdentifier.ts +2 -2
  393. package/src/generated/models/RosettaAccountBalanceResponseMetadata.ts +2 -2
  394. package/src/generated/models/RosettaAccountIdentifier.ts +2 -2
  395. package/src/generated/models/RosettaAmount.ts +2 -2
  396. package/src/generated/models/RosettaBlock.ts +2 -2
  397. package/src/generated/models/RosettaBlockMetadata.ts +2 -2
  398. package/src/generated/models/RosettaBlockMetadata1.ts +2 -2
  399. package/src/generated/models/RosettaBlockRequest.ts +2 -2
  400. package/src/generated/models/RosettaBlockResponse.ts +2 -2
  401. package/src/generated/models/RosettaBlockTransactionRequest.ts +2 -2
  402. package/src/generated/models/RosettaBlockTransactionResponse.ts +2 -2
  403. package/src/generated/models/RosettaCoin.ts +2 -2
  404. package/src/generated/models/RosettaCoinChange.ts +2 -2
  405. package/src/generated/models/RosettaConstructionCombineRequest.ts +2 -2
  406. package/src/generated/models/RosettaConstructionCombineResponse.ts +2 -2
  407. package/src/generated/models/RosettaConstructionDeriveRequest.ts +2 -2
  408. package/src/generated/models/RosettaConstructionDeriveResponse.ts +2 -2
  409. package/src/generated/models/RosettaConstructionHashRequest.ts +2 -2
  410. package/src/generated/models/RosettaConstructionHashResponse.ts +2 -2
  411. package/src/generated/models/RosettaConstructionMetadataRequest.ts +2 -2
  412. package/src/generated/models/RosettaConstructionMetadataResponse.ts +2 -2
  413. package/src/generated/models/RosettaConstructionMetadataResponseMetadata.ts +2 -2
  414. package/src/generated/models/RosettaConstructionParseRequest.ts +2 -2
  415. package/src/generated/models/RosettaConstructionParseResponse.ts +2 -2
  416. package/src/generated/models/RosettaConstructionPayloadResponse.ts +2 -2
  417. package/src/generated/models/RosettaConstructionPayloadsRequest.ts +2 -2
  418. package/src/generated/models/RosettaConstructionPreprocessRequest.ts +2 -2
  419. package/src/generated/models/RosettaConstructionPreprocessResponse.ts +2 -2
  420. package/src/generated/models/RosettaConstructionSubmitRequest.ts +2 -2
  421. package/src/generated/models/RosettaConstructionSubmitResponse.ts +2 -2
  422. package/src/generated/models/RosettaCurrency.ts +2 -2
  423. package/src/generated/models/RosettaError.ts +2 -2
  424. package/src/generated/models/RosettaErrorDetails.ts +2 -2
  425. package/src/generated/models/RosettaErrorNoDetails.ts +2 -2
  426. package/src/generated/models/RosettaMaxFeeAmount.ts +2 -2
  427. package/src/generated/models/RosettaMempoolRequest.ts +2 -2
  428. package/src/generated/models/RosettaMempoolResponse.ts +2 -2
  429. package/src/generated/models/RosettaMempoolTransactionRequest.ts +2 -2
  430. package/src/generated/models/RosettaMempoolTransactionResponse.ts +2 -2
  431. package/src/generated/models/RosettaNetworkListResponse.ts +2 -2
  432. package/src/generated/models/RosettaNetworkListResponseSubNetworkIdentifier.ts +2 -2
  433. package/src/generated/models/RosettaNetworkListResponseSubNetworkIdentifierMetadata.ts +2 -2
  434. package/src/generated/models/RosettaNetworkOptionsResponse.ts +2 -2
  435. package/src/generated/models/RosettaNetworkOptionsResponseAllow.ts +2 -2
  436. package/src/generated/models/RosettaNetworkOptionsResponseVersion.ts +2 -2
  437. package/src/generated/models/RosettaOperation.ts +2 -2
  438. package/src/generated/models/RosettaOperationIdentifier.ts +2 -2
  439. package/src/generated/models/RosettaOperationStatus.ts +2 -2
  440. package/src/generated/models/RosettaOptions.ts +2 -2
  441. package/src/generated/models/RosettaOptionsRequest.ts +2 -2
  442. package/src/generated/models/RosettaParentBlockIdentifier.ts +2 -2
  443. package/src/generated/models/RosettaPublicKey.ts +2 -2
  444. package/src/generated/models/RosettaRelatedOperation.ts +2 -2
  445. package/src/generated/models/RosettaSignature.ts +2 -2
  446. package/src/generated/models/RosettaStatusRequest.ts +2 -2
  447. package/src/generated/models/RosettaSubAccount.ts +2 -2
  448. package/src/generated/models/RosettaTransaction.ts +2 -2
  449. package/src/generated/models/RunFaucetResponse.ts +2 -2
  450. package/src/generated/models/ServerStatusResponse.ts +2 -2
  451. package/src/generated/models/SigningPayload.ts +2 -2
  452. package/src/generated/models/SmartContract.ts +88 -0
  453. package/src/generated/models/TransactionIdentifier.ts +2 -2
  454. package/src/generated/models/TransactionResults.ts +2 -2
  455. package/src/generated/models/UnanchoredTransactionListResponse.ts +2 -2
  456. package/src/generated/models/index.ts +3 -0
  457. package/src/generated/runtime.ts +2 -2
  458. package/src/socket-io/index.ts +8 -1
  459. package/src/ws/index.ts +63 -0
  460. package/lib/generated/apis/BNSApi.js.map +0 -1
  461. package/lib/generated/apis/BurnchainApi.js.map +0 -1
  462. package/lib/generated/apis/FeeRateApi.d.ts +0 -53
  463. package/lib/generated/apis/FeeRateApi.js +0 -53
  464. package/lib/generated/apis/FeeRateApi.js.map +0 -1
  465. package/lib/generated/apis/TokensApi.d.ts +0 -138
  466. package/lib/generated/apis/TokensApi.js +0 -135
  467. package/lib/generated/apis/TokensApi.js.map +0 -1
  468. package/src/generated/apis/FeeRateApi.ts +0 -95
  469. package/src/generated/apis/TokensApi.ts +0 -266
package/lib/index.umd.js CHANGED
@@ -171,8 +171,8 @@
171
171
  /* eslint-disable */
172
172
 
173
173
  /**
174
- * Stacks 2.0 Blockchain API
175
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
174
+ * Stacks Blockchain API
175
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
176
176
  *
177
177
  * The version of the OpenAPI document: STACKS_API_VERSION
178
178
  *
@@ -772,8 +772,8 @@
772
772
  /* eslint-disable */
773
773
 
774
774
  /**
775
- * Stacks 2.0 Blockchain API
776
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
775
+ * Stacks Blockchain API
776
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
777
777
  *
778
778
  * The version of the OpenAPI document: STACKS_API_VERSION
779
779
  *
@@ -823,8 +823,8 @@
823
823
  /* eslint-disable */
824
824
 
825
825
  /**
826
- * Stacks 2.0 Blockchain API
827
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
826
+ * Stacks Blockchain API
827
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
828
828
  *
829
829
  * The version of the OpenAPI document: STACKS_API_VERSION
830
830
  *
@@ -903,8 +903,8 @@
903
903
  /* eslint-disable */
904
904
 
905
905
  /**
906
- * Stacks 2.0 Blockchain API
907
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
906
+ * Stacks Blockchain API
907
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
908
908
  *
909
909
  * The version of the OpenAPI document: STACKS_API_VERSION
910
910
  *
@@ -995,8 +995,8 @@
995
995
  /* eslint-disable */
996
996
 
997
997
  /**
998
- * Stacks 2.0 Blockchain API
999
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
998
+ * Stacks Blockchain API
999
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1000
1000
  *
1001
1001
  * The version of the OpenAPI document: STACKS_API_VERSION
1002
1002
  *
@@ -1038,8 +1038,8 @@
1038
1038
  /* eslint-disable */
1039
1039
 
1040
1040
  /**
1041
- * Stacks 2.0 Blockchain API
1042
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1041
+ * Stacks Blockchain API
1042
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1043
1043
  *
1044
1044
  * The version of the OpenAPI document: STACKS_API_VERSION
1045
1045
  *
@@ -1225,7 +1225,7 @@
1225
1225
 
1226
1226
  return {
1227
1227
  'asset_identifier': json['asset_identifier'],
1228
- 'value': json['value'],
1228
+ 'value': AddressTransactionWithTransfersValueFromJSON(json['value']),
1229
1229
  'sender': !exists(json, 'sender') ? undefined : json['sender'],
1230
1230
  'recipient': !exists(json, 'recipient') ? undefined : json['recipient']
1231
1231
  };
@@ -1241,7 +1241,7 @@
1241
1241
 
1242
1242
  return {
1243
1243
  'asset_identifier': value.asset_identifier,
1244
- 'value': value.value,
1244
+ 'value': AddressTransactionWithTransfersValueToJSON(value.value),
1245
1245
  'sender': value.sender,
1246
1246
  'recipient': value.recipient
1247
1247
  };
@@ -1283,8 +1283,51 @@
1283
1283
  /* eslint-disable */
1284
1284
 
1285
1285
  /**
1286
- * Stacks 2.0 Blockchain API
1287
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1286
+ * Stacks Blockchain API
1287
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1288
+ *
1289
+ * The version of the OpenAPI document: STACKS_API_VERSION
1290
+ *
1291
+ *
1292
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1293
+ * https://openapi-generator.tech
1294
+ * Do not edit the class manually.
1295
+ */
1296
+ function AddressTransactionWithTransfersValueFromJSON(json) {
1297
+ return AddressTransactionWithTransfersValueFromJSONTyped(json);
1298
+ }
1299
+ function AddressTransactionWithTransfersValueFromJSONTyped(json, ignoreDiscriminator) {
1300
+ if (json === undefined || json === null) {
1301
+ return json;
1302
+ }
1303
+
1304
+ return {
1305
+ 'hex': json['hex'],
1306
+ 'repr': json['repr']
1307
+ };
1308
+ }
1309
+ function AddressTransactionWithTransfersValueToJSON(value) {
1310
+ if (value === undefined) {
1311
+ return undefined;
1312
+ }
1313
+
1314
+ if (value === null) {
1315
+ return null;
1316
+ }
1317
+
1318
+ return {
1319
+ 'hex': value.hex,
1320
+ 'repr': value.repr
1321
+ };
1322
+ }
1323
+
1324
+ /* tslint:disable */
1325
+
1326
+ /* eslint-disable */
1327
+
1328
+ /**
1329
+ * Stacks Blockchain API
1330
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1288
1331
  *
1289
1332
  * The version of the OpenAPI document: STACKS_API_VERSION
1290
1333
  *
@@ -1363,8 +1406,8 @@
1363
1406
  /* eslint-disable */
1364
1407
 
1365
1408
  /**
1366
- * Stacks 2.0 Blockchain API
1367
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1409
+ * Stacks Blockchain API
1410
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1368
1411
  *
1369
1412
  * The version of the OpenAPI document: STACKS_API_VERSION
1370
1413
  *
@@ -1406,8 +1449,8 @@
1406
1449
  /* eslint-disable */
1407
1450
 
1408
1451
  /**
1409
- * Stacks 2.0 Blockchain API
1410
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1452
+ * Stacks Blockchain API
1453
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1411
1454
  *
1412
1455
  * The version of the OpenAPI document: STACKS_API_VERSION
1413
1456
  *
@@ -1543,8 +1586,8 @@
1543
1586
  /* eslint-disable */
1544
1587
 
1545
1588
  /**
1546
- * Stacks 2.0 Blockchain API
1547
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1589
+ * Stacks Blockchain API
1590
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1548
1591
  *
1549
1592
  * The version of the OpenAPI document: STACKS_API_VERSION
1550
1593
  *
@@ -1627,8 +1670,8 @@
1627
1670
  /* eslint-disable */
1628
1671
 
1629
1672
  /**
1630
- * Stacks 2.0 Blockchain API
1631
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1673
+ * Stacks Blockchain API
1674
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1632
1675
  *
1633
1676
  * The version of the OpenAPI document: STACKS_API_VERSION
1634
1677
  *
@@ -1670,8 +1713,8 @@
1670
1713
  /* eslint-disable */
1671
1714
 
1672
1715
  /**
1673
- * Stacks 2.0 Blockchain API
1674
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1716
+ * Stacks Blockchain API
1717
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1675
1718
  *
1676
1719
  * The version of the OpenAPI document: STACKS_API_VERSION
1677
1720
  *
@@ -1740,8 +1783,8 @@
1740
1783
  /* eslint-disable */
1741
1784
 
1742
1785
  /**
1743
- * Stacks 2.0 Blockchain API
1744
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1786
+ * Stacks Blockchain API
1787
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1745
1788
  *
1746
1789
  * The version of the OpenAPI document: STACKS_API_VERSION
1747
1790
  *
@@ -1824,8 +1867,8 @@
1824
1867
  /* eslint-disable */
1825
1868
 
1826
1869
  /**
1827
- * Stacks 2.0 Blockchain API
1828
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1870
+ * Stacks Blockchain API
1871
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1829
1872
  *
1830
1873
  * The version of the OpenAPI document: STACKS_API_VERSION
1831
1874
  *
@@ -1906,8 +1949,8 @@
1906
1949
  /* eslint-disable */
1907
1950
 
1908
1951
  /**
1909
- * Stacks 2.0 Blockchain API
1910
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1952
+ * Stacks Blockchain API
1953
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1911
1954
  *
1912
1955
  * The version of the OpenAPI document: STACKS_API_VERSION
1913
1956
  *
@@ -1949,8 +1992,8 @@
1949
1992
  /* eslint-disable */
1950
1993
 
1951
1994
  /**
1952
- * Stacks 2.0 Blockchain API
1953
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
1995
+ * Stacks Blockchain API
1996
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
1954
1997
  *
1955
1998
  * The version of the OpenAPI document: STACKS_API_VERSION
1956
1999
  *
@@ -1993,13 +2036,44 @@
1993
2036
  };
1994
2037
  }
1995
2038
 
2039
+ /* tslint:disable */
2040
+ function ContractListResponseFromJSON(json) {
2041
+ return ContractListResponseFromJSONTyped(json);
2042
+ }
2043
+ function ContractListResponseFromJSONTyped(json, ignoreDiscriminator) {
2044
+ if (json === undefined || json === null) {
2045
+ return json;
2046
+ }
2047
+
2048
+ return {
2049
+ 'limit': json['limit'],
2050
+ 'offset': json['offset'],
2051
+ 'results': json['results'].map(SmartContractFromJSON)
2052
+ };
2053
+ }
2054
+ function ContractListResponseToJSON(value) {
2055
+ if (value === undefined) {
2056
+ return undefined;
2057
+ }
2058
+
2059
+ if (value === null) {
2060
+ return null;
2061
+ }
2062
+
2063
+ return {
2064
+ 'limit': value.limit,
2065
+ 'offset': value.offset,
2066
+ 'results': value.results.map(SmartContractToJSON)
2067
+ };
2068
+ }
2069
+
1996
2070
  /* tslint:disable */
1997
2071
 
1998
2072
  /* eslint-disable */
1999
2073
 
2000
2074
  /**
2001
- * Stacks 2.0 Blockchain API
2002
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2075
+ * Stacks Blockchain API
2076
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2003
2077
  *
2004
2078
  * The version of the OpenAPI document: STACKS_API_VERSION
2005
2079
  *
@@ -2043,8 +2117,8 @@
2043
2117
  /* eslint-disable */
2044
2118
 
2045
2119
  /**
2046
- * Stacks 2.0 Blockchain API
2047
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2120
+ * Stacks Blockchain API
2121
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2048
2122
  *
2049
2123
  * The version of the OpenAPI document: STACKS_API_VERSION
2050
2124
  *
@@ -2108,8 +2182,8 @@
2108
2182
  /* eslint-disable */
2109
2183
 
2110
2184
  /**
2111
- * Stacks 2.0 Blockchain API
2112
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2185
+ * Stacks Blockchain API
2186
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2113
2187
  *
2114
2188
  * The version of the OpenAPI document: STACKS_API_VERSION
2115
2189
  *
@@ -2165,8 +2239,8 @@
2165
2239
  /* eslint-disable */
2166
2240
 
2167
2241
  /**
2168
- * Stacks 2.0 Blockchain API
2169
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2242
+ * Stacks Blockchain API
2243
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2170
2244
  *
2171
2245
  * The version of the OpenAPI document: STACKS_API_VERSION
2172
2246
  *
@@ -2206,8 +2280,8 @@
2206
2280
  /* eslint-disable */
2207
2281
 
2208
2282
  /**
2209
- * Stacks 2.0 Blockchain API
2210
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2283
+ * Stacks Blockchain API
2284
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2211
2285
  *
2212
2286
  * The version of the OpenAPI document: STACKS_API_VERSION
2213
2287
  *
@@ -2247,8 +2321,8 @@
2247
2321
  /* eslint-disable */
2248
2322
 
2249
2323
  /**
2250
- * Stacks 2.0 Blockchain API
2251
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2324
+ * Stacks Blockchain API
2325
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2252
2326
  *
2253
2327
  * The version of the OpenAPI document: STACKS_API_VERSION
2254
2328
  *
@@ -2337,8 +2411,8 @@
2337
2411
  /* eslint-disable */
2338
2412
 
2339
2413
  /**
2340
- * Stacks 2.0 Blockchain API
2341
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2414
+ * Stacks Blockchain API
2415
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2342
2416
  *
2343
2417
  * The version of the OpenAPI document: STACKS_API_VERSION
2344
2418
  *
@@ -2378,8 +2452,8 @@
2378
2452
  /* eslint-disable */
2379
2453
 
2380
2454
  /**
2381
- * Stacks 2.0 Blockchain API
2382
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2455
+ * Stacks Blockchain API
2456
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2383
2457
  *
2384
2458
  * The version of the OpenAPI document: STACKS_API_VERSION
2385
2459
  *
@@ -2429,8 +2503,8 @@
2429
2503
  /* eslint-disable */
2430
2504
 
2431
2505
  /**
2432
- * Stacks 2.0 Blockchain API
2433
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2506
+ * Stacks Blockchain API
2507
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2434
2508
  *
2435
2509
  * The version of the OpenAPI document: STACKS_API_VERSION
2436
2510
  *
@@ -2476,8 +2550,8 @@
2476
2550
  /* eslint-disable */
2477
2551
 
2478
2552
  /**
2479
- * Stacks 2.0 Blockchain API
2480
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2553
+ * Stacks Blockchain API
2554
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2481
2555
  *
2482
2556
  * The version of the OpenAPI document: STACKS_API_VERSION
2483
2557
  *
@@ -2623,8 +2697,8 @@
2623
2697
  /* eslint-disable */
2624
2698
 
2625
2699
  /**
2626
- * Stacks 2.0 Blockchain API
2627
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2700
+ * Stacks Blockchain API
2701
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2628
2702
  *
2629
2703
  * The version of the OpenAPI document: STACKS_API_VERSION
2630
2704
  *
@@ -2670,8 +2744,8 @@
2670
2744
  /* eslint-disable */
2671
2745
 
2672
2746
  /**
2673
- * Stacks 2.0 Blockchain API
2674
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2747
+ * Stacks Blockchain API
2748
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2675
2749
  *
2676
2750
  * The version of the OpenAPI document: STACKS_API_VERSION
2677
2751
  *
@@ -2770,8 +2844,8 @@
2770
2844
  /* eslint-disable */
2771
2845
 
2772
2846
  /**
2773
- * Stacks 2.0 Blockchain API
2774
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2847
+ * Stacks Blockchain API
2848
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2775
2849
  *
2776
2850
  * The version of the OpenAPI document: STACKS_API_VERSION
2777
2851
  *
@@ -2840,8 +2914,8 @@
2840
2914
  /* eslint-disable */
2841
2915
 
2842
2916
  /**
2843
- * Stacks 2.0 Blockchain API
2844
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
2917
+ * Stacks Blockchain API
2918
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2845
2919
  *
2846
2920
  * The version of the OpenAPI document: STACKS_API_VERSION
2847
2921
  *
@@ -2949,8 +3023,8 @@
2949
3023
  /* eslint-disable */
2950
3024
 
2951
3025
  /**
2952
- * Stacks 2.0 Blockchain API
2953
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3026
+ * Stacks Blockchain API
3027
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
2954
3028
  *
2955
3029
  * The version of the OpenAPI document: STACKS_API_VERSION
2956
3030
  *
@@ -3035,8 +3109,8 @@
3035
3109
  /* eslint-disable */
3036
3110
 
3037
3111
  /**
3038
- * Stacks 2.0 Blockchain API
3039
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3112
+ * Stacks Blockchain API
3113
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3040
3114
  *
3041
3115
  * The version of the OpenAPI document: STACKS_API_VERSION
3042
3116
  *
@@ -3076,8 +3150,8 @@
3076
3150
  /* eslint-disable */
3077
3151
 
3078
3152
  /**
3079
- * Stacks 2.0 Blockchain API
3080
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3153
+ * Stacks Blockchain API
3154
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3081
3155
  *
3082
3156
  * The version of the OpenAPI document: STACKS_API_VERSION
3083
3157
  *
@@ -3123,8 +3197,8 @@
3123
3197
  /* eslint-disable */
3124
3198
 
3125
3199
  /**
3126
- * Stacks 2.0 Blockchain API
3127
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3200
+ * Stacks Blockchain API
3201
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3128
3202
  *
3129
3203
  * The version of the OpenAPI document: STACKS_API_VERSION
3130
3204
  *
@@ -3292,8 +3366,8 @@
3292
3366
  /* eslint-disable */
3293
3367
 
3294
3368
  /**
3295
- * Stacks 2.0 Blockchain API
3296
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3369
+ * Stacks Blockchain API
3370
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3297
3371
  *
3298
3372
  * The version of the OpenAPI document: STACKS_API_VERSION
3299
3373
  *
@@ -3333,8 +3407,8 @@
3333
3407
  /* eslint-disable */
3334
3408
 
3335
3409
  /**
3336
- * Stacks 2.0 Blockchain API
3337
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3410
+ * Stacks Blockchain API
3411
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3338
3412
  *
3339
3413
  * The version of the OpenAPI document: STACKS_API_VERSION
3340
3414
  *
@@ -3502,8 +3576,8 @@
3502
3576
  /* eslint-disable */
3503
3577
 
3504
3578
  /**
3505
- * Stacks 2.0 Blockchain API
3506
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3579
+ * Stacks Blockchain API
3580
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3507
3581
  *
3508
3582
  * The version of the OpenAPI document: STACKS_API_VERSION
3509
3583
  *
@@ -3762,8 +3836,8 @@
3762
3836
  /* eslint-disable */
3763
3837
 
3764
3838
  /**
3765
- * Stacks 2.0 Blockchain API
3766
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
3839
+ * Stacks Blockchain API
3840
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
3767
3841
  *
3768
3842
  * The version of the OpenAPI document: STACKS_API_VERSION
3769
3843
  *
@@ -4353,8 +4427,8 @@
4353
4427
  /* eslint-disable */
4354
4428
 
4355
4429
  /**
4356
- * Stacks 2.0 Blockchain API
4357
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
4430
+ * Stacks Blockchain API
4431
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4358
4432
  *
4359
4433
  * The version of the OpenAPI document: STACKS_API_VERSION
4360
4434
  *
@@ -4601,8 +4675,8 @@
4601
4675
  /* eslint-disable */
4602
4676
 
4603
4677
  /**
4604
- * Stacks 2.0 Blockchain API
4605
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
4678
+ * Stacks Blockchain API
4679
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4606
4680
  *
4607
4681
  * The version of the OpenAPI document: STACKS_API_VERSION
4608
4682
  *
@@ -4807,8 +4881,8 @@
4807
4881
  /* eslint-disable */
4808
4882
 
4809
4883
  /**
4810
- * Stacks 2.0 Blockchain API
4811
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
4884
+ * Stacks Blockchain API
4885
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4812
4886
  *
4813
4887
  * The version of the OpenAPI document: STACKS_API_VERSION
4814
4888
  *
@@ -4944,8 +5018,8 @@
4944
5018
  /* eslint-disable */
4945
5019
 
4946
5020
  /**
4947
- * Stacks 2.0 Blockchain API
4948
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
5021
+ * Stacks Blockchain API
5022
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4949
5023
  *
4950
5024
  * The version of the OpenAPI document: STACKS_API_VERSION
4951
5025
  *
@@ -4987,8 +5061,8 @@
4987
5061
  /* eslint-disable */
4988
5062
 
4989
5063
  /**
4990
- * Stacks 2.0 Blockchain API
4991
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
5064
+ * Stacks Blockchain API
5065
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4992
5066
  *
4993
5067
  * The version of the OpenAPI document: STACKS_API_VERSION
4994
5068
  *
@@ -5316,8 +5390,57 @@
5316
5390
  /* eslint-disable */
5317
5391
 
5318
5392
  /**
5319
- * Stacks 2.0 Blockchain API
5320
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
5393
+ * Stacks Blockchain API
5394
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5395
+ *
5396
+ * The version of the OpenAPI document: STACKS_API_VERSION
5397
+ *
5398
+ *
5399
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5400
+ * https://openapi-generator.tech
5401
+ * Do not edit the class manually.
5402
+ */
5403
+ function SmartContractFromJSON(json) {
5404
+ return SmartContractFromJSONTyped(json);
5405
+ }
5406
+ function SmartContractFromJSONTyped(json, ignoreDiscriminator) {
5407
+ if (json === undefined || json === null) {
5408
+ return json;
5409
+ }
5410
+
5411
+ return {
5412
+ 'tx_id': json['tx_id'],
5413
+ 'canonical': json['canonical'],
5414
+ 'block_height': json['block_height'],
5415
+ 'source_code': json['source_code'],
5416
+ 'abi': json['abi']
5417
+ };
5418
+ }
5419
+ function SmartContractToJSON(value) {
5420
+ if (value === undefined) {
5421
+ return undefined;
5422
+ }
5423
+
5424
+ if (value === null) {
5425
+ return null;
5426
+ }
5427
+
5428
+ return {
5429
+ 'tx_id': value.tx_id,
5430
+ 'canonical': value.canonical,
5431
+ 'block_height': value.block_height,
5432
+ 'source_code': value.source_code,
5433
+ 'abi': value.abi
5434
+ };
5435
+ }
5436
+
5437
+ /* tslint:disable */
5438
+
5439
+ /* eslint-disable */
5440
+
5441
+ /**
5442
+ * Stacks Blockchain API
5443
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5321
5444
  *
5322
5445
  * The version of the OpenAPI document: STACKS_API_VERSION
5323
5446
  *
@@ -5357,8 +5480,8 @@
5357
5480
  /* eslint-disable */
5358
5481
 
5359
5482
  /**
5360
- * Stacks 2.0 Blockchain API
5361
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
5483
+ * Stacks Blockchain API
5484
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5362
5485
  *
5363
5486
  * The version of the OpenAPI document: STACKS_API_VERSION
5364
5487
  *
@@ -5404,8 +5527,8 @@
5404
5527
  /* eslint-disable */
5405
5528
 
5406
5529
  /**
5407
- * Stacks 2.0 Blockchain API
5408
- * This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. <a href=\"collection.json\" download=\"collection.json\">Download Postman collection</a>
5530
+ * Stacks Blockchain API
5531
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5409
5532
  *
5410
5533
  * The version of the OpenAPI document: STACKS_API_VERSION
5411
5534
  *
@@ -5456,6 +5579,7 @@
5456
5579
  var _proto = AccountsApi.prototype;
5457
5580
 
5458
5581
  /**
5582
+ * Retrieves a list of all assets events associated with an account or a Contract Identifier. This includes Transfers, Mints.
5459
5583
  * Get account assets
5460
5584
  */
5461
5585
  _proto.getAccountAssetsRaw = function getAccountAssetsRaw(requestParameters, initOverrides) {
@@ -5480,6 +5604,10 @@
5480
5604
  queryParameters['unanchored'] = requestParameters.unanchored;
5481
5605
  }
5482
5606
 
5607
+ if (requestParameters.untilBlock !== undefined) {
5608
+ queryParameters['until_block'] = requestParameters.untilBlock;
5609
+ }
5610
+
5483
5611
  var headerParameters = {};
5484
5612
  return Promise.resolve(_this2.request({
5485
5613
  path: "/extended/v1/address/{principal}/assets".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5496,6 +5624,7 @@
5496
5624
  }
5497
5625
  }
5498
5626
  /**
5627
+ * Retrieves a list of all assets events associated with an account or a Contract Identifier. This includes Transfers, Mints.
5499
5628
  * Get account assets
5500
5629
  */
5501
5630
  ;
@@ -5512,6 +5641,7 @@
5512
5641
  }
5513
5642
  }
5514
5643
  /**
5644
+ * Retrieves total account balance information for a given Address or Contract Identifier. This includes the balances of STX Tokens, Fungible Tokens and Non-Fungible Tokens for the account.
5515
5645
  * Get account balances
5516
5646
  */
5517
5647
  ;
@@ -5530,6 +5660,10 @@
5530
5660
  queryParameters['unanchored'] = requestParameters.unanchored;
5531
5661
  }
5532
5662
 
5663
+ if (requestParameters.untilBlock !== undefined) {
5664
+ queryParameters['until_block'] = requestParameters.untilBlock;
5665
+ }
5666
+
5533
5667
  var headerParameters = {};
5534
5668
  return Promise.resolve(_this6.request({
5535
5669
  path: "/extended/v1/address/{principal}/balances".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5546,6 +5680,7 @@
5546
5680
  }
5547
5681
  }
5548
5682
  /**
5683
+ * Retrieves total account balance information for a given Address or Contract Identifier. This includes the balances of STX Tokens, Fungible Tokens and Non-Fungible Tokens for the account.
5549
5684
  * Get account balances
5550
5685
  */
5551
5686
  ;
@@ -5562,7 +5697,7 @@
5562
5697
  }
5563
5698
  }
5564
5699
  /**
5565
- * Get a list of STX transfers with memos to the given principal. This includes regular transfers from a stx-transfer transaction type, and transfers from contract-call transactions a the `send-many-memo` bulk sending contract.
5700
+ * Retrieves a list of STX transfers with memos to the given principal. This includes regular transfers from a stx-transfer transaction type, and transfers from contract-call transactions a the `send-many-memo` bulk sending contract.
5566
5701
  * Get inbound STX transfers
5567
5702
  */
5568
5703
  ;
@@ -5593,6 +5728,10 @@
5593
5728
  queryParameters['unanchored'] = requestParameters.unanchored;
5594
5729
  }
5595
5730
 
5731
+ if (requestParameters.untilBlock !== undefined) {
5732
+ queryParameters['until_block'] = requestParameters.untilBlock;
5733
+ }
5734
+
5596
5735
  var headerParameters = {};
5597
5736
  return Promise.resolve(_this10.request({
5598
5737
  path: "/extended/v1/address/{principal}/stx_inbound".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5609,7 +5748,7 @@
5609
5748
  }
5610
5749
  }
5611
5750
  /**
5612
- * Get a list of STX transfers with memos to the given principal. This includes regular transfers from a stx-transfer transaction type, and transfers from contract-call transactions a the `send-many-memo` bulk sending contract.
5751
+ * Retrieves a list of STX transfers with memos to the given principal. This includes regular transfers from a stx-transfer transaction type, and transfers from contract-call transactions a the `send-many-memo` bulk sending contract.
5613
5752
  * Get inbound STX transfers
5614
5753
  */
5615
5754
  ;
@@ -5626,7 +5765,7 @@
5626
5765
  }
5627
5766
  }
5628
5767
  /**
5629
- * Get the account data for the provided principal Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is a unsigned 64-bit integer, and the proofs are provided as hex strings. For non-existent accounts, this does not 404, rather it returns an object with balance and nonce of 0.
5768
+ * Retrieves the account data for a given Account or a Contract Identifier Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is an unsigned 64-bit integer, and the proofs are provided as hex strings. For non-existent accounts, this does not return a 404 error, rather it returns an object with balance and nonce of 0.
5630
5769
  * Get account info
5631
5770
  */
5632
5771
  ;
@@ -5665,7 +5804,7 @@
5665
5804
  }
5666
5805
  }
5667
5806
  /**
5668
- * Get the account data for the provided principal Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is a unsigned 64-bit integer, and the proofs are provided as hex strings. For non-existent accounts, this does not 404, rather it returns an object with balance and nonce of 0.
5807
+ * Retrieves the account data for a given Account or a Contract Identifier Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is an unsigned 64-bit integer, and the proofs are provided as hex strings. For non-existent accounts, this does not return a 404 error, rather it returns an object with balance and nonce of 0.
5669
5808
  * Get account info
5670
5809
  */
5671
5810
  ;
@@ -5682,7 +5821,7 @@
5682
5821
  }
5683
5822
  }
5684
5823
  /**
5685
- * Get list of all nfts owned by an address, contains the clarity value of the identifier of the nft
5824
+ * Retrieves a list of all nfts owned by an address, contains the clarity value of the identifier of the nft
5686
5825
  * Get nft events
5687
5826
  */
5688
5827
  ;
@@ -5709,6 +5848,10 @@
5709
5848
  queryParameters['unanchored'] = requestParameters.unanchored;
5710
5849
  }
5711
5850
 
5851
+ if (requestParameters.untilBlock !== undefined) {
5852
+ queryParameters['until_block'] = requestParameters.untilBlock;
5853
+ }
5854
+
5712
5855
  var headerParameters = {};
5713
5856
  return Promise.resolve(_this18.request({
5714
5857
  path: "/extended/v1/address/{principal}/nft_events".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5725,7 +5868,7 @@
5725
5868
  }
5726
5869
  }
5727
5870
  /**
5728
- * Get list of all nfts owned by an address, contains the clarity value of the identifier of the nft
5871
+ * Retrieves a list of all nfts owned by an address, contains the clarity value of the identifier of the nft
5729
5872
  * Get nft events
5730
5873
  */
5731
5874
  ;
@@ -5742,7 +5885,8 @@
5742
5885
  }
5743
5886
  }
5744
5887
  /**
5745
- * Get the latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions.
5888
+ * Retrieves the latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions.
5889
+ * Get the latest nonce used by an account
5746
5890
  */
5747
5891
  ;
5748
5892
 
@@ -5771,7 +5915,8 @@
5771
5915
  }
5772
5916
  }
5773
5917
  /**
5774
- * Get the latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions.
5918
+ * Retrieves the latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions.
5919
+ * Get the latest nonce used by an account
5775
5920
  */
5776
5921
  ;
5777
5922
 
@@ -5787,6 +5932,7 @@
5787
5932
  }
5788
5933
  }
5789
5934
  /**
5935
+ * Retrieves STX token balance for a given Address or Contract Identifier.
5790
5936
  * Get account STX balance
5791
5937
  */
5792
5938
  ;
@@ -5805,6 +5951,10 @@
5805
5951
  queryParameters['unanchored'] = requestParameters.unanchored;
5806
5952
  }
5807
5953
 
5954
+ if (requestParameters.untilBlock !== undefined) {
5955
+ queryParameters['until_block'] = requestParameters.untilBlock;
5956
+ }
5957
+
5808
5958
  var headerParameters = {};
5809
5959
  return Promise.resolve(_this26.request({
5810
5960
  path: "/extended/v1/address/{principal}/stx".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5819,6 +5969,7 @@
5819
5969
  }
5820
5970
  }
5821
5971
  /**
5972
+ * Retrieves STX token balance for a given Address or Contract Identifier.
5822
5973
  * Get account STX balance
5823
5974
  */
5824
5975
  ;
@@ -5835,6 +5986,7 @@
5835
5986
  }
5836
5987
  }
5837
5988
  /**
5989
+ * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types).
5838
5990
  * Get account transactions
5839
5991
  */
5840
5992
  ;
@@ -5865,6 +6017,10 @@
5865
6017
  queryParameters['unanchored'] = requestParameters.unanchored;
5866
6018
  }
5867
6019
 
6020
+ if (requestParameters.untilBlock !== undefined) {
6021
+ queryParameters['until_block'] = requestParameters.untilBlock;
6022
+ }
6023
+
5868
6024
  var headerParameters = {};
5869
6025
  return Promise.resolve(_this30.request({
5870
6026
  path: "/extended/v1/address/{principal}/transactions".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5881,6 +6037,7 @@
5881
6037
  }
5882
6038
  }
5883
6039
  /**
6040
+ * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types).
5884
6041
  * Get account transactions
5885
6042
  */
5886
6043
  ;
@@ -5897,6 +6054,7 @@
5897
6054
  }
5898
6055
  }
5899
6056
  /**
6057
+ * Retrieve all transactions for an account or contract identifier including STX transfers for each transaction.
5900
6058
  * Get account transactions including STX transfers for each transaction.
5901
6059
  */
5902
6060
  ;
@@ -5927,6 +6085,10 @@
5927
6085
  queryParameters['unanchored'] = requestParameters.unanchored;
5928
6086
  }
5929
6087
 
6088
+ if (requestParameters.untilBlock !== undefined) {
6089
+ queryParameters['until_block'] = requestParameters.untilBlock;
6090
+ }
6091
+
5930
6092
  var headerParameters = {};
5931
6093
  return Promise.resolve(_this34.request({
5932
6094
  path: "/extended/v1/address/{principal}/transactions_with_transfers".replace("{" + "principal" + "}", encodeURIComponent(String(requestParameters.principal))),
@@ -5943,6 +6105,7 @@
5943
6105
  }
5944
6106
  }
5945
6107
  /**
6108
+ * Retrieve all transactions for an account or contract identifier including STX transfers for each transaction.
5946
6109
  * Get account transactions including STX transfers for each transaction.
5947
6110
  */
5948
6111
  ;
@@ -5959,6 +6122,7 @@
5959
6122
  }
5960
6123
  }
5961
6124
  /**
6125
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
5962
6126
  * Get account transaction information for specific transaction
5963
6127
  */
5964
6128
  ;
@@ -5992,6 +6156,7 @@
5992
6156
  }
5993
6157
  }
5994
6158
  /**
6159
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
5995
6160
  * Get account transaction information for specific transaction
5996
6161
  */
5997
6162
  ;
@@ -6015,52 +6180,54 @@
6015
6180
  *
6016
6181
  */
6017
6182
 
6018
- var BNSApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6019
- _inheritsLoose(BNSApi, _runtime$BaseAPI);
6183
+ var BlocksApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6184
+ _inheritsLoose(BlocksApi, _runtime$BaseAPI);
6020
6185
 
6021
- function BNSApi() {
6186
+ function BlocksApi() {
6022
6187
  return _runtime$BaseAPI.apply(this, arguments) || this;
6023
6188
  }
6024
6189
 
6025
- var _proto = BNSApi.prototype;
6190
+ var _proto = BlocksApi.prototype;
6026
6191
 
6027
6192
  /**
6028
- * Fetch a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.
6029
- * Fetch Zone File
6193
+ * Retrieves block details of a specific block for a given burnchain block hash
6194
+ * Get block by burnchain block hash
6030
6195
  */
6031
- _proto.fetchZoneFileRaw = function fetchZoneFileRaw(requestParameters, initOverrides) {
6196
+ _proto.getBlockByBurnBlockHashRaw = function getBlockByBurnBlockHashRaw(requestParameters, initOverrides) {
6032
6197
  try {
6033
6198
  var _this2 = this;
6034
6199
 
6035
- if (requestParameters.name === null || requestParameters.name === undefined) {
6036
- throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling fetchZoneFile.');
6200
+ if (requestParameters.burnBlockHash === null || requestParameters.burnBlockHash === undefined) {
6201
+ throw new RequiredError('burnBlockHash', 'Required parameter requestParameters.burnBlockHash was null or undefined when calling getBlockByBurnBlockHash.');
6037
6202
  }
6038
6203
 
6039
6204
  var queryParameters = {};
6040
6205
  var headerParameters = {};
6041
6206
  return Promise.resolve(_this2.request({
6042
- path: "/v1/names/{name}/zonefile".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
6207
+ path: "/extended/v1/block/by_burn_block_hash/{burn_block_hash}".replace("{" + "burn_block_hash" + "}", encodeURIComponent(String(requestParameters.burnBlockHash))),
6043
6208
  method: 'GET',
6044
6209
  headers: headerParameters,
6045
6210
  query: queryParameters
6046
6211
  }, initOverrides)).then(function (response) {
6047
- return new JSONApiResponse(response);
6212
+ return new JSONApiResponse(response, function (jsonValue) {
6213
+ return BlockFromJSON(jsonValue);
6214
+ });
6048
6215
  });
6049
6216
  } catch (e) {
6050
6217
  return Promise.reject(e);
6051
6218
  }
6052
6219
  }
6053
6220
  /**
6054
- * Fetch a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.
6055
- * Fetch Zone File
6221
+ * Retrieves block details of a specific block for a given burnchain block hash
6222
+ * Get block by burnchain block hash
6056
6223
  */
6057
6224
  ;
6058
6225
 
6059
- _proto.fetchZoneFile = function fetchZoneFile(requestParameters, initOverrides) {
6226
+ _proto.getBlockByBurnBlockHash = function getBlockByBurnBlockHash(requestParameters, initOverrides) {
6060
6227
  try {
6061
6228
  var _this4 = this;
6062
6229
 
6063
- return Promise.resolve(_this4.fetchZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
6230
+ return Promise.resolve(_this4.getBlockByBurnBlockHashRaw(requestParameters, initOverrides)).then(function (response) {
6064
6231
  return Promise.resolve(response.value());
6065
6232
  });
6066
6233
  } catch (e) {
@@ -6068,49 +6235,46 @@
6068
6235
  }
6069
6236
  }
6070
6237
  /**
6071
- * Fetch a list of all names known to the node.
6072
- * Get All Names
6238
+ * Retrieves block details of a specific block for a given burn chain height
6239
+ * Get block by burnchain height
6073
6240
  */
6074
6241
  ;
6075
6242
 
6076
- _proto.getAllNamesRaw = function getAllNamesRaw(requestParameters, initOverrides) {
6243
+ _proto.getBlockByBurnBlockHeightRaw = function getBlockByBurnBlockHeightRaw(requestParameters, initOverrides) {
6077
6244
  try {
6078
6245
  var _this6 = this;
6079
6246
 
6080
- if (requestParameters.page === null || requestParameters.page === undefined) {
6081
- throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllNames.');
6247
+ if (requestParameters.burnBlockHeight === null || requestParameters.burnBlockHeight === undefined) {
6248
+ throw new RequiredError('burnBlockHeight', 'Required parameter requestParameters.burnBlockHeight was null or undefined when calling getBlockByBurnBlockHeight.');
6082
6249
  }
6083
6250
 
6084
6251
  var queryParameters = {};
6085
-
6086
- if (requestParameters.page !== undefined) {
6087
- queryParameters['page'] = requestParameters.page;
6088
- }
6089
-
6090
6252
  var headerParameters = {};
6091
6253
  return Promise.resolve(_this6.request({
6092
- path: "/v1/names",
6254
+ path: "/extended/v1/block/by_burn_block_height/{burn_block_height}".replace("{" + "burn_block_height" + "}", encodeURIComponent(String(requestParameters.burnBlockHeight))),
6093
6255
  method: 'GET',
6094
6256
  headers: headerParameters,
6095
6257
  query: queryParameters
6096
6258
  }, initOverrides)).then(function (response) {
6097
- return new JSONApiResponse(response);
6259
+ return new JSONApiResponse(response, function (jsonValue) {
6260
+ return BlockFromJSON(jsonValue);
6261
+ });
6098
6262
  });
6099
6263
  } catch (e) {
6100
6264
  return Promise.reject(e);
6101
6265
  }
6102
6266
  }
6103
6267
  /**
6104
- * Fetch a list of all names known to the node.
6105
- * Get All Names
6268
+ * Retrieves block details of a specific block for a given burn chain height
6269
+ * Get block by burnchain height
6106
6270
  */
6107
6271
  ;
6108
6272
 
6109
- _proto.getAllNames = function getAllNames(requestParameters, initOverrides) {
6273
+ _proto.getBlockByBurnBlockHeight = function getBlockByBurnBlockHeight(requestParameters, initOverrides) {
6110
6274
  try {
6111
6275
  var _this8 = this;
6112
6276
 
6113
- return Promise.resolve(_this8.getAllNamesRaw(requestParameters, initOverrides)).then(function (response) {
6277
+ return Promise.resolve(_this8.getBlockByBurnBlockHeightRaw(requestParameters, initOverrides)).then(function (response) {
6114
6278
  return Promise.resolve(response.value());
6115
6279
  });
6116
6280
  } catch (e) {
@@ -6118,25 +6282,29 @@
6118
6282
  }
6119
6283
  }
6120
6284
  /**
6121
- * Fetch a list of all namespaces known to the node.
6122
- * Get All Namespaces
6285
+ * Retrieves block details of a specific block for a given chain height
6286
+ * Get block by hash
6123
6287
  */
6124
6288
  ;
6125
6289
 
6126
- _proto.getAllNamespacesRaw = function getAllNamespacesRaw(initOverrides) {
6290
+ _proto.getBlockByHashRaw = function getBlockByHashRaw(requestParameters, initOverrides) {
6127
6291
  try {
6128
6292
  var _this10 = this;
6129
6293
 
6294
+ if (requestParameters.hash === null || requestParameters.hash === undefined) {
6295
+ throw new RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getBlockByHash.');
6296
+ }
6297
+
6130
6298
  var queryParameters = {};
6131
6299
  var headerParameters = {};
6132
6300
  return Promise.resolve(_this10.request({
6133
- path: "/v1/namespaces",
6301
+ path: "/extended/v1/block/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
6134
6302
  method: 'GET',
6135
6303
  headers: headerParameters,
6136
6304
  query: queryParameters
6137
6305
  }, initOverrides)).then(function (response) {
6138
6306
  return new JSONApiResponse(response, function (jsonValue) {
6139
- return BnsGetAllNamespacesResponseFromJSON(jsonValue);
6307
+ return BlockFromJSON(jsonValue);
6140
6308
  });
6141
6309
  });
6142
6310
  } catch (e) {
@@ -6144,16 +6312,16 @@
6144
6312
  }
6145
6313
  }
6146
6314
  /**
6147
- * Fetch a list of all namespaces known to the node.
6148
- * Get All Namespaces
6315
+ * Retrieves block details of a specific block for a given chain height
6316
+ * Get block by hash
6149
6317
  */
6150
6318
  ;
6151
6319
 
6152
- _proto.getAllNamespaces = function getAllNamespaces(initOverrides) {
6320
+ _proto.getBlockByHash = function getBlockByHash(requestParameters, initOverrides) {
6153
6321
  try {
6154
6322
  var _this12 = this;
6155
6323
 
6156
- return Promise.resolve(_this12.getAllNamespacesRaw(initOverrides)).then(function (response) {
6324
+ return Promise.resolve(_this12.getBlockByHashRaw(requestParameters, initOverrides)).then(function (response) {
6157
6325
  return Promise.resolve(response.value());
6158
6326
  });
6159
6327
  } catch (e) {
@@ -6161,49 +6329,46 @@
6161
6329
  }
6162
6330
  }
6163
6331
  /**
6164
- * Fetch a list of all subdomains known to the node.
6165
- * Get All Subdomains
6332
+ * Retrieves block details of a specific block at a given block height
6333
+ * Get block by height
6166
6334
  */
6167
6335
  ;
6168
6336
 
6169
- _proto.getAllSubdomainsRaw = function getAllSubdomainsRaw(requestParameters, initOverrides) {
6337
+ _proto.getBlockByHeightRaw = function getBlockByHeightRaw(requestParameters, initOverrides) {
6170
6338
  try {
6171
6339
  var _this14 = this;
6172
6340
 
6173
- if (requestParameters.page === null || requestParameters.page === undefined) {
6174
- throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllSubdomains.');
6341
+ if (requestParameters.height === null || requestParameters.height === undefined) {
6342
+ throw new RequiredError('height', 'Required parameter requestParameters.height was null or undefined when calling getBlockByHeight.');
6175
6343
  }
6176
6344
 
6177
6345
  var queryParameters = {};
6178
-
6179
- if (requestParameters.page !== undefined) {
6180
- queryParameters['page'] = requestParameters.page;
6181
- }
6182
-
6183
6346
  var headerParameters = {};
6184
6347
  return Promise.resolve(_this14.request({
6185
- path: "/v1/subdomains",
6348
+ path: "/extended/v1/block/by_height/{height}".replace("{" + "height" + "}", encodeURIComponent(String(requestParameters.height))),
6186
6349
  method: 'GET',
6187
6350
  headers: headerParameters,
6188
6351
  query: queryParameters
6189
6352
  }, initOverrides)).then(function (response) {
6190
- return new JSONApiResponse(response);
6353
+ return new JSONApiResponse(response, function (jsonValue) {
6354
+ return BlockFromJSON(jsonValue);
6355
+ });
6191
6356
  });
6192
6357
  } catch (e) {
6193
6358
  return Promise.reject(e);
6194
6359
  }
6195
6360
  }
6196
6361
  /**
6197
- * Fetch a list of all subdomains known to the node.
6198
- * Get All Subdomains
6362
+ * Retrieves block details of a specific block at a given block height
6363
+ * Get block by height
6199
6364
  */
6200
6365
  ;
6201
6366
 
6202
- _proto.getAllSubdomains = function getAllSubdomains(requestParameters, initOverrides) {
6367
+ _proto.getBlockByHeight = function getBlockByHeight(requestParameters, initOverrides) {
6203
6368
  try {
6204
6369
  var _this16 = this;
6205
6370
 
6206
- return Promise.resolve(_this16.getAllSubdomainsRaw(requestParameters, initOverrides)).then(function (response) {
6371
+ return Promise.resolve(_this16.getBlockByHeightRaw(requestParameters, initOverrides)).then(function (response) {
6207
6372
  return Promise.resolve(response.value());
6208
6373
  });
6209
6374
  } catch (e) {
@@ -6211,102 +6376,118 @@
6211
6376
  }
6212
6377
  }
6213
6378
  /**
6214
- * Fetches the historical zonefile specified by the username and zone hash.
6215
- * Get Historical Zone File
6379
+ * Retrieves a list of recently mined blocks
6380
+ * Get recent blocks
6216
6381
  */
6217
6382
  ;
6218
6383
 
6219
- _proto.getHistoricalZoneFileRaw = function getHistoricalZoneFileRaw(requestParameters, initOverrides) {
6384
+ _proto.getBlockListRaw = function getBlockListRaw(requestParameters, initOverrides) {
6220
6385
  try {
6221
6386
  var _this18 = this;
6222
6387
 
6223
- if (requestParameters.name === null || requestParameters.name === undefined) {
6224
- throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getHistoricalZoneFile.');
6388
+ var queryParameters = {};
6389
+
6390
+ if (requestParameters.limit !== undefined) {
6391
+ queryParameters['limit'] = requestParameters.limit;
6225
6392
  }
6226
6393
 
6227
- if (requestParameters.zoneFileHash === null || requestParameters.zoneFileHash === undefined) {
6228
- throw new RequiredError('zoneFileHash', 'Required parameter requestParameters.zoneFileHash was null or undefined when calling getHistoricalZoneFile.');
6394
+ if (requestParameters.offset !== undefined) {
6395
+ queryParameters['offset'] = requestParameters.offset;
6229
6396
  }
6230
6397
 
6231
- var queryParameters = {};
6232
6398
  var headerParameters = {};
6233
6399
  return Promise.resolve(_this18.request({
6234
- path: "/v1/names/{name}/zonefile/{zoneFileHash}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))).replace("{" + "zoneFileHash" + "}", encodeURIComponent(String(requestParameters.zoneFileHash))),
6400
+ path: "/extended/v1/block",
6235
6401
  method: 'GET',
6236
6402
  headers: headerParameters,
6237
6403
  query: queryParameters
6238
6404
  }, initOverrides)).then(function (response) {
6239
- return new JSONApiResponse(response);
6405
+ return new JSONApiResponse(response, function (jsonValue) {
6406
+ return BlockListResponseFromJSON(jsonValue);
6407
+ });
6240
6408
  });
6241
6409
  } catch (e) {
6242
6410
  return Promise.reject(e);
6243
6411
  }
6244
6412
  }
6245
6413
  /**
6246
- * Fetches the historical zonefile specified by the username and zone hash.
6247
- * Get Historical Zone File
6414
+ * Retrieves a list of recently mined blocks
6415
+ * Get recent blocks
6248
6416
  */
6249
6417
  ;
6250
6418
 
6251
- _proto.getHistoricalZoneFile = function getHistoricalZoneFile(requestParameters, initOverrides) {
6419
+ _proto.getBlockList = function getBlockList(requestParameters, initOverrides) {
6252
6420
  try {
6253
6421
  var _this20 = this;
6254
6422
 
6255
- return Promise.resolve(_this20.getHistoricalZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
6423
+ return Promise.resolve(_this20.getBlockListRaw(requestParameters, initOverrides)).then(function (response) {
6256
6424
  return Promise.resolve(response.value());
6257
6425
  });
6258
6426
  } catch (e) {
6259
6427
  return Promise.reject(e);
6260
6428
  }
6429
+ };
6430
+
6431
+ return BlocksApi;
6432
+ }(BaseAPI);
6433
+
6434
+ /**
6435
+ *
6436
+ */
6437
+
6438
+ var FaucetsApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6439
+ _inheritsLoose(FaucetsApi, _runtime$BaseAPI);
6440
+
6441
+ function FaucetsApi() {
6442
+ return _runtime$BaseAPI.apply(this, arguments) || this;
6261
6443
  }
6444
+
6445
+ var _proto = FaucetsApi.prototype;
6446
+
6262
6447
  /**
6263
- * Get a history of all blockchain records of a registered name.
6264
- * Get Name History
6448
+ * Retrieves BTC tokens into your TestNet BTC address.
6449
+ * Get BTC tokens
6265
6450
  */
6266
- ;
6267
-
6268
- _proto.getNameHistoryRaw = function getNameHistoryRaw(requestParameters, initOverrides) {
6451
+ _proto.runFaucetBtcRaw = function runFaucetBtcRaw(requestParameters, initOverrides) {
6269
6452
  try {
6270
- var _this22 = this;
6453
+ var _this2 = this;
6271
6454
 
6272
- if (requestParameters.name === null || requestParameters.name === undefined) {
6273
- throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameHistory.');
6274
- }
6275
-
6276
- if (requestParameters.page === null || requestParameters.page === undefined) {
6277
- throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getNameHistory.');
6455
+ if (requestParameters.address === null || requestParameters.address === undefined) {
6456
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling runFaucetBtc.');
6278
6457
  }
6279
6458
 
6280
6459
  var queryParameters = {};
6281
6460
 
6282
- if (requestParameters.page !== undefined) {
6283
- queryParameters['page'] = requestParameters.page;
6461
+ if (requestParameters.address !== undefined) {
6462
+ queryParameters['address'] = requestParameters.address;
6284
6463
  }
6285
6464
 
6286
6465
  var headerParameters = {};
6287
- return Promise.resolve(_this22.request({
6288
- path: "/v1/names/{name}/history".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
6289
- method: 'GET',
6466
+ return Promise.resolve(_this2.request({
6467
+ path: "/extended/v1/faucets/btc",
6468
+ method: 'POST',
6290
6469
  headers: headerParameters,
6291
6470
  query: queryParameters
6292
6471
  }, initOverrides)).then(function (response) {
6293
- return new JSONApiResponse(response);
6472
+ return new JSONApiResponse(response, function (jsonValue) {
6473
+ return RunFaucetResponseFromJSON(jsonValue);
6474
+ });
6294
6475
  });
6295
6476
  } catch (e) {
6296
6477
  return Promise.reject(e);
6297
6478
  }
6298
6479
  }
6299
6480
  /**
6300
- * Get a history of all blockchain records of a registered name.
6301
- * Get Name History
6481
+ * Retrieves BTC tokens into your TestNet BTC address.
6482
+ * Get BTC tokens
6302
6483
  */
6303
6484
  ;
6304
6485
 
6305
- _proto.getNameHistory = function getNameHistory(requestParameters, initOverrides) {
6486
+ _proto.runFaucetBtc = function runFaucetBtc(requestParameters, initOverrides) {
6306
6487
  try {
6307
- var _this24 = this;
6488
+ var _this4 = this;
6308
6489
 
6309
- return Promise.resolve(_this24.getNameHistoryRaw(requestParameters, initOverrides)).then(function (response) {
6490
+ return Promise.resolve(_this4.runFaucetBtcRaw(requestParameters, initOverrides)).then(function (response) {
6310
6491
  return Promise.resolve(response.value());
6311
6492
  });
6312
6493
  } catch (e) {
@@ -6314,28 +6495,38 @@
6314
6495
  }
6315
6496
  }
6316
6497
  /**
6317
- * Get Name Details
6498
+ * Retrieves STX tokens into you TestNet STX address.
6499
+ * Get STX tokens
6318
6500
  */
6319
6501
  ;
6320
6502
 
6321
- _proto.getNameInfoRaw = function getNameInfoRaw(requestParameters, initOverrides) {
6503
+ _proto.runFaucetStxRaw = function runFaucetStxRaw(requestParameters, initOverrides) {
6322
6504
  try {
6323
- var _this26 = this;
6505
+ var _this6 = this;
6324
6506
 
6325
- if (requestParameters.name === null || requestParameters.name === undefined) {
6326
- throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameInfo.');
6507
+ if (requestParameters.address === null || requestParameters.address === undefined) {
6508
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling runFaucetStx.');
6327
6509
  }
6328
6510
 
6329
6511
  var queryParameters = {};
6512
+
6513
+ if (requestParameters.address !== undefined) {
6514
+ queryParameters['address'] = requestParameters.address;
6515
+ }
6516
+
6517
+ if (requestParameters.stacking !== undefined) {
6518
+ queryParameters['stacking'] = requestParameters.stacking;
6519
+ }
6520
+
6330
6521
  var headerParameters = {};
6331
- return Promise.resolve(_this26.request({
6332
- path: "/v1/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
6333
- method: 'GET',
6522
+ return Promise.resolve(_this6.request({
6523
+ path: "/extended/v1/faucets/stx",
6524
+ method: 'POST',
6334
6525
  headers: headerParameters,
6335
6526
  query: queryParameters
6336
6527
  }, initOverrides)).then(function (response) {
6337
6528
  return new JSONApiResponse(response, function (jsonValue) {
6338
- return BnsGetNameInfoResponseFromJSON(jsonValue);
6529
+ return RunFaucetResponseFromJSON(jsonValue);
6339
6530
  });
6340
6531
  });
6341
6532
  } catch (e) {
@@ -6343,96 +6534,63 @@
6343
6534
  }
6344
6535
  }
6345
6536
  /**
6346
- * Get Name Details
6537
+ * Retrieves STX tokens into you TestNet STX address.
6538
+ * Get STX tokens
6347
6539
  */
6348
6540
  ;
6349
6541
 
6350
- _proto.getNameInfo = function getNameInfo(requestParameters, initOverrides) {
6542
+ _proto.runFaucetStx = function runFaucetStx(requestParameters, initOverrides) {
6351
6543
  try {
6352
- var _this28 = this;
6544
+ var _this8 = this;
6353
6545
 
6354
- return Promise.resolve(_this28.getNameInfoRaw(requestParameters, initOverrides)).then(function (response) {
6546
+ return Promise.resolve(_this8.runFaucetStxRaw(requestParameters, initOverrides)).then(function (response) {
6355
6547
  return Promise.resolve(response.value());
6356
6548
  });
6357
6549
  } catch (e) {
6358
6550
  return Promise.reject(e);
6359
6551
  }
6360
- }
6361
- /**
6362
- * Get the price of a name. The `amount` given will be in the smallest possible units of the currency.
6363
- * Get Name Price
6364
- */
6365
- ;
6552
+ };
6366
6553
 
6367
- _proto.getNamePriceRaw = function getNamePriceRaw(requestParameters, initOverrides) {
6368
- try {
6369
- var _this30 = this;
6554
+ return FaucetsApi;
6555
+ }(BaseAPI);
6370
6556
 
6371
- if (requestParameters.name === null || requestParameters.name === undefined) {
6372
- throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNamePrice.');
6373
- }
6557
+ /**
6558
+ *
6559
+ */
6374
6560
 
6375
- var queryParameters = {};
6376
- var headerParameters = {};
6377
- return Promise.resolve(_this30.request({
6378
- path: "/v2/prices/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
6379
- method: 'GET',
6380
- headers: headerParameters,
6381
- query: queryParameters
6382
- }, initOverrides)).then(function (response) {
6383
- return new JSONApiResponse(response, function (jsonValue) {
6384
- return BnsGetNamePriceResponseFromJSON(jsonValue);
6385
- });
6386
- });
6387
- } catch (e) {
6388
- return Promise.reject(e);
6389
- }
6561
+ var FeesApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6562
+ _inheritsLoose(FeesApi, _runtime$BaseAPI);
6563
+
6564
+ function FeesApi() {
6565
+ return _runtime$BaseAPI.apply(this, arguments) || this;
6390
6566
  }
6391
- /**
6392
- * Get the price of a name. The `amount` given will be in the smallest possible units of the currency.
6393
- * Get Name Price
6394
- */
6395
- ;
6396
6567
 
6397
- _proto.getNamePrice = function getNamePrice(requestParameters, initOverrides) {
6398
- try {
6399
- var _this32 = this;
6568
+ var _proto = FeesApi.prototype;
6400
6569
 
6401
- return Promise.resolve(_this32.getNamePriceRaw(requestParameters, initOverrides)).then(function (response) {
6402
- return Promise.resolve(response.value());
6403
- });
6404
- } catch (e) {
6405
- return Promise.reject(e);
6406
- }
6407
- }
6408
6570
  /**
6409
- * Retrieves a list of names owned by the address provided.
6410
- * Get Names Owned by Address
6571
+ * Retrieves estimated fee rate.
6572
+ * fetch fee rate
6411
6573
  */
6412
- ;
6413
-
6414
- _proto.getNamesOwnedByAddressRaw = function getNamesOwnedByAddressRaw(requestParameters, initOverrides) {
6574
+ _proto.fetchFeeRateRaw = function fetchFeeRateRaw(requestParameters, initOverrides) {
6415
6575
  try {
6416
- var _this34 = this;
6417
-
6418
- if (requestParameters.blockchain === null || requestParameters.blockchain === undefined) {
6419
- throw new RequiredError('blockchain', 'Required parameter requestParameters.blockchain was null or undefined when calling getNamesOwnedByAddress.');
6420
- }
6576
+ var _this2 = this;
6421
6577
 
6422
- if (requestParameters.address === null || requestParameters.address === undefined) {
6423
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getNamesOwnedByAddress.');
6578
+ if (requestParameters.feeRateRequest === null || requestParameters.feeRateRequest === undefined) {
6579
+ throw new RequiredError('feeRateRequest', 'Required parameter requestParameters.feeRateRequest was null or undefined when calling fetchFeeRate.');
6424
6580
  }
6425
6581
 
6426
6582
  var queryParameters = {};
6427
6583
  var headerParameters = {};
6428
- return Promise.resolve(_this34.request({
6429
- path: "/v1/addresses/{blockchain}/{address}".replace("{" + "blockchain" + "}", encodeURIComponent(String(requestParameters.blockchain))).replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
6430
- method: 'GET',
6584
+ headerParameters['Content-Type'] = 'application/json';
6585
+ return Promise.resolve(_this2.request({
6586
+ path: "/extended/v1/fee_rate",
6587
+ method: 'POST',
6431
6588
  headers: headerParameters,
6432
- query: queryParameters
6589
+ query: queryParameters,
6590
+ body: FeeRateRequestToJSON(requestParameters.feeRateRequest)
6433
6591
  }, initOverrides)).then(function (response) {
6434
6592
  return new JSONApiResponse(response, function (jsonValue) {
6435
- return BnsNamesOwnByAddressResponseFromJSON(jsonValue);
6593
+ return FeeRateFromJSON(jsonValue);
6436
6594
  });
6437
6595
  });
6438
6596
  } catch (e) {
@@ -6440,16 +6598,16 @@
6440
6598
  }
6441
6599
  }
6442
6600
  /**
6443
- * Retrieves a list of names owned by the address provided.
6444
- * Get Names Owned by Address
6601
+ * Retrieves estimated fee rate.
6602
+ * fetch fee rate
6445
6603
  */
6446
6604
  ;
6447
6605
 
6448
- _proto.getNamesOwnedByAddress = function getNamesOwnedByAddress(requestParameters, initOverrides) {
6606
+ _proto.fetchFeeRate = function fetchFeeRate(requestParameters, initOverrides) {
6449
6607
  try {
6450
- var _this36 = this;
6608
+ var _this4 = this;
6451
6609
 
6452
- return Promise.resolve(_this36.getNamesOwnedByAddressRaw(requestParameters, initOverrides)).then(function (response) {
6610
+ return Promise.resolve(_this4.fetchFeeRateRaw(requestParameters, initOverrides)).then(function (response) {
6453
6611
  return Promise.resolve(response.value());
6454
6612
  });
6455
6613
  } catch (e) {
@@ -6457,32 +6615,19 @@
6457
6615
  }
6458
6616
  }
6459
6617
  /**
6460
- * Fetch a list of names from the namespace.
6461
- * Get Namespace Names
6618
+ * Retrieves an estimated fee rate for STX transfer transactions. This a a fee rate / byte, and is returned as a JSON integer
6619
+ * Get estimated fee
6462
6620
  */
6463
6621
  ;
6464
6622
 
6465
- _proto.getNamespaceNamesRaw = function getNamespaceNamesRaw(requestParameters, initOverrides) {
6623
+ _proto.getFeeTransferRaw = function getFeeTransferRaw(initOverrides) {
6466
6624
  try {
6467
- var _this38 = this;
6468
-
6469
- if (requestParameters.tld === null || requestParameters.tld === undefined) {
6470
- throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespaceNames.');
6471
- }
6472
-
6473
- if (requestParameters.page === null || requestParameters.page === undefined) {
6474
- throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getNamespaceNames.');
6475
- }
6625
+ var _this6 = this;
6476
6626
 
6477
6627
  var queryParameters = {};
6478
-
6479
- if (requestParameters.page !== undefined) {
6480
- queryParameters['page'] = requestParameters.page;
6481
- }
6482
-
6483
6628
  var headerParameters = {};
6484
- return Promise.resolve(_this38.request({
6485
- path: "/v1/namespaces/{tld}/names".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
6629
+ return Promise.resolve(_this6.request({
6630
+ path: "/v2/fees/transfer",
6486
6631
  method: 'GET',
6487
6632
  headers: headerParameters,
6488
6633
  query: queryParameters
@@ -6494,46 +6639,61 @@
6494
6639
  }
6495
6640
  }
6496
6641
  /**
6497
- * Fetch a list of names from the namespace.
6498
- * Get Namespace Names
6642
+ * Retrieves an estimated fee rate for STX transfer transactions. This a a fee rate / byte, and is returned as a JSON integer
6643
+ * Get estimated fee
6499
6644
  */
6500
6645
  ;
6501
6646
 
6502
- _proto.getNamespaceNames = function getNamespaceNames(requestParameters, initOverrides) {
6647
+ _proto.getFeeTransfer = function getFeeTransfer(initOverrides) {
6503
6648
  try {
6504
- var _this40 = this;
6649
+ var _this8 = this;
6505
6650
 
6506
- return Promise.resolve(_this40.getNamespaceNamesRaw(requestParameters, initOverrides)).then(function (response) {
6651
+ return Promise.resolve(_this8.getFeeTransferRaw(initOverrides)).then(function (response) {
6507
6652
  return Promise.resolve(response.value());
6508
6653
  });
6509
6654
  } catch (e) {
6510
6655
  return Promise.reject(e);
6511
6656
  }
6657
+ };
6658
+
6659
+ return FeesApi;
6660
+ }(BaseAPI);
6661
+
6662
+ /**
6663
+ *
6664
+ */
6665
+
6666
+ var FungibleTokensApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6667
+ _inheritsLoose(FungibleTokensApi, _runtime$BaseAPI);
6668
+
6669
+ function FungibleTokensApi() {
6670
+ return _runtime$BaseAPI.apply(this, arguments) || this;
6512
6671
  }
6672
+
6673
+ var _proto = FungibleTokensApi.prototype;
6674
+
6513
6675
  /**
6514
- * Get the price of a namespace. The `amount` given will be in the smallest possible units of the currency.
6515
- * Get Namespace Price
6676
+ * Retrieves the metadata for fungible tokens for a given contract id
6677
+ * Fungible tokens metadata for contract id
6516
6678
  */
6517
- ;
6518
-
6519
- _proto.getNamespacePriceRaw = function getNamespacePriceRaw(requestParameters, initOverrides) {
6679
+ _proto.getContractFtMetadataRaw = function getContractFtMetadataRaw(requestParameters, initOverrides) {
6520
6680
  try {
6521
- var _this42 = this;
6681
+ var _this2 = this;
6522
6682
 
6523
- if (requestParameters.tld === null || requestParameters.tld === undefined) {
6524
- throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespacePrice.');
6683
+ if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
6684
+ throw new RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getContractFtMetadata.');
6525
6685
  }
6526
6686
 
6527
6687
  var queryParameters = {};
6528
6688
  var headerParameters = {};
6529
- return Promise.resolve(_this42.request({
6530
- path: "/v2/prices/namespaces/{tld}".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
6689
+ return Promise.resolve(_this2.request({
6690
+ path: "/extended/v1/tokens/{contractId}/ft/metadata".replace("{" + "contractId" + "}", encodeURIComponent(String(requestParameters.contractId))),
6531
6691
  method: 'GET',
6532
6692
  headers: headerParameters,
6533
6693
  query: queryParameters
6534
6694
  }, initOverrides)).then(function (response) {
6535
6695
  return new JSONApiResponse(response, function (jsonValue) {
6536
- return BnsGetNamespacePriceResponseFromJSON(jsonValue);
6696
+ return FungibleTokenMetadataFromJSON(jsonValue);
6537
6697
  });
6538
6698
  });
6539
6699
  } catch (e) {
@@ -6541,16 +6701,16 @@
6541
6701
  }
6542
6702
  }
6543
6703
  /**
6544
- * Get the price of a namespace. The `amount` given will be in the smallest possible units of the currency.
6545
- * Get Namespace Price
6704
+ * Retrieves the metadata for fungible tokens for a given contract id
6705
+ * Fungible tokens metadata for contract id
6546
6706
  */
6547
6707
  ;
6548
6708
 
6549
- _proto.getNamespacePrice = function getNamespacePrice(requestParameters, initOverrides) {
6709
+ _proto.getContractFtMetadata = function getContractFtMetadata(requestParameters, initOverrides) {
6550
6710
  try {
6551
- var _this44 = this;
6711
+ var _this4 = this;
6552
6712
 
6553
- return Promise.resolve(_this44.getNamespacePriceRaw(requestParameters, initOverrides)).then(function (response) {
6713
+ return Promise.resolve(_this4.getContractFtMetadataRaw(requestParameters, initOverrides)).then(function (response) {
6554
6714
  return Promise.resolve(response.value());
6555
6715
  });
6556
6716
  } catch (e) {
@@ -6558,29 +6718,34 @@
6558
6718
  }
6559
6719
  }
6560
6720
  /**
6561
- * Fetches the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Blockstack transaction that introduced new subdomain operations, and empty array will be returned.
6562
- * Get Subdomain at Transaction
6721
+ * Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
6722
+ * Fungible tokens metadata list
6563
6723
  */
6564
6724
  ;
6565
6725
 
6566
- _proto.getSubdomainAtTransactionRaw = function getSubdomainAtTransactionRaw(requestParameters, initOverrides) {
6726
+ _proto.getFtMetadataListRaw = function getFtMetadataListRaw(requestParameters, initOverrides) {
6567
6727
  try {
6568
- var _this46 = this;
6728
+ var _this6 = this;
6569
6729
 
6570
- if (requestParameters.txid === null || requestParameters.txid === undefined) {
6571
- throw new RequiredError('txid', 'Required parameter requestParameters.txid was null or undefined when calling getSubdomainAtTransaction.');
6730
+ var queryParameters = {};
6731
+
6732
+ if (requestParameters.limit !== undefined) {
6733
+ queryParameters['limit'] = requestParameters.limit;
6734
+ }
6735
+
6736
+ if (requestParameters.offset !== undefined) {
6737
+ queryParameters['offset'] = requestParameters.offset;
6572
6738
  }
6573
6739
 
6574
- var queryParameters = {};
6575
6740
  var headerParameters = {};
6576
- return Promise.resolve(_this46.request({
6577
- path: "/v1/subdomains/{txid}".replace("{" + "txid" + "}", encodeURIComponent(String(requestParameters.txid))),
6741
+ return Promise.resolve(_this6.request({
6742
+ path: "/extended/v1/tokens/ft/metadata",
6578
6743
  method: 'GET',
6579
6744
  headers: headerParameters,
6580
6745
  query: queryParameters
6581
6746
  }, initOverrides)).then(function (response) {
6582
6747
  return new JSONApiResponse(response, function (jsonValue) {
6583
- return jsonValue.map(InlineResponse200FromJSON);
6748
+ return FungibleTokensMetadataListFromJSON(jsonValue);
6584
6749
  });
6585
6750
  });
6586
6751
  } catch (e) {
@@ -6588,16 +6753,16 @@
6588
6753
  }
6589
6754
  }
6590
6755
  /**
6591
- * Fetches the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Blockstack transaction that introduced new subdomain operations, and empty array will be returned.
6592
- * Get Subdomain at Transaction
6756
+ * Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
6757
+ * Fungible tokens metadata list
6593
6758
  */
6594
6759
  ;
6595
6760
 
6596
- _proto.getSubdomainAtTransaction = function getSubdomainAtTransaction(requestParameters, initOverrides) {
6761
+ _proto.getFtMetadataList = function getFtMetadataList(requestParameters, initOverrides) {
6597
6762
  try {
6598
- var _this48 = this;
6763
+ var _this8 = this;
6599
6764
 
6600
- return Promise.resolve(_this48.getSubdomainAtTransactionRaw(requestParameters, initOverrides)).then(function (response) {
6765
+ return Promise.resolve(_this8.getFtMetadataListRaw(requestParameters, initOverrides)).then(function (response) {
6601
6766
  return Promise.resolve(response.value());
6602
6767
  });
6603
6768
  } catch (e) {
@@ -6605,44 +6770,40 @@
6605
6770
  }
6606
6771
  };
6607
6772
 
6608
- return BNSApi;
6773
+ return FungibleTokensApi;
6609
6774
  }(BaseAPI);
6610
6775
 
6611
6776
  /**
6612
6777
  *
6613
6778
  */
6614
6779
 
6615
- var BlocksApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6616
- _inheritsLoose(BlocksApi, _runtime$BaseAPI);
6780
+ var InfoApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6781
+ _inheritsLoose(InfoApi, _runtime$BaseAPI);
6617
6782
 
6618
- function BlocksApi() {
6783
+ function InfoApi() {
6619
6784
  return _runtime$BaseAPI.apply(this, arguments) || this;
6620
6785
  }
6621
6786
 
6622
- var _proto = BlocksApi.prototype;
6787
+ var _proto = InfoApi.prototype;
6623
6788
 
6624
6789
  /**
6625
- * Get a specific block by burnchain block hash
6626
- * Get block
6790
+ * Retrieves information about the Core API including the server version
6791
+ * Get Core API info
6627
6792
  */
6628
- _proto.getBlockByBurnBlockHashRaw = function getBlockByBurnBlockHashRaw(requestParameters, initOverrides) {
6793
+ _proto.getCoreApiInfoRaw = function getCoreApiInfoRaw(initOverrides) {
6629
6794
  try {
6630
6795
  var _this2 = this;
6631
6796
 
6632
- if (requestParameters.burnBlockHash === null || requestParameters.burnBlockHash === undefined) {
6633
- throw new RequiredError('burnBlockHash', 'Required parameter requestParameters.burnBlockHash was null or undefined when calling getBlockByBurnBlockHash.');
6634
- }
6635
-
6636
6797
  var queryParameters = {};
6637
6798
  var headerParameters = {};
6638
6799
  return Promise.resolve(_this2.request({
6639
- path: "/extended/v1/block/by_burn_block_hash/{burn_block_hash}".replace("{" + "burn_block_hash" + "}", encodeURIComponent(String(requestParameters.burnBlockHash))),
6800
+ path: "/v2/info",
6640
6801
  method: 'GET',
6641
6802
  headers: headerParameters,
6642
6803
  query: queryParameters
6643
6804
  }, initOverrides)).then(function (response) {
6644
6805
  return new JSONApiResponse(response, function (jsonValue) {
6645
- return BlockFromJSON(jsonValue);
6806
+ return CoreNodeInfoResponseFromJSON(jsonValue);
6646
6807
  });
6647
6808
  });
6648
6809
  } catch (e) {
@@ -6650,16 +6811,16 @@
6650
6811
  }
6651
6812
  }
6652
6813
  /**
6653
- * Get a specific block by burnchain block hash
6654
- * Get block
6814
+ * Retrieves information about the Core API including the server version
6815
+ * Get Core API info
6655
6816
  */
6656
6817
  ;
6657
6818
 
6658
- _proto.getBlockByBurnBlockHash = function getBlockByBurnBlockHash(requestParameters, initOverrides) {
6819
+ _proto.getCoreApiInfo = function getCoreApiInfo(initOverrides) {
6659
6820
  try {
6660
6821
  var _this4 = this;
6661
6822
 
6662
- return Promise.resolve(_this4.getBlockByBurnBlockHashRaw(requestParameters, initOverrides)).then(function (response) {
6823
+ return Promise.resolve(_this4.getCoreApiInfoRaw(initOverrides)).then(function (response) {
6663
6824
  return Promise.resolve(response.value());
6664
6825
  });
6665
6826
  } catch (e) {
@@ -6667,29 +6828,29 @@
6667
6828
  }
6668
6829
  }
6669
6830
  /**
6670
- * Get a specific block by burn chain height
6671
- * Get block
6831
+ * Retrieves the target block time for a given network. The network can be mainnet or testnet. The block time is hardcoded and will change throughout the implementation phases of the testnet.
6832
+ * Get a given network\'s target block time
6672
6833
  */
6673
6834
  ;
6674
6835
 
6675
- _proto.getBlockByBurnBlockHeightRaw = function getBlockByBurnBlockHeightRaw(requestParameters, initOverrides) {
6836
+ _proto.getNetworkBlockTimeByNetworkRaw = function getNetworkBlockTimeByNetworkRaw(requestParameters, initOverrides) {
6676
6837
  try {
6677
6838
  var _this6 = this;
6678
6839
 
6679
- if (requestParameters.burnBlockHeight === null || requestParameters.burnBlockHeight === undefined) {
6680
- throw new RequiredError('burnBlockHeight', 'Required parameter requestParameters.burnBlockHeight was null or undefined when calling getBlockByBurnBlockHeight.');
6840
+ if (requestParameters.network === null || requestParameters.network === undefined) {
6841
+ throw new RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getNetworkBlockTimeByNetwork.');
6681
6842
  }
6682
6843
 
6683
6844
  var queryParameters = {};
6684
6845
  var headerParameters = {};
6685
6846
  return Promise.resolve(_this6.request({
6686
- path: "/extended/v1/block/by_burn_block_height/{burn_block_height}".replace("{" + "burn_block_height" + "}", encodeURIComponent(String(requestParameters.burnBlockHeight))),
6847
+ path: "/extended/v1/info/network_block_time/{network}".replace("{" + "network" + "}", encodeURIComponent(String(requestParameters.network))),
6687
6848
  method: 'GET',
6688
6849
  headers: headerParameters,
6689
6850
  query: queryParameters
6690
6851
  }, initOverrides)).then(function (response) {
6691
6852
  return new JSONApiResponse(response, function (jsonValue) {
6692
- return BlockFromJSON(jsonValue);
6853
+ return NetworkBlockTimeResponseFromJSON(jsonValue);
6693
6854
  });
6694
6855
  });
6695
6856
  } catch (e) {
@@ -6697,16 +6858,16 @@
6697
6858
  }
6698
6859
  }
6699
6860
  /**
6700
- * Get a specific block by burn chain height
6701
- * Get block
6861
+ * Retrieves the target block time for a given network. The network can be mainnet or testnet. The block time is hardcoded and will change throughout the implementation phases of the testnet.
6862
+ * Get a given network\'s target block time
6702
6863
  */
6703
6864
  ;
6704
6865
 
6705
- _proto.getBlockByBurnBlockHeight = function getBlockByBurnBlockHeight(requestParameters, initOverrides) {
6866
+ _proto.getNetworkBlockTimeByNetwork = function getNetworkBlockTimeByNetwork(requestParameters, initOverrides) {
6706
6867
  try {
6707
6868
  var _this8 = this;
6708
6869
 
6709
- return Promise.resolve(_this8.getBlockByBurnBlockHeightRaw(requestParameters, initOverrides)).then(function (response) {
6870
+ return Promise.resolve(_this8.getNetworkBlockTimeByNetworkRaw(requestParameters, initOverrides)).then(function (response) {
6710
6871
  return Promise.resolve(response.value());
6711
6872
  });
6712
6873
  } catch (e) {
@@ -6714,29 +6875,25 @@
6714
6875
  }
6715
6876
  }
6716
6877
  /**
6717
- * Get a specific block by hash
6718
- * Get block
6878
+ * Retrieves the target block times for mainnet and testnet. The block time is hardcoded and will change throughout the implementation phases of the testnet.
6879
+ * Get the network target block time
6719
6880
  */
6720
6881
  ;
6721
6882
 
6722
- _proto.getBlockByHashRaw = function getBlockByHashRaw(requestParameters, initOverrides) {
6883
+ _proto.getNetworkBlockTimesRaw = function getNetworkBlockTimesRaw(initOverrides) {
6723
6884
  try {
6724
6885
  var _this10 = this;
6725
6886
 
6726
- if (requestParameters.hash === null || requestParameters.hash === undefined) {
6727
- throw new RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getBlockByHash.');
6728
- }
6729
-
6730
6887
  var queryParameters = {};
6731
6888
  var headerParameters = {};
6732
6889
  return Promise.resolve(_this10.request({
6733
- path: "/extended/v1/block/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
6890
+ path: "/extended/v1/info/network_block_times",
6734
6891
  method: 'GET',
6735
6892
  headers: headerParameters,
6736
6893
  query: queryParameters
6737
6894
  }, initOverrides)).then(function (response) {
6738
6895
  return new JSONApiResponse(response, function (jsonValue) {
6739
- return BlockFromJSON(jsonValue);
6896
+ return NetworkBlockTimesResponseFromJSON(jsonValue);
6740
6897
  });
6741
6898
  });
6742
6899
  } catch (e) {
@@ -6744,16 +6901,16 @@
6744
6901
  }
6745
6902
  }
6746
6903
  /**
6747
- * Get a specific block by hash
6748
- * Get block
6904
+ * Retrieves the target block times for mainnet and testnet. The block time is hardcoded and will change throughout the implementation phases of the testnet.
6905
+ * Get the network target block time
6749
6906
  */
6750
6907
  ;
6751
6908
 
6752
- _proto.getBlockByHash = function getBlockByHash(requestParameters, initOverrides) {
6909
+ _proto.getNetworkBlockTimes = function getNetworkBlockTimes(initOverrides) {
6753
6910
  try {
6754
6911
  var _this12 = this;
6755
6912
 
6756
- return Promise.resolve(_this12.getBlockByHashRaw(requestParameters, initOverrides)).then(function (response) {
6913
+ return Promise.resolve(_this12.getNetworkBlockTimesRaw(initOverrides)).then(function (response) {
6757
6914
  return Promise.resolve(response.value());
6758
6915
  });
6759
6916
  } catch (e) {
@@ -6761,29 +6918,25 @@
6761
6918
  }
6762
6919
  }
6763
6920
  /**
6764
- * Get a specific block by height
6765
- * Get block
6921
+ * Retrieves Proof-of-Transfer (PoX) information. Can be used for Stacking.
6922
+ * Get Proof-of-Transfer details
6766
6923
  */
6767
6924
  ;
6768
6925
 
6769
- _proto.getBlockByHeightRaw = function getBlockByHeightRaw(requestParameters, initOverrides) {
6926
+ _proto.getPoxInfoRaw = function getPoxInfoRaw(initOverrides) {
6770
6927
  try {
6771
6928
  var _this14 = this;
6772
6929
 
6773
- if (requestParameters.height === null || requestParameters.height === undefined) {
6774
- throw new RequiredError('height', 'Required parameter requestParameters.height was null or undefined when calling getBlockByHeight.');
6775
- }
6776
-
6777
6930
  var queryParameters = {};
6778
6931
  var headerParameters = {};
6779
6932
  return Promise.resolve(_this14.request({
6780
- path: "/extended/v1/block/by_height/{height}".replace("{" + "height" + "}", encodeURIComponent(String(requestParameters.height))),
6933
+ path: "/v2/pox",
6781
6934
  method: 'GET',
6782
6935
  headers: headerParameters,
6783
6936
  query: queryParameters
6784
6937
  }, initOverrides)).then(function (response) {
6785
6938
  return new JSONApiResponse(response, function (jsonValue) {
6786
- return BlockFromJSON(jsonValue);
6939
+ return CoreNodePoxResponseFromJSON(jsonValue);
6787
6940
  });
6788
6941
  });
6789
6942
  } catch (e) {
@@ -6791,16 +6944,16 @@
6791
6944
  }
6792
6945
  }
6793
6946
  /**
6794
- * Get a specific block by height
6795
- * Get block
6947
+ * Retrieves Proof-of-Transfer (PoX) information. Can be used for Stacking.
6948
+ * Get Proof-of-Transfer details
6796
6949
  */
6797
6950
  ;
6798
6951
 
6799
- _proto.getBlockByHeight = function getBlockByHeight(requestParameters, initOverrides) {
6952
+ _proto.getPoxInfo = function getPoxInfo(initOverrides) {
6800
6953
  try {
6801
6954
  var _this16 = this;
6802
6955
 
6803
- return Promise.resolve(_this16.getBlockByHeightRaw(requestParameters, initOverrides)).then(function (response) {
6956
+ return Promise.resolve(_this16.getPoxInfoRaw(initOverrides)).then(function (response) {
6804
6957
  return Promise.resolve(response.value());
6805
6958
  });
6806
6959
  } catch (e) {
@@ -6808,34 +6961,25 @@
6808
6961
  }
6809
6962
  }
6810
6963
  /**
6811
- * Get all recently mined blocks
6812
- * Get recent blocks
6964
+ * Retrieves the current status of the blockchain API, including the server version
6965
+ * Get Blockchain API status
6813
6966
  */
6814
6967
  ;
6815
6968
 
6816
- _proto.getBlockListRaw = function getBlockListRaw(requestParameters, initOverrides) {
6969
+ _proto.getStatusRaw = function getStatusRaw(initOverrides) {
6817
6970
  try {
6818
6971
  var _this18 = this;
6819
6972
 
6820
6973
  var queryParameters = {};
6821
-
6822
- if (requestParameters.limit !== undefined) {
6823
- queryParameters['limit'] = requestParameters.limit;
6824
- }
6825
-
6826
- if (requestParameters.offset !== undefined) {
6827
- queryParameters['offset'] = requestParameters.offset;
6828
- }
6829
-
6830
6974
  var headerParameters = {};
6831
6975
  return Promise.resolve(_this18.request({
6832
- path: "/extended/v1/block",
6976
+ path: "/extended/v1/status",
6833
6977
  method: 'GET',
6834
6978
  headers: headerParameters,
6835
6979
  query: queryParameters
6836
6980
  }, initOverrides)).then(function (response) {
6837
6981
  return new JSONApiResponse(response, function (jsonValue) {
6838
- return BlockListResponseFromJSON(jsonValue);
6982
+ return ServerStatusResponseFromJSON(jsonValue);
6839
6983
  });
6840
6984
  });
6841
6985
  } catch (e) {
@@ -6843,83 +6987,16 @@
6843
6987
  }
6844
6988
  }
6845
6989
  /**
6846
- * Get all recently mined blocks
6847
- * Get recent blocks
6990
+ * Retrieves the current status of the blockchain API, including the server version
6991
+ * Get Blockchain API status
6848
6992
  */
6849
6993
  ;
6850
6994
 
6851
- _proto.getBlockList = function getBlockList(requestParameters, initOverrides) {
6995
+ _proto.getStatus = function getStatus(initOverrides) {
6852
6996
  try {
6853
6997
  var _this20 = this;
6854
6998
 
6855
- return Promise.resolve(_this20.getBlockListRaw(requestParameters, initOverrides)).then(function (response) {
6856
- return Promise.resolve(response.value());
6857
- });
6858
- } catch (e) {
6859
- return Promise.reject(e);
6860
- }
6861
- };
6862
-
6863
- return BlocksApi;
6864
- }(BaseAPI);
6865
-
6866
- /**
6867
- *
6868
- */
6869
-
6870
- var BurnchainApi = /*#__PURE__*/function (_runtime$BaseAPI) {
6871
- _inheritsLoose(BurnchainApi, _runtime$BaseAPI);
6872
-
6873
- function BurnchainApi() {
6874
- return _runtime$BaseAPI.apply(this, arguments) || this;
6875
- }
6876
-
6877
- var _proto = BurnchainApi.prototype;
6878
-
6879
- /**
6880
- * Get a list of recent burnchain (e.g. Bitcoin) reward recipients with the associated amounts and block info
6881
- * Get recent burnchain reward recipients
6882
- */
6883
- _proto.getBurnchainRewardListRaw = function getBurnchainRewardListRaw(requestParameters, initOverrides) {
6884
- try {
6885
- var _this2 = this;
6886
-
6887
- var queryParameters = {};
6888
-
6889
- if (requestParameters.limit !== undefined) {
6890
- queryParameters['limit'] = requestParameters.limit;
6891
- }
6892
-
6893
- if (requestParameters.offset !== undefined) {
6894
- queryParameters['offset'] = requestParameters.offset;
6895
- }
6896
-
6897
- var headerParameters = {};
6898
- return Promise.resolve(_this2.request({
6899
- path: "/extended/v1/burnchain/rewards",
6900
- method: 'GET',
6901
- headers: headerParameters,
6902
- query: queryParameters
6903
- }, initOverrides)).then(function (response) {
6904
- return new JSONApiResponse(response, function (jsonValue) {
6905
- return BurnchainRewardListResponseFromJSON(jsonValue);
6906
- });
6907
- });
6908
- } catch (e) {
6909
- return Promise.reject(e);
6910
- }
6911
- }
6912
- /**
6913
- * Get a list of recent burnchain (e.g. Bitcoin) reward recipients with the associated amounts and block info
6914
- * Get recent burnchain reward recipients
6915
- */
6916
- ;
6917
-
6918
- _proto.getBurnchainRewardList = function getBurnchainRewardList(requestParameters, initOverrides) {
6919
- try {
6920
- var _this4 = this;
6921
-
6922
- return Promise.resolve(_this4.getBurnchainRewardListRaw(requestParameters, initOverrides)).then(function (response) {
6999
+ return Promise.resolve(_this20.getStatusRaw(initOverrides)).then(function (response) {
6923
7000
  return Promise.resolve(response.value());
6924
7001
  });
6925
7002
  } catch (e) {
@@ -6927,38 +7004,30 @@
6927
7004
  }
6928
7005
  }
6929
7006
  /**
6930
- * Get a list of recent burnchain (e.g. Bitcoin) rewards for the given recipient with the associated amounts and block info
6931
- * Get recent burnchain reward for the given recipient
7007
+ * Retrieves the total and unlocked STX supply. More information on Stacking can be found [here] (https://docs.stacks.co/understand-stacks/stacking).
7008
+ * Get total and unlocked STX supply
6932
7009
  */
6933
7010
  ;
6934
7011
 
6935
- _proto.getBurnchainRewardListByAddressRaw = function getBurnchainRewardListByAddressRaw(requestParameters, initOverrides) {
7012
+ _proto.getStxSupplyRaw = function getStxSupplyRaw(requestParameters, initOverrides) {
6936
7013
  try {
6937
- var _this6 = this;
6938
-
6939
- if (requestParameters.address === null || requestParameters.address === undefined) {
6940
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardListByAddress.');
6941
- }
7014
+ var _this22 = this;
6942
7015
 
6943
7016
  var queryParameters = {};
6944
7017
 
6945
- if (requestParameters.limit !== undefined) {
6946
- queryParameters['limit'] = requestParameters.limit;
6947
- }
6948
-
6949
- if (requestParameters.offset !== undefined) {
6950
- queryParameters['offset'] = requestParameters.offset;
7018
+ if (requestParameters.height !== undefined) {
7019
+ queryParameters['height'] = requestParameters.height;
6951
7020
  }
6952
7021
 
6953
7022
  var headerParameters = {};
6954
- return Promise.resolve(_this6.request({
6955
- path: "/extended/v1/burnchain/rewards/{address}".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
7023
+ return Promise.resolve(_this22.request({
7024
+ path: "/extended/v1/stx_supply",
6956
7025
  method: 'GET',
6957
7026
  headers: headerParameters,
6958
7027
  query: queryParameters
6959
7028
  }, initOverrides)).then(function (response) {
6960
7029
  return new JSONApiResponse(response, function (jsonValue) {
6961
- return BurnchainRewardListResponseFromJSON(jsonValue);
7030
+ return GetStxSupplyResponseFromJSON(jsonValue);
6962
7031
  });
6963
7032
  });
6964
7033
  } catch (e) {
@@ -6966,16 +7035,16 @@
6966
7035
  }
6967
7036
  }
6968
7037
  /**
6969
- * Get a list of recent burnchain (e.g. Bitcoin) rewards for the given recipient with the associated amounts and block info
6970
- * Get recent burnchain reward for the given recipient
7038
+ * Retrieves the total and unlocked STX supply. More information on Stacking can be found [here] (https://docs.stacks.co/understand-stacks/stacking).
7039
+ * Get total and unlocked STX supply
6971
7040
  */
6972
7041
  ;
6973
7042
 
6974
- _proto.getBurnchainRewardListByAddress = function getBurnchainRewardListByAddress(requestParameters, initOverrides) {
7043
+ _proto.getStxSupply = function getStxSupply(requestParameters, initOverrides) {
6975
7044
  try {
6976
- var _this8 = this;
7045
+ var _this24 = this;
6977
7046
 
6978
- return Promise.resolve(_this8.getBurnchainRewardListByAddressRaw(requestParameters, initOverrides)).then(function (response) {
7047
+ return Promise.resolve(_this24.getStxSupplyRaw(requestParameters, initOverrides)).then(function (response) {
6979
7048
  return Promise.resolve(response.value());
6980
7049
  });
6981
7050
  } catch (e) {
@@ -6983,51 +7052,40 @@
6983
7052
  }
6984
7053
  }
6985
7054
  /**
6986
- * Array of the Bitcoin addresses that would validly receive PoX commitments.
6987
- * Get recent reward slot holders
7055
+ * Retrieves the STX tokens currently in circulation that have been unlocked as plain text.
7056
+ * Get circulating STX supply in plain text format
6988
7057
  */
6989
7058
  ;
6990
7059
 
6991
- _proto.getBurnchainRewardSlotHoldersRaw = function getBurnchainRewardSlotHoldersRaw(requestParameters, initOverrides) {
7060
+ _proto.getStxSupplyCirculatingPlainRaw = function getStxSupplyCirculatingPlainRaw(initOverrides) {
6992
7061
  try {
6993
- var _this10 = this;
7062
+ var _this26 = this;
6994
7063
 
6995
7064
  var queryParameters = {};
6996
-
6997
- if (requestParameters.limit !== undefined) {
6998
- queryParameters['limit'] = requestParameters.limit;
6999
- }
7000
-
7001
- if (requestParameters.offset !== undefined) {
7002
- queryParameters['offset'] = requestParameters.offset;
7003
- }
7004
-
7005
7065
  var headerParameters = {};
7006
- return Promise.resolve(_this10.request({
7007
- path: "/extended/v1/burnchain/reward_slot_holders",
7066
+ return Promise.resolve(_this26.request({
7067
+ path: "/extended/v1/stx_supply/circulating/plain",
7008
7068
  method: 'GET',
7009
7069
  headers: headerParameters,
7010
7070
  query: queryParameters
7011
7071
  }, initOverrides)).then(function (response) {
7012
- return new JSONApiResponse(response, function (jsonValue) {
7013
- return BurnchainRewardSlotHolderListResponseFromJSON(jsonValue);
7014
- });
7072
+ return new TextApiResponse(response);
7015
7073
  });
7016
7074
  } catch (e) {
7017
7075
  return Promise.reject(e);
7018
7076
  }
7019
7077
  }
7020
7078
  /**
7021
- * Array of the Bitcoin addresses that would validly receive PoX commitments.
7022
- * Get recent reward slot holders
7079
+ * Retrieves the STX tokens currently in circulation that have been unlocked as plain text.
7080
+ * Get circulating STX supply in plain text format
7023
7081
  */
7024
7082
  ;
7025
7083
 
7026
- _proto.getBurnchainRewardSlotHolders = function getBurnchainRewardSlotHolders(requestParameters, initOverrides) {
7084
+ _proto.getStxSupplyCirculatingPlain = function getStxSupplyCirculatingPlain(initOverrides) {
7027
7085
  try {
7028
- var _this12 = this;
7086
+ var _this28 = this;
7029
7087
 
7030
- return Promise.resolve(_this12.getBurnchainRewardSlotHoldersRaw(requestParameters, initOverrides)).then(function (response) {
7088
+ return Promise.resolve(_this28.getStxSupplyCirculatingPlainRaw(initOverrides)).then(function (response) {
7031
7089
  return Promise.resolve(response.value());
7032
7090
  });
7033
7091
  } catch (e) {
@@ -7035,55 +7093,40 @@
7035
7093
  }
7036
7094
  }
7037
7095
  /**
7038
- * Array of the Bitcoin addresses that would validly receive PoX commitments.
7039
- * Get recent reward slot holder entries for the given address
7096
+ * Retrieves the total supply for STX tokens as plain text.
7097
+ * Get total STX supply in plain text format
7040
7098
  */
7041
7099
  ;
7042
7100
 
7043
- _proto.getBurnchainRewardSlotHoldersByAddressRaw = function getBurnchainRewardSlotHoldersByAddressRaw(requestParameters, initOverrides) {
7101
+ _proto.getStxSupplyTotalSupplyPlainRaw = function getStxSupplyTotalSupplyPlainRaw(initOverrides) {
7044
7102
  try {
7045
- var _this14 = this;
7046
-
7047
- if (requestParameters.address === null || requestParameters.address === undefined) {
7048
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardSlotHoldersByAddress.');
7049
- }
7103
+ var _this30 = this;
7050
7104
 
7051
7105
  var queryParameters = {};
7052
-
7053
- if (requestParameters.limit !== undefined) {
7054
- queryParameters['limit'] = requestParameters.limit;
7055
- }
7056
-
7057
- if (requestParameters.offset !== undefined) {
7058
- queryParameters['offset'] = requestParameters.offset;
7059
- }
7060
-
7061
7106
  var headerParameters = {};
7062
- return Promise.resolve(_this14.request({
7063
- path: "/extended/v1/burnchain/reward_slot_holders/{address}".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
7107
+ return Promise.resolve(_this30.request({
7108
+ path: "/extended/v1/stx_supply/total/plain",
7064
7109
  method: 'GET',
7065
7110
  headers: headerParameters,
7066
7111
  query: queryParameters
7067
7112
  }, initOverrides)).then(function (response) {
7068
- return new JSONApiResponse(response, function (jsonValue) {
7069
- return BurnchainRewardSlotHolderListResponseFromJSON(jsonValue);
7070
- });
7113
+ return new TextApiResponse(response);
7071
7114
  });
7072
7115
  } catch (e) {
7073
7116
  return Promise.reject(e);
7074
7117
  }
7075
7118
  }
7076
7119
  /**
7077
- * Array of the Bitcoin addresses that would validly receive PoX commitments.
7078
- * Get recent reward slot holder entries for the given address
7120
+ * Retrieves the total supply for STX tokens as plain text.
7121
+ * Get total STX supply in plain text format
7079
7122
  */
7080
7123
  ;
7081
7124
 
7082
- _proto.getBurnchainRewardSlotHoldersByAddress = function getBurnchainRewardSlotHoldersByAddress(requestParameters, initOverrides) {
7125
+ _proto.getStxSupplyTotalSupplyPlain = function getStxSupplyTotalSupplyPlain(initOverrides) {
7083
7126
  try {
7084
- var _this16 = this;
7127
+ var _this32 = this;
7085
7128
 
7086
- return Promise.resolve(_this16.getBurnchainRewardSlotHoldersByAddressRaw(requestParameters, initOverrides)).then(function (response) {
7129
+ return Promise.resolve(_this32.getStxSupplyTotalSupplyPlainRaw(initOverrides)).then(function (response) {
7087
7130
  return Promise.resolve(response.value());
7088
7131
  });
7089
7132
  } catch (e) {
@@ -7091,29 +7134,30 @@
7091
7134
  }
7092
7135
  }
7093
7136
  /**
7094
- * Get the total burnchain (e.g. Bitcoin) rewards for the given recipient
7095
- * Get total burnchain rewards for the given recipient
7137
+ * Retrieves total supply of STX tokens including those currently in circulation that have been unlocked.
7138
+ * Get total and unlocked STX supply (results formatted the same as the legacy 1.0 API)
7096
7139
  */
7097
7140
  ;
7098
7141
 
7099
- _proto.getBurnchainRewardsTotalByAddressRaw = function getBurnchainRewardsTotalByAddressRaw(requestParameters, initOverrides) {
7142
+ _proto.getTotalStxSupplyLegacyFormatRaw = function getTotalStxSupplyLegacyFormatRaw(requestParameters, initOverrides) {
7100
7143
  try {
7101
- var _this18 = this;
7144
+ var _this34 = this;
7102
7145
 
7103
- if (requestParameters.address === null || requestParameters.address === undefined) {
7104
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardsTotalByAddress.');
7146
+ var queryParameters = {};
7147
+
7148
+ if (requestParameters.height !== undefined) {
7149
+ queryParameters['height'] = requestParameters.height;
7105
7150
  }
7106
7151
 
7107
- var queryParameters = {};
7108
7152
  var headerParameters = {};
7109
- return Promise.resolve(_this18.request({
7110
- path: "/extended/v1/burnchain/rewards/{address}/total".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
7153
+ return Promise.resolve(_this34.request({
7154
+ path: "/extended/v1/stx_supply/legacy_format",
7111
7155
  method: 'GET',
7112
7156
  headers: headerParameters,
7113
7157
  query: queryParameters
7114
7158
  }, initOverrides)).then(function (response) {
7115
7159
  return new JSONApiResponse(response, function (jsonValue) {
7116
- return BurnchainRewardsTotalFromJSON(jsonValue);
7160
+ return GetStxSupplyLegacyFormatResponseFromJSON(jsonValue);
7117
7161
  });
7118
7162
  });
7119
7163
  } catch (e) {
@@ -7121,16 +7165,16 @@
7121
7165
  }
7122
7166
  }
7123
7167
  /**
7124
- * Get the total burnchain (e.g. Bitcoin) rewards for the given recipient
7125
- * Get total burnchain rewards for the given recipient
7168
+ * Retrieves total supply of STX tokens including those currently in circulation that have been unlocked.
7169
+ * Get total and unlocked STX supply (results formatted the same as the legacy 1.0 API)
7126
7170
  */
7127
7171
  ;
7128
7172
 
7129
- _proto.getBurnchainRewardsTotalByAddress = function getBurnchainRewardsTotalByAddress(requestParameters, initOverrides) {
7173
+ _proto.getTotalStxSupplyLegacyFormat = function getTotalStxSupplyLegacyFormat(requestParameters, initOverrides) {
7130
7174
  try {
7131
- var _this20 = this;
7175
+ var _this36 = this;
7132
7176
 
7133
- return Promise.resolve(_this20.getBurnchainRewardsTotalByAddressRaw(requestParameters, initOverrides)).then(function (response) {
7177
+ return Promise.resolve(_this36.getTotalStxSupplyLegacyFormatRaw(requestParameters, initOverrides)).then(function (response) {
7134
7178
  return Promise.resolve(response.value());
7135
7179
  });
7136
7180
  } catch (e) {
@@ -7138,49 +7182,55 @@
7138
7182
  }
7139
7183
  };
7140
7184
 
7141
- return BurnchainApi;
7185
+ return InfoApi;
7142
7186
  }(BaseAPI);
7187
+ /**
7188
+ * @export
7189
+ * @enum {string}
7190
+ */
7191
+
7192
+ exports.GetNetworkBlockTimeByNetworkNetworkEnum = void 0;
7193
+
7194
+ (function (GetNetworkBlockTimeByNetworkNetworkEnum) {
7195
+ GetNetworkBlockTimeByNetworkNetworkEnum["testnet"] = "testnet";
7196
+ GetNetworkBlockTimeByNetworkNetworkEnum["mainnet"] = "mainnet";
7197
+ })(exports.GetNetworkBlockTimeByNetworkNetworkEnum || (exports.GetNetworkBlockTimeByNetworkNetworkEnum = {}));
7143
7198
 
7144
7199
  /**
7145
7200
  *
7146
7201
  */
7147
7202
 
7148
- var FaucetsApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7149
- _inheritsLoose(FaucetsApi, _runtime$BaseAPI);
7203
+ var MicroblocksApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7204
+ _inheritsLoose(MicroblocksApi, _runtime$BaseAPI);
7150
7205
 
7151
- function FaucetsApi() {
7206
+ function MicroblocksApi() {
7152
7207
  return _runtime$BaseAPI.apply(this, arguments) || this;
7153
7208
  }
7154
7209
 
7155
- var _proto = FaucetsApi.prototype;
7210
+ var _proto = MicroblocksApi.prototype;
7156
7211
 
7157
7212
  /**
7158
- * Get BTC tokens for the testnet
7159
- * Get BTC tokens
7213
+ * Retrieves a specific microblock by `hash`
7214
+ * Get microblock
7160
7215
  */
7161
- _proto.runFaucetBtcRaw = function runFaucetBtcRaw(requestParameters, initOverrides) {
7216
+ _proto.getMicroblockByHashRaw = function getMicroblockByHashRaw(requestParameters, initOverrides) {
7162
7217
  try {
7163
7218
  var _this2 = this;
7164
7219
 
7165
- if (requestParameters.address === null || requestParameters.address === undefined) {
7166
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling runFaucetBtc.');
7220
+ if (requestParameters.hash === null || requestParameters.hash === undefined) {
7221
+ throw new RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getMicroblockByHash.');
7167
7222
  }
7168
7223
 
7169
7224
  var queryParameters = {};
7170
-
7171
- if (requestParameters.address !== undefined) {
7172
- queryParameters['address'] = requestParameters.address;
7173
- }
7174
-
7175
7225
  var headerParameters = {};
7176
7226
  return Promise.resolve(_this2.request({
7177
- path: "/extended/v1/faucets/btc",
7178
- method: 'POST',
7227
+ path: "/extended/v1/microblock/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
7228
+ method: 'GET',
7179
7229
  headers: headerParameters,
7180
7230
  query: queryParameters
7181
7231
  }, initOverrides)).then(function (response) {
7182
7232
  return new JSONApiResponse(response, function (jsonValue) {
7183
- return RunFaucetResponseFromJSON(jsonValue);
7233
+ return MicroblockFromJSON(jsonValue);
7184
7234
  });
7185
7235
  });
7186
7236
  } catch (e) {
@@ -7188,16 +7238,16 @@
7188
7238
  }
7189
7239
  }
7190
7240
  /**
7191
- * Get BTC tokens for the testnet
7192
- * Get BTC tokens
7241
+ * Retrieves a specific microblock by `hash`
7242
+ * Get microblock
7193
7243
  */
7194
7244
  ;
7195
7245
 
7196
- _proto.runFaucetBtc = function runFaucetBtc(requestParameters, initOverrides) {
7246
+ _proto.getMicroblockByHash = function getMicroblockByHash(requestParameters, initOverrides) {
7197
7247
  try {
7198
7248
  var _this4 = this;
7199
7249
 
7200
- return Promise.resolve(_this4.runFaucetBtcRaw(requestParameters, initOverrides)).then(function (response) {
7250
+ return Promise.resolve(_this4.getMicroblockByHashRaw(requestParameters, initOverrides)).then(function (response) {
7201
7251
  return Promise.resolve(response.value());
7202
7252
  });
7203
7253
  } catch (e) {
@@ -7205,38 +7255,34 @@
7205
7255
  }
7206
7256
  }
7207
7257
  /**
7208
- * Get STX tokens for the testnet
7209
- * Get STX tokens
7258
+ * Retrieves a list of microblocks.
7259
+ * Get recent microblocks
7210
7260
  */
7211
7261
  ;
7212
7262
 
7213
- _proto.runFaucetStxRaw = function runFaucetStxRaw(requestParameters, initOverrides) {
7263
+ _proto.getMicroblockListRaw = function getMicroblockListRaw(requestParameters, initOverrides) {
7214
7264
  try {
7215
7265
  var _this6 = this;
7216
7266
 
7217
- if (requestParameters.address === null || requestParameters.address === undefined) {
7218
- throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling runFaucetStx.');
7219
- }
7220
-
7221
7267
  var queryParameters = {};
7222
7268
 
7223
- if (requestParameters.address !== undefined) {
7224
- queryParameters['address'] = requestParameters.address;
7269
+ if (requestParameters.limit !== undefined) {
7270
+ queryParameters['limit'] = requestParameters.limit;
7225
7271
  }
7226
7272
 
7227
- if (requestParameters.stacking !== undefined) {
7228
- queryParameters['stacking'] = requestParameters.stacking;
7273
+ if (requestParameters.offset !== undefined) {
7274
+ queryParameters['offset'] = requestParameters.offset;
7229
7275
  }
7230
7276
 
7231
7277
  var headerParameters = {};
7232
7278
  return Promise.resolve(_this6.request({
7233
- path: "/extended/v1/faucets/stx",
7234
- method: 'POST',
7279
+ path: "/extended/v1/microblock",
7280
+ method: 'GET',
7235
7281
  headers: headerParameters,
7236
7282
  query: queryParameters
7237
7283
  }, initOverrides)).then(function (response) {
7238
7284
  return new JSONApiResponse(response, function (jsonValue) {
7239
- return RunFaucetResponseFromJSON(jsonValue);
7285
+ return MicroblockListResponseFromJSON(jsonValue);
7240
7286
  });
7241
7287
  });
7242
7288
  } catch (e) {
@@ -7244,16 +7290,59 @@
7244
7290
  }
7245
7291
  }
7246
7292
  /**
7247
- * Get STX tokens for the testnet
7248
- * Get STX tokens
7293
+ * Retrieves a list of microblocks.
7294
+ * Get recent microblocks
7249
7295
  */
7250
7296
  ;
7251
7297
 
7252
- _proto.runFaucetStx = function runFaucetStx(requestParameters, initOverrides) {
7298
+ _proto.getMicroblockList = function getMicroblockList(requestParameters, initOverrides) {
7253
7299
  try {
7254
7300
  var _this8 = this;
7255
7301
 
7256
- return Promise.resolve(_this8.runFaucetStxRaw(requestParameters, initOverrides)).then(function (response) {
7302
+ return Promise.resolve(_this8.getMicroblockListRaw(requestParameters, initOverrides)).then(function (response) {
7303
+ return Promise.resolve(response.value());
7304
+ });
7305
+ } catch (e) {
7306
+ return Promise.reject(e);
7307
+ }
7308
+ }
7309
+ /**
7310
+ * Retrieves transactions that have been streamed in microblocks but not yet accepted or rejected in an anchor block
7311
+ * Get the list of current transactions that belong to unanchored microblocks
7312
+ */
7313
+ ;
7314
+
7315
+ _proto.getUnanchoredTxsRaw = function getUnanchoredTxsRaw(initOverrides) {
7316
+ try {
7317
+ var _this10 = this;
7318
+
7319
+ var queryParameters = {};
7320
+ var headerParameters = {};
7321
+ return Promise.resolve(_this10.request({
7322
+ path: "/extended/v1/microblock/unanchored/txs",
7323
+ method: 'GET',
7324
+ headers: headerParameters,
7325
+ query: queryParameters
7326
+ }, initOverrides)).then(function (response) {
7327
+ return new JSONApiResponse(response, function (jsonValue) {
7328
+ return UnanchoredTransactionListResponseFromJSON(jsonValue);
7329
+ });
7330
+ });
7331
+ } catch (e) {
7332
+ return Promise.reject(e);
7333
+ }
7334
+ }
7335
+ /**
7336
+ * Retrieves transactions that have been streamed in microblocks but not yet accepted or rejected in an anchor block
7337
+ * Get the list of current transactions that belong to unanchored microblocks
7338
+ */
7339
+ ;
7340
+
7341
+ _proto.getUnanchoredTxs = function getUnanchoredTxs(initOverrides) {
7342
+ try {
7343
+ var _this12 = this;
7344
+
7345
+ return Promise.resolve(_this12.getUnanchoredTxsRaw(initOverrides)).then(function (response) {
7257
7346
  return Promise.resolve(response.value());
7258
7347
  });
7259
7348
  } catch (e) {
@@ -7261,177 +7350,202 @@
7261
7350
  }
7262
7351
  };
7263
7352
 
7264
- return FaucetsApi;
7353
+ return MicroblocksApi;
7265
7354
  }(BaseAPI);
7266
7355
 
7267
7356
  /**
7268
7357
  *
7269
7358
  */
7270
7359
 
7271
- var FeeRateApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7272
- _inheritsLoose(FeeRateApi, _runtime$BaseAPI);
7360
+ var NamesApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7361
+ _inheritsLoose(NamesApi, _runtime$BaseAPI);
7273
7362
 
7274
- function FeeRateApi() {
7363
+ function NamesApi() {
7275
7364
  return _runtime$BaseAPI.apply(this, arguments) || this;
7276
7365
  }
7277
7366
 
7278
- var _proto = FeeRateApi.prototype;
7367
+ var _proto = NamesApi.prototype;
7368
+
7369
+ /**
7370
+ * Retrieves a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.
7371
+ * Get Zone File
7372
+ */
7373
+ _proto.fetchZoneFileRaw = function fetchZoneFileRaw(requestParameters, initOverrides) {
7374
+ try {
7375
+ var _this2 = this;
7376
+
7377
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7378
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling fetchZoneFile.');
7379
+ }
7380
+
7381
+ var queryParameters = {};
7382
+ var headerParameters = {};
7383
+ return Promise.resolve(_this2.request({
7384
+ path: "/v1/names/{name}/zonefile".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7385
+ method: 'GET',
7386
+ headers: headerParameters,
7387
+ query: queryParameters
7388
+ }, initOverrides)).then(function (response) {
7389
+ return new JSONApiResponse(response);
7390
+ });
7391
+ } catch (e) {
7392
+ return Promise.reject(e);
7393
+ }
7394
+ }
7395
+ /**
7396
+ * Retrieves a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.
7397
+ * Get Zone File
7398
+ */
7399
+ ;
7400
+
7401
+ _proto.fetchZoneFile = function fetchZoneFile(requestParameters, initOverrides) {
7402
+ try {
7403
+ var _this4 = this;
7279
7404
 
7405
+ return Promise.resolve(_this4.fetchZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
7406
+ return Promise.resolve(response.value());
7407
+ });
7408
+ } catch (e) {
7409
+ return Promise.reject(e);
7410
+ }
7411
+ }
7280
7412
  /**
7281
- * Fetch fee rate information.
7282
- * fetch fee rate
7413
+ * Retrieves a list of all names known to the node.
7414
+ * Get All Names
7283
7415
  */
7284
- _proto.fetchFeeRateRaw = function fetchFeeRateRaw(requestParameters, initOverrides) {
7416
+ ;
7417
+
7418
+ _proto.getAllNamesRaw = function getAllNamesRaw(requestParameters, initOverrides) {
7285
7419
  try {
7286
- var _this2 = this;
7420
+ var _this6 = this;
7287
7421
 
7288
- if (requestParameters.feeRateRequest === null || requestParameters.feeRateRequest === undefined) {
7289
- throw new RequiredError('feeRateRequest', 'Required parameter requestParameters.feeRateRequest was null or undefined when calling fetchFeeRate.');
7422
+ if (requestParameters.page === null || requestParameters.page === undefined) {
7423
+ throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllNames.');
7290
7424
  }
7291
7425
 
7292
7426
  var queryParameters = {};
7427
+
7428
+ if (requestParameters.page !== undefined) {
7429
+ queryParameters['page'] = requestParameters.page;
7430
+ }
7431
+
7293
7432
  var headerParameters = {};
7294
- headerParameters['Content-Type'] = 'application/json';
7295
- return Promise.resolve(_this2.request({
7296
- path: "/extended/v1/fee_rate",
7297
- method: 'POST',
7433
+ return Promise.resolve(_this6.request({
7434
+ path: "/v1/names",
7435
+ method: 'GET',
7298
7436
  headers: headerParameters,
7299
- query: queryParameters,
7300
- body: FeeRateRequestToJSON(requestParameters.feeRateRequest)
7437
+ query: queryParameters
7301
7438
  }, initOverrides)).then(function (response) {
7302
- return new JSONApiResponse(response, function (jsonValue) {
7303
- return FeeRateFromJSON(jsonValue);
7304
- });
7439
+ return new JSONApiResponse(response);
7305
7440
  });
7306
7441
  } catch (e) {
7307
7442
  return Promise.reject(e);
7308
7443
  }
7309
7444
  }
7310
7445
  /**
7311
- * Fetch fee rate information.
7312
- * fetch fee rate
7446
+ * Retrieves a list of all names known to the node.
7447
+ * Get All Names
7313
7448
  */
7314
7449
  ;
7315
7450
 
7316
- _proto.fetchFeeRate = function fetchFeeRate(requestParameters, initOverrides) {
7451
+ _proto.getAllNames = function getAllNames(requestParameters, initOverrides) {
7317
7452
  try {
7318
- var _this4 = this;
7453
+ var _this8 = this;
7319
7454
 
7320
- return Promise.resolve(_this4.fetchFeeRateRaw(requestParameters, initOverrides)).then(function (response) {
7455
+ return Promise.resolve(_this8.getAllNamesRaw(requestParameters, initOverrides)).then(function (response) {
7321
7456
  return Promise.resolve(response.value());
7322
7457
  });
7323
7458
  } catch (e) {
7324
7459
  return Promise.reject(e);
7325
7460
  }
7326
- };
7327
-
7328
- return FeeRateApi;
7329
- }(BaseAPI);
7330
-
7331
- /**
7332
- *
7333
- */
7334
-
7335
- var FeesApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7336
- _inheritsLoose(FeesApi, _runtime$BaseAPI);
7337
-
7338
- function FeesApi() {
7339
- return _runtime$BaseAPI.apply(this, arguments) || this;
7340
7461
  }
7341
-
7342
- var _proto = FeesApi.prototype;
7343
-
7344
7462
  /**
7345
- * Get an estimated fee rate for STX transfer transactions. This a a fee rate / byte, and is returned as a JSON integer
7346
- * Get estimated fee
7463
+ * Retrieves a list of all namespaces known to the node.
7464
+ * Get All Namespaces
7347
7465
  */
7348
- _proto.getFeeTransferRaw = function getFeeTransferRaw(initOverrides) {
7466
+ ;
7467
+
7468
+ _proto.getAllNamespacesRaw = function getAllNamespacesRaw(initOverrides) {
7349
7469
  try {
7350
- var _this2 = this;
7470
+ var _this10 = this;
7351
7471
 
7352
7472
  var queryParameters = {};
7353
7473
  var headerParameters = {};
7354
- return Promise.resolve(_this2.request({
7355
- path: "/v2/fees/transfer",
7474
+ return Promise.resolve(_this10.request({
7475
+ path: "/v1/namespaces",
7356
7476
  method: 'GET',
7357
7477
  headers: headerParameters,
7358
7478
  query: queryParameters
7359
7479
  }, initOverrides)).then(function (response) {
7360
- return new JSONApiResponse(response);
7480
+ return new JSONApiResponse(response, function (jsonValue) {
7481
+ return BnsGetAllNamespacesResponseFromJSON(jsonValue);
7482
+ });
7361
7483
  });
7362
7484
  } catch (e) {
7363
7485
  return Promise.reject(e);
7364
7486
  }
7365
7487
  }
7366
7488
  /**
7367
- * Get an estimated fee rate for STX transfer transactions. This a a fee rate / byte, and is returned as a JSON integer
7368
- * Get estimated fee
7489
+ * Retrieves a list of all namespaces known to the node.
7490
+ * Get All Namespaces
7369
7491
  */
7370
7492
  ;
7371
7493
 
7372
- _proto.getFeeTransfer = function getFeeTransfer(initOverrides) {
7494
+ _proto.getAllNamespaces = function getAllNamespaces(initOverrides) {
7373
7495
  try {
7374
- var _this4 = this;
7496
+ var _this12 = this;
7375
7497
 
7376
- return Promise.resolve(_this4.getFeeTransferRaw(initOverrides)).then(function (response) {
7498
+ return Promise.resolve(_this12.getAllNamespacesRaw(initOverrides)).then(function (response) {
7377
7499
  return Promise.resolve(response.value());
7378
7500
  });
7379
7501
  } catch (e) {
7380
7502
  return Promise.reject(e);
7381
7503
  }
7382
- };
7383
-
7384
- return FeesApi;
7385
- }(BaseAPI);
7386
-
7387
- /**
7388
- *
7389
- */
7390
-
7391
- var InfoApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7392
- _inheritsLoose(InfoApi, _runtime$BaseAPI);
7393
-
7394
- function InfoApi() {
7395
- return _runtime$BaseAPI.apply(this, arguments) || this;
7396
7504
  }
7397
-
7398
- var _proto = InfoApi.prototype;
7399
-
7400
7505
  /**
7401
- * Get Core API information
7402
- * Get Core API info
7506
+ * Retrieves a list of all subdomains known to the node.
7507
+ * Get All Subdomains
7403
7508
  */
7404
- _proto.getCoreApiInfoRaw = function getCoreApiInfoRaw(initOverrides) {
7509
+ ;
7510
+
7511
+ _proto.getAllSubdomainsRaw = function getAllSubdomainsRaw(requestParameters, initOverrides) {
7405
7512
  try {
7406
- var _this2 = this;
7513
+ var _this14 = this;
7514
+
7515
+ if (requestParameters.page === null || requestParameters.page === undefined) {
7516
+ throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllSubdomains.');
7517
+ }
7407
7518
 
7408
7519
  var queryParameters = {};
7520
+
7521
+ if (requestParameters.page !== undefined) {
7522
+ queryParameters['page'] = requestParameters.page;
7523
+ }
7524
+
7409
7525
  var headerParameters = {};
7410
- return Promise.resolve(_this2.request({
7411
- path: "/v2/info",
7526
+ return Promise.resolve(_this14.request({
7527
+ path: "/v1/subdomains",
7412
7528
  method: 'GET',
7413
7529
  headers: headerParameters,
7414
7530
  query: queryParameters
7415
7531
  }, initOverrides)).then(function (response) {
7416
- return new JSONApiResponse(response, function (jsonValue) {
7417
- return CoreNodeInfoResponseFromJSON(jsonValue);
7418
- });
7532
+ return new JSONApiResponse(response);
7419
7533
  });
7420
7534
  } catch (e) {
7421
7535
  return Promise.reject(e);
7422
7536
  }
7423
7537
  }
7424
7538
  /**
7425
- * Get Core API information
7426
- * Get Core API info
7539
+ * Retrieves a list of all subdomains known to the node.
7540
+ * Get All Subdomains
7427
7541
  */
7428
7542
  ;
7429
7543
 
7430
- _proto.getCoreApiInfo = function getCoreApiInfo(initOverrides) {
7544
+ _proto.getAllSubdomains = function getAllSubdomains(requestParameters, initOverrides) {
7431
7545
  try {
7432
- var _this4 = this;
7546
+ var _this16 = this;
7433
7547
 
7434
- return Promise.resolve(_this4.getCoreApiInfoRaw(initOverrides)).then(function (response) {
7548
+ return Promise.resolve(_this16.getAllSubdomainsRaw(requestParameters, initOverrides)).then(function (response) {
7435
7549
  return Promise.resolve(response.value());
7436
7550
  });
7437
7551
  } catch (e) {
@@ -7439,44 +7553,48 @@
7439
7553
  }
7440
7554
  }
7441
7555
  /**
7442
- * Get a given network\'s target block time
7556
+ * Retrieves the historical zonefile specified by the username and zone hash.
7557
+ * Get Historical Zone File
7443
7558
  */
7444
7559
  ;
7445
7560
 
7446
- _proto.getNetworkBlockTimeByNetworkRaw = function getNetworkBlockTimeByNetworkRaw(requestParameters, initOverrides) {
7561
+ _proto.getHistoricalZoneFileRaw = function getHistoricalZoneFileRaw(requestParameters, initOverrides) {
7447
7562
  try {
7448
- var _this6 = this;
7563
+ var _this18 = this;
7449
7564
 
7450
- if (requestParameters.network === null || requestParameters.network === undefined) {
7451
- throw new RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getNetworkBlockTimeByNetwork.');
7565
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7566
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getHistoricalZoneFile.');
7567
+ }
7568
+
7569
+ if (requestParameters.zoneFileHash === null || requestParameters.zoneFileHash === undefined) {
7570
+ throw new RequiredError('zoneFileHash', 'Required parameter requestParameters.zoneFileHash was null or undefined when calling getHistoricalZoneFile.');
7452
7571
  }
7453
7572
 
7454
7573
  var queryParameters = {};
7455
7574
  var headerParameters = {};
7456
- return Promise.resolve(_this6.request({
7457
- path: "/extended/v1/info/network_block_time/{network}".replace("{" + "network" + "}", encodeURIComponent(String(requestParameters.network))),
7575
+ return Promise.resolve(_this18.request({
7576
+ path: "/v1/names/{name}/zonefile/{zoneFileHash}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))).replace("{" + "zoneFileHash" + "}", encodeURIComponent(String(requestParameters.zoneFileHash))),
7458
7577
  method: 'GET',
7459
7578
  headers: headerParameters,
7460
7579
  query: queryParameters
7461
7580
  }, initOverrides)).then(function (response) {
7462
- return new JSONApiResponse(response, function (jsonValue) {
7463
- return NetworkBlockTimeResponseFromJSON(jsonValue);
7464
- });
7581
+ return new JSONApiResponse(response);
7465
7582
  });
7466
7583
  } catch (e) {
7467
7584
  return Promise.reject(e);
7468
7585
  }
7469
7586
  }
7470
7587
  /**
7471
- * Get a given network\'s target block time
7588
+ * Retrieves the historical zonefile specified by the username and zone hash.
7589
+ * Get Historical Zone File
7472
7590
  */
7473
7591
  ;
7474
7592
 
7475
- _proto.getNetworkBlockTimeByNetwork = function getNetworkBlockTimeByNetwork(requestParameters, initOverrides) {
7593
+ _proto.getHistoricalZoneFile = function getHistoricalZoneFile(requestParameters, initOverrides) {
7476
7594
  try {
7477
- var _this8 = this;
7595
+ var _this20 = this;
7478
7596
 
7479
- return Promise.resolve(_this8.getNetworkBlockTimeByNetworkRaw(requestParameters, initOverrides)).then(function (response) {
7597
+ return Promise.resolve(_this20.getHistoricalZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
7480
7598
  return Promise.resolve(response.value());
7481
7599
  });
7482
7600
  } catch (e) {
@@ -7484,40 +7602,53 @@
7484
7602
  }
7485
7603
  }
7486
7604
  /**
7487
- * Get the network target block time
7605
+ * Retrieves a history of all blockchain records of a registered name.
7606
+ * Get Name History
7488
7607
  */
7489
7608
  ;
7490
7609
 
7491
- _proto.getNetworkBlockTimesRaw = function getNetworkBlockTimesRaw(initOverrides) {
7610
+ _proto.getNameHistoryRaw = function getNameHistoryRaw(requestParameters, initOverrides) {
7492
7611
  try {
7493
- var _this10 = this;
7612
+ var _this22 = this;
7613
+
7614
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7615
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameHistory.');
7616
+ }
7617
+
7618
+ if (requestParameters.page === null || requestParameters.page === undefined) {
7619
+ throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getNameHistory.');
7620
+ }
7494
7621
 
7495
7622
  var queryParameters = {};
7623
+
7624
+ if (requestParameters.page !== undefined) {
7625
+ queryParameters['page'] = requestParameters.page;
7626
+ }
7627
+
7496
7628
  var headerParameters = {};
7497
- return Promise.resolve(_this10.request({
7498
- path: "/extended/v1/info/network_block_times",
7629
+ return Promise.resolve(_this22.request({
7630
+ path: "/v1/names/{name}/history".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7499
7631
  method: 'GET',
7500
7632
  headers: headerParameters,
7501
7633
  query: queryParameters
7502
7634
  }, initOverrides)).then(function (response) {
7503
- return new JSONApiResponse(response, function (jsonValue) {
7504
- return NetworkBlockTimesResponseFromJSON(jsonValue);
7505
- });
7635
+ return new JSONApiResponse(response);
7506
7636
  });
7507
7637
  } catch (e) {
7508
7638
  return Promise.reject(e);
7509
7639
  }
7510
7640
  }
7511
7641
  /**
7512
- * Get the network target block time
7642
+ * Retrieves a history of all blockchain records of a registered name.
7643
+ * Get Name History
7513
7644
  */
7514
7645
  ;
7515
7646
 
7516
- _proto.getNetworkBlockTimes = function getNetworkBlockTimes(initOverrides) {
7647
+ _proto.getNameHistory = function getNameHistory(requestParameters, initOverrides) {
7517
7648
  try {
7518
- var _this12 = this;
7649
+ var _this24 = this;
7519
7650
 
7520
- return Promise.resolve(_this12.getNetworkBlockTimesRaw(initOverrides)).then(function (response) {
7651
+ return Promise.resolve(_this24.getNameHistoryRaw(requestParameters, initOverrides)).then(function (response) {
7521
7652
  return Promise.resolve(response.value());
7522
7653
  });
7523
7654
  } catch (e) {
@@ -7525,25 +7656,29 @@
7525
7656
  }
7526
7657
  }
7527
7658
  /**
7528
- * Get Proof of Transfer (PoX) information. Can be used for Stacking.
7529
- * Get PoX details
7659
+ * Retrieves details of a given name including the `address`, `status` and last transaction id - `last_txid`.
7660
+ * Get Name Details
7530
7661
  */
7531
7662
  ;
7532
7663
 
7533
- _proto.getPoxInfoRaw = function getPoxInfoRaw(initOverrides) {
7664
+ _proto.getNameInfoRaw = function getNameInfoRaw(requestParameters, initOverrides) {
7534
7665
  try {
7535
- var _this14 = this;
7666
+ var _this26 = this;
7667
+
7668
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7669
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameInfo.');
7670
+ }
7536
7671
 
7537
7672
  var queryParameters = {};
7538
7673
  var headerParameters = {};
7539
- return Promise.resolve(_this14.request({
7540
- path: "/v2/pox",
7674
+ return Promise.resolve(_this26.request({
7675
+ path: "/v1/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7541
7676
  method: 'GET',
7542
7677
  headers: headerParameters,
7543
7678
  query: queryParameters
7544
7679
  }, initOverrides)).then(function (response) {
7545
7680
  return new JSONApiResponse(response, function (jsonValue) {
7546
- return CoreNodePoxResponseFromJSON(jsonValue);
7681
+ return BnsGetNameInfoResponseFromJSON(jsonValue);
7547
7682
  });
7548
7683
  });
7549
7684
  } catch (e) {
@@ -7551,16 +7686,16 @@
7551
7686
  }
7552
7687
  }
7553
7688
  /**
7554
- * Get Proof of Transfer (PoX) information. Can be used for Stacking.
7555
- * Get PoX details
7689
+ * Retrieves details of a given name including the `address`, `status` and last transaction id - `last_txid`.
7690
+ * Get Name Details
7556
7691
  */
7557
7692
  ;
7558
7693
 
7559
- _proto.getPoxInfo = function getPoxInfo(initOverrides) {
7694
+ _proto.getNameInfo = function getNameInfo(requestParameters, initOverrides) {
7560
7695
  try {
7561
- var _this16 = this;
7696
+ var _this28 = this;
7562
7697
 
7563
- return Promise.resolve(_this16.getPoxInfoRaw(initOverrides)).then(function (response) {
7698
+ return Promise.resolve(_this28.getNameInfoRaw(requestParameters, initOverrides)).then(function (response) {
7564
7699
  return Promise.resolve(response.value());
7565
7700
  });
7566
7701
  } catch (e) {
@@ -7568,25 +7703,29 @@
7568
7703
  }
7569
7704
  }
7570
7705
  /**
7571
- * Get Blockchain API status
7572
- * Get Blockchain API status
7706
+ * Retrieves the price of a name. The `amount` given will be in the smallest possible units of the currency.
7707
+ * Get Name Price
7573
7708
  */
7574
7709
  ;
7575
7710
 
7576
- _proto.getStatusRaw = function getStatusRaw(initOverrides) {
7711
+ _proto.getNamePriceRaw = function getNamePriceRaw(requestParameters, initOverrides) {
7577
7712
  try {
7578
- var _this18 = this;
7713
+ var _this30 = this;
7714
+
7715
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7716
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNamePrice.');
7717
+ }
7579
7718
 
7580
7719
  var queryParameters = {};
7581
7720
  var headerParameters = {};
7582
- return Promise.resolve(_this18.request({
7583
- path: "/extended/v1/status",
7721
+ return Promise.resolve(_this30.request({
7722
+ path: "/v2/prices/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7584
7723
  method: 'GET',
7585
7724
  headers: headerParameters,
7586
7725
  query: queryParameters
7587
7726
  }, initOverrides)).then(function (response) {
7588
7727
  return new JSONApiResponse(response, function (jsonValue) {
7589
- return ServerStatusResponseFromJSON(jsonValue);
7728
+ return BnsGetNamePriceResponseFromJSON(jsonValue);
7590
7729
  });
7591
7730
  });
7592
7731
  } catch (e) {
@@ -7594,16 +7733,16 @@
7594
7733
  }
7595
7734
  }
7596
7735
  /**
7597
- * Get Blockchain API status
7598
- * Get Blockchain API status
7736
+ * Retrieves the price of a name. The `amount` given will be in the smallest possible units of the currency.
7737
+ * Get Name Price
7599
7738
  */
7600
7739
  ;
7601
7740
 
7602
- _proto.getStatus = function getStatus(initOverrides) {
7741
+ _proto.getNamePrice = function getNamePrice(requestParameters, initOverrides) {
7603
7742
  try {
7604
- var _this20 = this;
7743
+ var _this32 = this;
7605
7744
 
7606
- return Promise.resolve(_this20.getStatusRaw(initOverrides)).then(function (response) {
7745
+ return Promise.resolve(_this32.getNamePriceRaw(requestParameters, initOverrides)).then(function (response) {
7607
7746
  return Promise.resolve(response.value());
7608
7747
  });
7609
7748
  } catch (e) {
@@ -7611,29 +7750,33 @@
7611
7750
  }
7612
7751
  }
7613
7752
  /**
7614
- * Get total and unlocked STX supply
7753
+ * Retrieves a list of names owned by the address provided.
7754
+ * Get Names Owned by Address
7615
7755
  */
7616
7756
  ;
7617
7757
 
7618
- _proto.getStxSupplyRaw = function getStxSupplyRaw(requestParameters, initOverrides) {
7758
+ _proto.getNamesOwnedByAddressRaw = function getNamesOwnedByAddressRaw(requestParameters, initOverrides) {
7619
7759
  try {
7620
- var _this22 = this;
7760
+ var _this34 = this;
7621
7761
 
7622
- var queryParameters = {};
7762
+ if (requestParameters.blockchain === null || requestParameters.blockchain === undefined) {
7763
+ throw new RequiredError('blockchain', 'Required parameter requestParameters.blockchain was null or undefined when calling getNamesOwnedByAddress.');
7764
+ }
7623
7765
 
7624
- if (requestParameters.height !== undefined) {
7625
- queryParameters['height'] = requestParameters.height;
7766
+ if (requestParameters.address === null || requestParameters.address === undefined) {
7767
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getNamesOwnedByAddress.');
7626
7768
  }
7627
7769
 
7770
+ var queryParameters = {};
7628
7771
  var headerParameters = {};
7629
- return Promise.resolve(_this22.request({
7630
- path: "/extended/v1/stx_supply",
7772
+ return Promise.resolve(_this34.request({
7773
+ path: "/v1/addresses/{blockchain}/{address}".replace("{" + "blockchain" + "}", encodeURIComponent(String(requestParameters.blockchain))).replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
7631
7774
  method: 'GET',
7632
7775
  headers: headerParameters,
7633
7776
  query: queryParameters
7634
7777
  }, initOverrides)).then(function (response) {
7635
7778
  return new JSONApiResponse(response, function (jsonValue) {
7636
- return GetStxSupplyResponseFromJSON(jsonValue);
7779
+ return BnsNamesOwnByAddressResponseFromJSON(jsonValue);
7637
7780
  });
7638
7781
  });
7639
7782
  } catch (e) {
@@ -7641,15 +7784,16 @@
7641
7784
  }
7642
7785
  }
7643
7786
  /**
7644
- * Get total and unlocked STX supply
7787
+ * Retrieves a list of names owned by the address provided.
7788
+ * Get Names Owned by Address
7645
7789
  */
7646
7790
  ;
7647
7791
 
7648
- _proto.getStxSupply = function getStxSupply(requestParameters, initOverrides) {
7792
+ _proto.getNamesOwnedByAddress = function getNamesOwnedByAddress(requestParameters, initOverrides) {
7649
7793
  try {
7650
- var _this24 = this;
7794
+ var _this36 = this;
7651
7795
 
7652
- return Promise.resolve(_this24.getStxSupplyRaw(requestParameters, initOverrides)).then(function (response) {
7796
+ return Promise.resolve(_this36.getNamesOwnedByAddressRaw(requestParameters, initOverrides)).then(function (response) {
7653
7797
  return Promise.resolve(response.value());
7654
7798
  });
7655
7799
  } catch (e) {
@@ -7657,38 +7801,53 @@
7657
7801
  }
7658
7802
  }
7659
7803
  /**
7660
- * Get circulating STX supply in plain text format
7804
+ * Retrieves a list of names within a given namespace.
7805
+ * Get Namespace Names
7661
7806
  */
7662
7807
  ;
7663
7808
 
7664
- _proto.getStxSupplyCirculatingPlainRaw = function getStxSupplyCirculatingPlainRaw(initOverrides) {
7809
+ _proto.getNamespaceNamesRaw = function getNamespaceNamesRaw(requestParameters, initOverrides) {
7665
7810
  try {
7666
- var _this26 = this;
7811
+ var _this38 = this;
7812
+
7813
+ if (requestParameters.tld === null || requestParameters.tld === undefined) {
7814
+ throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespaceNames.');
7815
+ }
7816
+
7817
+ if (requestParameters.page === null || requestParameters.page === undefined) {
7818
+ throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getNamespaceNames.');
7819
+ }
7667
7820
 
7668
7821
  var queryParameters = {};
7822
+
7823
+ if (requestParameters.page !== undefined) {
7824
+ queryParameters['page'] = requestParameters.page;
7825
+ }
7826
+
7669
7827
  var headerParameters = {};
7670
- return Promise.resolve(_this26.request({
7671
- path: "/extended/v1/stx_supply/circulating/plain",
7828
+ return Promise.resolve(_this38.request({
7829
+ path: "/v1/namespaces/{tld}/names".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
7672
7830
  method: 'GET',
7673
7831
  headers: headerParameters,
7674
7832
  query: queryParameters
7675
7833
  }, initOverrides)).then(function (response) {
7676
- return new TextApiResponse(response);
7834
+ return new JSONApiResponse(response);
7677
7835
  });
7678
7836
  } catch (e) {
7679
7837
  return Promise.reject(e);
7680
7838
  }
7681
7839
  }
7682
7840
  /**
7683
- * Get circulating STX supply in plain text format
7841
+ * Retrieves a list of names within a given namespace.
7842
+ * Get Namespace Names
7684
7843
  */
7685
7844
  ;
7686
7845
 
7687
- _proto.getStxSupplyCirculatingPlain = function getStxSupplyCirculatingPlain(initOverrides) {
7846
+ _proto.getNamespaceNames = function getNamespaceNames(requestParameters, initOverrides) {
7688
7847
  try {
7689
- var _this28 = this;
7848
+ var _this40 = this;
7690
7849
 
7691
- return Promise.resolve(_this28.getStxSupplyCirculatingPlainRaw(initOverrides)).then(function (response) {
7850
+ return Promise.resolve(_this40.getNamespaceNamesRaw(requestParameters, initOverrides)).then(function (response) {
7692
7851
  return Promise.resolve(response.value());
7693
7852
  });
7694
7853
  } catch (e) {
@@ -7696,38 +7855,46 @@
7696
7855
  }
7697
7856
  }
7698
7857
  /**
7699
- * Get total STX supply in plain text format
7858
+ * Retrieves the price of a namespace. The `amount` given will be in the smallest possible units of the currency.
7859
+ * Get Namespace Price
7700
7860
  */
7701
7861
  ;
7702
7862
 
7703
- _proto.getStxSupplyTotalSupplyPlainRaw = function getStxSupplyTotalSupplyPlainRaw(initOverrides) {
7863
+ _proto.getNamespacePriceRaw = function getNamespacePriceRaw(requestParameters, initOverrides) {
7704
7864
  try {
7705
- var _this30 = this;
7865
+ var _this42 = this;
7866
+
7867
+ if (requestParameters.tld === null || requestParameters.tld === undefined) {
7868
+ throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespacePrice.');
7869
+ }
7706
7870
 
7707
7871
  var queryParameters = {};
7708
7872
  var headerParameters = {};
7709
- return Promise.resolve(_this30.request({
7710
- path: "/extended/v1/stx_supply/total/plain",
7873
+ return Promise.resolve(_this42.request({
7874
+ path: "/v2/prices/namespaces/{tld}".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
7711
7875
  method: 'GET',
7712
7876
  headers: headerParameters,
7713
7877
  query: queryParameters
7714
7878
  }, initOverrides)).then(function (response) {
7715
- return new TextApiResponse(response);
7879
+ return new JSONApiResponse(response, function (jsonValue) {
7880
+ return BnsGetNamespacePriceResponseFromJSON(jsonValue);
7881
+ });
7716
7882
  });
7717
7883
  } catch (e) {
7718
7884
  return Promise.reject(e);
7719
7885
  }
7720
7886
  }
7721
7887
  /**
7722
- * Get total STX supply in plain text format
7888
+ * Retrieves the price of a namespace. The `amount` given will be in the smallest possible units of the currency.
7889
+ * Get Namespace Price
7723
7890
  */
7724
7891
  ;
7725
7892
 
7726
- _proto.getStxSupplyTotalSupplyPlain = function getStxSupplyTotalSupplyPlain(initOverrides) {
7893
+ _proto.getNamespacePrice = function getNamespacePrice(requestParameters, initOverrides) {
7727
7894
  try {
7728
- var _this32 = this;
7895
+ var _this44 = this;
7729
7896
 
7730
- return Promise.resolve(_this32.getStxSupplyTotalSupplyPlainRaw(initOverrides)).then(function (response) {
7897
+ return Promise.resolve(_this44.getNamespacePriceRaw(requestParameters, initOverrides)).then(function (response) {
7731
7898
  return Promise.resolve(response.value());
7732
7899
  });
7733
7900
  } catch (e) {
@@ -7735,29 +7902,29 @@
7735
7902
  }
7736
7903
  }
7737
7904
  /**
7738
- * Get total and unlocked STX supply (results formatted the same as the legacy 1.0 API)
7905
+ * Retrieves the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Stacks transaction that introduced new subdomain operations, and empty array will be returned.
7906
+ * Get Subdomain at Transaction
7739
7907
  */
7740
7908
  ;
7741
7909
 
7742
- _proto.getTotalStxSupplyLegacyFormatRaw = function getTotalStxSupplyLegacyFormatRaw(requestParameters, initOverrides) {
7910
+ _proto.getSubdomainAtTransactionRaw = function getSubdomainAtTransactionRaw(requestParameters, initOverrides) {
7743
7911
  try {
7744
- var _this34 = this;
7745
-
7746
- var queryParameters = {};
7912
+ var _this46 = this;
7747
7913
 
7748
- if (requestParameters.height !== undefined) {
7749
- queryParameters['height'] = requestParameters.height;
7914
+ if (requestParameters.txid === null || requestParameters.txid === undefined) {
7915
+ throw new RequiredError('txid', 'Required parameter requestParameters.txid was null or undefined when calling getSubdomainAtTransaction.');
7750
7916
  }
7751
7917
 
7918
+ var queryParameters = {};
7752
7919
  var headerParameters = {};
7753
- return Promise.resolve(_this34.request({
7754
- path: "/extended/v1/stx_supply/legacy_format",
7920
+ return Promise.resolve(_this46.request({
7921
+ path: "/v1/subdomains/{txid}".replace("{" + "txid" + "}", encodeURIComponent(String(requestParameters.txid))),
7755
7922
  method: 'GET',
7756
7923
  headers: headerParameters,
7757
7924
  query: queryParameters
7758
7925
  }, initOverrides)).then(function (response) {
7759
7926
  return new JSONApiResponse(response, function (jsonValue) {
7760
- return GetStxSupplyLegacyFormatResponseFromJSON(jsonValue);
7927
+ return jsonValue.map(InlineResponse200FromJSON);
7761
7928
  });
7762
7929
  });
7763
7930
  } catch (e) {
@@ -7765,15 +7932,16 @@
7765
7932
  }
7766
7933
  }
7767
7934
  /**
7768
- * Get total and unlocked STX supply (results formatted the same as the legacy 1.0 API)
7935
+ * Retrieves the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Stacks transaction that introduced new subdomain operations, and empty array will be returned.
7936
+ * Get Subdomain at Transaction
7769
7937
  */
7770
7938
  ;
7771
7939
 
7772
- _proto.getTotalStxSupplyLegacyFormat = function getTotalStxSupplyLegacyFormat(requestParameters, initOverrides) {
7940
+ _proto.getSubdomainAtTransaction = function getSubdomainAtTransaction(requestParameters, initOverrides) {
7773
7941
  try {
7774
- var _this36 = this;
7942
+ var _this48 = this;
7775
7943
 
7776
- return Promise.resolve(_this36.getTotalStxSupplyLegacyFormatRaw(requestParameters, initOverrides)).then(function (response) {
7944
+ return Promise.resolve(_this48.getSubdomainAtTransactionRaw(requestParameters, initOverrides)).then(function (response) {
7777
7945
  return Promise.resolve(response.value());
7778
7946
  });
7779
7947
  } catch (e) {
@@ -7781,55 +7949,44 @@
7781
7949
  }
7782
7950
  };
7783
7951
 
7784
- return InfoApi;
7952
+ return NamesApi;
7785
7953
  }(BaseAPI);
7786
- /**
7787
- * @export
7788
- * @enum {string}
7789
- */
7790
-
7791
- exports.GetNetworkBlockTimeByNetworkNetworkEnum = void 0;
7792
-
7793
- (function (GetNetworkBlockTimeByNetworkNetworkEnum) {
7794
- GetNetworkBlockTimeByNetworkNetworkEnum["testnet"] = "testnet";
7795
- GetNetworkBlockTimeByNetworkNetworkEnum["mainnet"] = "mainnet";
7796
- })(exports.GetNetworkBlockTimeByNetworkNetworkEnum || (exports.GetNetworkBlockTimeByNetworkNetworkEnum = {}));
7797
7954
 
7798
7955
  /**
7799
7956
  *
7800
7957
  */
7801
7958
 
7802
- var MicroblocksApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7803
- _inheritsLoose(MicroblocksApi, _runtime$BaseAPI);
7959
+ var NonFungibleTokensApi = /*#__PURE__*/function (_runtime$BaseAPI) {
7960
+ _inheritsLoose(NonFungibleTokensApi, _runtime$BaseAPI);
7804
7961
 
7805
- function MicroblocksApi() {
7962
+ function NonFungibleTokensApi() {
7806
7963
  return _runtime$BaseAPI.apply(this, arguments) || this;
7807
7964
  }
7808
7965
 
7809
- var _proto = MicroblocksApi.prototype;
7966
+ var _proto = NonFungibleTokensApi.prototype;
7810
7967
 
7811
7968
  /**
7812
- * Get a specific microblock by hash
7813
- * Get microblock
7969
+ * Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
7970
+ * Non fungible tokens metadata for contract id
7814
7971
  */
7815
- _proto.getMicroblockByHashRaw = function getMicroblockByHashRaw(requestParameters, initOverrides) {
7972
+ _proto.getContractNftMetadataRaw = function getContractNftMetadataRaw(requestParameters, initOverrides) {
7816
7973
  try {
7817
7974
  var _this2 = this;
7818
7975
 
7819
- if (requestParameters.hash === null || requestParameters.hash === undefined) {
7820
- throw new RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getMicroblockByHash.');
7976
+ if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
7977
+ throw new RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getContractNftMetadata.');
7821
7978
  }
7822
7979
 
7823
7980
  var queryParameters = {};
7824
7981
  var headerParameters = {};
7825
7982
  return Promise.resolve(_this2.request({
7826
- path: "/extended/v1/microblock/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
7983
+ path: "/extended/v1/tokens/{contractId}/nft/metadata".replace("{" + "contractId" + "}", encodeURIComponent(String(requestParameters.contractId))),
7827
7984
  method: 'GET',
7828
7985
  headers: headerParameters,
7829
7986
  query: queryParameters
7830
7987
  }, initOverrides)).then(function (response) {
7831
7988
  return new JSONApiResponse(response, function (jsonValue) {
7832
- return MicroblockFromJSON(jsonValue);
7989
+ return NonFungibleTokenMetadataFromJSON(jsonValue);
7833
7990
  });
7834
7991
  });
7835
7992
  } catch (e) {
@@ -7837,16 +7994,16 @@
7837
7994
  }
7838
7995
  }
7839
7996
  /**
7840
- * Get a specific microblock by hash
7841
- * Get microblock
7997
+ * Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
7998
+ * Non fungible tokens metadata for contract id
7842
7999
  */
7843
8000
  ;
7844
8001
 
7845
- _proto.getMicroblockByHash = function getMicroblockByHash(requestParameters, initOverrides) {
8002
+ _proto.getContractNftMetadata = function getContractNftMetadata(requestParameters, initOverrides) {
7846
8003
  try {
7847
8004
  var _this4 = this;
7848
8005
 
7849
- return Promise.resolve(_this4.getMicroblockByHashRaw(requestParameters, initOverrides)).then(function (response) {
8006
+ return Promise.resolve(_this4.getContractNftMetadataRaw(requestParameters, initOverrides)).then(function (response) {
7850
8007
  return Promise.resolve(response.value());
7851
8008
  });
7852
8009
  } catch (e) {
@@ -7854,11 +8011,12 @@
7854
8011
  }
7855
8012
  }
7856
8013
  /**
7857
- * Get recent microblocks
8014
+ * Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
8015
+ * Non fungible tokens metadata list
7858
8016
  */
7859
8017
  ;
7860
8018
 
7861
- _proto.getMicroblockListRaw = function getMicroblockListRaw(requestParameters, initOverrides) {
8019
+ _proto.getNftMetadataListRaw = function getNftMetadataListRaw(requestParameters, initOverrides) {
7862
8020
  try {
7863
8021
  var _this6 = this;
7864
8022
 
@@ -7874,13 +8032,13 @@
7874
8032
 
7875
8033
  var headerParameters = {};
7876
8034
  return Promise.resolve(_this6.request({
7877
- path: "/extended/v1/microblock",
8035
+ path: "/extended/v1/tokens/nft/metadata",
7878
8036
  method: 'GET',
7879
8037
  headers: headerParameters,
7880
8038
  query: queryParameters
7881
8039
  }, initOverrides)).then(function (response) {
7882
8040
  return new JSONApiResponse(response, function (jsonValue) {
7883
- return MicroblockListResponseFromJSON(jsonValue);
8041
+ return NonFungibleTokensMetadataListFromJSON(jsonValue);
7884
8042
  });
7885
8043
  });
7886
8044
  } catch (e) {
@@ -7888,58 +8046,16 @@
7888
8046
  }
7889
8047
  }
7890
8048
  /**
7891
- * Get recent microblocks
8049
+ * Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
8050
+ * Non fungible tokens metadata list
7892
8051
  */
7893
8052
  ;
7894
8053
 
7895
- _proto.getMicroblockList = function getMicroblockList(requestParameters, initOverrides) {
8054
+ _proto.getNftMetadataList = function getNftMetadataList(requestParameters, initOverrides) {
7896
8055
  try {
7897
8056
  var _this8 = this;
7898
8057
 
7899
- return Promise.resolve(_this8.getMicroblockListRaw(requestParameters, initOverrides)).then(function (response) {
7900
- return Promise.resolve(response.value());
7901
- });
7902
- } catch (e) {
7903
- return Promise.reject(e);
7904
- }
7905
- }
7906
- /**
7907
- * This contains transactions that have been streamed in microblocks but not yet accepted or rejected in an anchor block
7908
- * Get the list of current transactions that belong to unanchored microblocks
7909
- */
7910
- ;
7911
-
7912
- _proto.getUnanchoredTxsRaw = function getUnanchoredTxsRaw(initOverrides) {
7913
- try {
7914
- var _this10 = this;
7915
-
7916
- var queryParameters = {};
7917
- var headerParameters = {};
7918
- return Promise.resolve(_this10.request({
7919
- path: "/extended/v1/microblock/unanchored/txs",
7920
- method: 'GET',
7921
- headers: headerParameters,
7922
- query: queryParameters
7923
- }, initOverrides)).then(function (response) {
7924
- return new JSONApiResponse(response, function (jsonValue) {
7925
- return UnanchoredTransactionListResponseFromJSON(jsonValue);
7926
- });
7927
- });
7928
- } catch (e) {
7929
- return Promise.reject(e);
7930
- }
7931
- }
7932
- /**
7933
- * This contains transactions that have been streamed in microblocks but not yet accepted or rejected in an anchor block
7934
- * Get the list of current transactions that belong to unanchored microblocks
7935
- */
7936
- ;
7937
-
7938
- _proto.getUnanchoredTxs = function getUnanchoredTxs(initOverrides) {
7939
- try {
7940
- var _this12 = this;
7941
-
7942
- return Promise.resolve(_this12.getUnanchoredTxsRaw(initOverrides)).then(function (response) {
8058
+ return Promise.resolve(_this8.getNftMetadataListRaw(requestParameters, initOverrides)).then(function (response) {
7943
8059
  return Promise.resolve(response.value());
7944
8060
  });
7945
8061
  } catch (e) {
@@ -7947,7 +8063,7 @@
7947
8063
  }
7948
8064
  };
7949
8065
 
7950
- return MicroblocksApi;
8066
+ return NonFungibleTokensApi;
7951
8067
  }(BaseAPI);
7952
8068
 
7953
8069
  /**
@@ -8011,7 +8127,7 @@
8011
8127
  }
8012
8128
  }
8013
8129
  /**
8014
- * A BlockRequest is utilized to make a block request on the /block endpoint.
8130
+ * Retrieves the Block information for a given block identifier including a list of all transactions in the block.
8015
8131
  * Get a Block
8016
8132
  */
8017
8133
  ;
@@ -8043,7 +8159,7 @@
8043
8159
  }
8044
8160
  }
8045
8161
  /**
8046
- * A BlockRequest is utilized to make a block request on the /block endpoint.
8162
+ * Retrieves the Block information for a given block identifier including a list of all transactions in the block.
8047
8163
  * Get a Block
8048
8164
  */
8049
8165
  ;
@@ -8060,7 +8176,7 @@
8060
8176
  }
8061
8177
  }
8062
8178
  /**
8063
- * A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse.
8179
+ * Retrieves a Transaction included in a block that is not returned in a BlockResponse.
8064
8180
  * Get a Block Transaction
8065
8181
  */
8066
8182
  ;
@@ -8092,7 +8208,7 @@
8092
8208
  }
8093
8209
  }
8094
8210
  /**
8095
- * A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse.
8211
+ * Retrieves a Transaction included in a block that is not returned in a BlockResponse.
8096
8212
  * Get a Block Transaction
8097
8213
  */
8098
8214
  ;
@@ -8158,7 +8274,7 @@
8158
8274
  }
8159
8275
  }
8160
8276
  /**
8161
- * TODO
8277
+ * Retrieves the Account Identifier information based on a Public Key for a given network
8162
8278
  * Derive an AccountIdentifier from a PublicKey
8163
8279
  */
8164
8280
  ;
@@ -8190,7 +8306,7 @@
8190
8306
  }
8191
8307
  }
8192
8308
  /**
8193
- * TODO
8309
+ * Retrieves the Account Identifier information based on a Public Key for a given network
8194
8310
  * Derive an AccountIdentifier from a PublicKey
8195
8311
  */
8196
8312
  ;
@@ -8207,7 +8323,7 @@
8207
8323
  }
8208
8324
  }
8209
8325
  /**
8210
- * TODO
8326
+ * Retrieves the network-specific transaction hash for a signed transaction.
8211
8327
  * Get the Hash of a Signed Transaction
8212
8328
  */
8213
8329
  ;
@@ -8239,7 +8355,7 @@
8239
8355
  }
8240
8356
  }
8241
8357
  /**
8242
- * TODO
8358
+ * Retrieves the network-specific transaction hash for a signed transaction.
8243
8359
  * Get the Hash of a Signed Transaction
8244
8360
  */
8245
8361
  ;
@@ -8256,7 +8372,7 @@
8256
8372
  }
8257
8373
  }
8258
8374
  /**
8259
- * TODO
8375
+ * To Do
8260
8376
  * Get Metadata for Transaction Construction
8261
8377
  */
8262
8378
  ;
@@ -8288,7 +8404,7 @@
8288
8404
  }
8289
8405
  }
8290
8406
  /**
8291
- * TODO
8407
+ * To Do
8292
8408
  * Get Metadata for Transaction Construction
8293
8409
  */
8294
8410
  ;
@@ -8501,7 +8617,7 @@
8501
8617
  }
8502
8618
  }
8503
8619
  /**
8504
- * Get all Transaction Identifiers in the mempool.
8620
+ * Retrieves a list of transcations currently in the mempool for a given network.
8505
8621
  * Get All Mempool Transactions
8506
8622
  */
8507
8623
  ;
@@ -8533,7 +8649,7 @@
8533
8649
  }
8534
8650
  }
8535
8651
  /**
8536
- * Get all Transaction Identifiers in the mempool.
8652
+ * Retrieves a list of transcations currently in the mempool for a given network.
8537
8653
  * Get All Mempool Transactions
8538
8654
  */
8539
8655
  ;
@@ -8550,7 +8666,7 @@
8550
8666
  }
8551
8667
  }
8552
8668
  /**
8553
- * A MempoolTransactionRequest is utilized to retrieve a transaction from the mempool.
8669
+ * Retrieves transaction details from the mempool for a given transaction id from a given network.
8554
8670
  * Get a Mempool Transaction
8555
8671
  */
8556
8672
  ;
@@ -8582,7 +8698,7 @@
8582
8698
  }
8583
8699
  }
8584
8700
  /**
8585
- * A MempoolTransactionRequest is utilized to retrieve a transaction from the mempool.
8701
+ * Retrieves transaction details from the mempool for a given transaction id from a given network.
8586
8702
  * Get a Mempool Transaction
8587
8703
  */
8588
8704
  ;
@@ -8599,7 +8715,7 @@
8599
8715
  }
8600
8716
  }
8601
8717
  /**
8602
- * This endpoint returns a list of NetworkIdentifiers that the Rosetta server supports.
8718
+ * Retrieves a list of NetworkIdentifiers that the Rosetta server supports.
8603
8719
  * Get List of Available Networks
8604
8720
  */
8605
8721
  ;
@@ -8625,7 +8741,7 @@
8625
8741
  }
8626
8742
  }
8627
8743
  /**
8628
- * This endpoint returns a list of NetworkIdentifiers that the Rosetta server supports.
8744
+ * Retrieves a list of NetworkIdentifiers that the Rosetta server supports.
8629
8745
  * Get List of Available Networks
8630
8746
  */
8631
8747
  ;
@@ -8642,7 +8758,7 @@
8642
8758
  }
8643
8759
  }
8644
8760
  /**
8645
- * This endpoint returns the version information and allowed network-specific types for a NetworkIdentifier. Any NetworkIdentifier returned by /network/list should be accessible here. Because options are retrievable in the context of a NetworkIdentifier, it is possible to define unique options for each network.
8761
+ * Retrieves the version information and allowed network-specific types for a NetworkIdentifier. Any NetworkIdentifier returned by /network/list should be accessible here. Because options are retrievable in the context of a NetworkIdentifier, it is possible to define unique options for each network.
8646
8762
  * Get Network Options
8647
8763
  */
8648
8764
  ;
@@ -8674,7 +8790,7 @@
8674
8790
  }
8675
8791
  }
8676
8792
  /**
8677
- * This endpoint returns the version information and allowed network-specific types for a NetworkIdentifier. Any NetworkIdentifier returned by /network/list should be accessible here. Because options are retrievable in the context of a NetworkIdentifier, it is possible to define unique options for each network.
8793
+ * Retrieves the version information and allowed network-specific types for a NetworkIdentifier. Any NetworkIdentifier returned by /network/list should be accessible here. Because options are retrievable in the context of a NetworkIdentifier, it is possible to define unique options for each network.
8678
8794
  * Get Network Options
8679
8795
  */
8680
8796
  ;
@@ -8691,7 +8807,7 @@
8691
8807
  }
8692
8808
  }
8693
8809
  /**
8694
- * This endpoint returns the current status of the network requested. Any NetworkIdentifier returned by /network/list should be accessible here.
8810
+ * Retrieves the current status of the network requested. Any NetworkIdentifier returned by /network/list should be accessible here.
8695
8811
  * Get Network Status
8696
8812
  */
8697
8813
  ;
@@ -8721,7 +8837,7 @@
8721
8837
  }
8722
8838
  }
8723
8839
  /**
8724
- * This endpoint returns the current status of the network requested. Any NetworkIdentifier returned by /network/list should be accessible here.
8840
+ * Retrieves the current status of the network requested. Any NetworkIdentifier returned by /network/list should be accessible here.
8725
8841
  * Get Network Status
8726
8842
  */
8727
8843
  ;
@@ -8767,6 +8883,11 @@
8767
8883
  }
8768
8884
 
8769
8885
  var queryParameters = {};
8886
+
8887
+ if (requestParameters.includeMetadata !== undefined) {
8888
+ queryParameters['include_metadata'] = requestParameters.includeMetadata;
8889
+ }
8890
+
8770
8891
  var headerParameters = {};
8771
8892
  return Promise.resolve(_this2.request({
8772
8893
  path: "/extended/v1/search/{id}".replace("{" + "id" + "}", encodeURIComponent(String(requestParameters.id))),
@@ -8879,7 +9000,7 @@
8879
9000
  }
8880
9001
  }
8881
9002
  /**
8882
- * Get contract info using the contract ID
9003
+ * Retrieves details of a contract with a given `contract_id`
8883
9004
  * Get contract info
8884
9005
  */
8885
9006
  ;
@@ -8912,7 +9033,7 @@
8912
9033
  }
8913
9034
  }
8914
9035
  /**
8915
- * Get contract info using the contract ID
9036
+ * Retrieves details of a contract with a given `contract_id`
8916
9037
  * Get contract info
8917
9038
  */
8918
9039
  ;
@@ -8929,7 +9050,7 @@
8929
9050
  }
8930
9051
  }
8931
9052
  /**
8932
- * Attempt to fetch data from a contract data map. The contract is identified with [Stacks Address] and [Contract Name] in the URL path. The map is identified with [Map Name]. The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom. In the response, `data` is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
9053
+ * Attempt to fetch data from a contract data map. The contract is identified with Stacks Address `contract_address` and Contract Name `contract_address` in the URL path. The map is identified with [Map Name]. The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom. In the response, `data` is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
8933
9054
  * Get specific data-map inside a contract
8934
9055
  */
8935
9056
  ;
@@ -8982,7 +9103,7 @@
8982
9103
  }
8983
9104
  }
8984
9105
  /**
8985
- * Attempt to fetch data from a contract data map. The contract is identified with [Stacks Address] and [Contract Name] in the URL path. The map is identified with [Map Name]. The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom. In the response, `data` is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
9106
+ * Attempt to fetch data from a contract data map. The contract is identified with Stacks Address `contract_address` and Contract Name `contract_address` in the URL path. The map is identified with [Map Name]. The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom. In the response, `data` is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
8986
9107
  * Get specific data-map inside a contract
8987
9108
  */
8988
9109
  ;
@@ -8999,7 +9120,7 @@
8999
9120
  }
9000
9121
  }
9001
9122
  /**
9002
- * Get contract events using a contract ID
9123
+ * Retrieves a list of events that have been triggered by a given `contract_id`
9003
9124
  * Get contract events
9004
9125
  */
9005
9126
  ;
@@ -9040,7 +9161,7 @@
9040
9161
  }
9041
9162
  }
9042
9163
  /**
9043
- * Get contract events using a contract ID
9164
+ * Retrieves a list of events that have been triggered by a given `contract_id`
9044
9165
  * Get contract events
9045
9166
  */
9046
9167
  ;
@@ -9057,7 +9178,7 @@
9057
9178
  }
9058
9179
  }
9059
9180
  /**
9060
- * Get contract interface using a `contract_address` and `contract name`
9181
+ * Retrieves a contract interface with a given `contract_address` and `contract name`
9061
9182
  * Get contract interface
9062
9183
  */
9063
9184
  ;
@@ -9096,7 +9217,7 @@
9096
9217
  }
9097
9218
  }
9098
9219
  /**
9099
- * Get contract interface using a `contract_address` and `contract name`
9220
+ * Retrieves a contract interface with a given `contract_address` and `contract name`
9100
9221
  * Get contract interface
9101
9222
  */
9102
9223
  ;
@@ -9113,7 +9234,7 @@
9113
9234
  }
9114
9235
  }
9115
9236
  /**
9116
- * Returns the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
9237
+ * Retrieves the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
9117
9238
  * Get contract source
9118
9239
  */
9119
9240
  ;
@@ -9156,7 +9277,7 @@
9156
9277
  }
9157
9278
  }
9158
9279
  /**
9159
- * Returns the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
9280
+ * Retrieves the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
9160
9281
  * Get contract source
9161
9282
  */
9162
9283
  ;
@@ -9171,6 +9292,66 @@
9171
9292
  } catch (e) {
9172
9293
  return Promise.reject(e);
9173
9294
  }
9295
+ }
9296
+ /**
9297
+ * Retrieves a list of contracts based on the following traits listed in JSON format - functions, variables, maps, fungible tokens and non-fungible tokens
9298
+ * Get contracts by trait
9299
+ */
9300
+ ;
9301
+
9302
+ _proto.getContractsByTraitRaw = function getContractsByTraitRaw(requestParameters, initOverrides) {
9303
+ try {
9304
+ var _this26 = this;
9305
+
9306
+ if (requestParameters.traitAbi === null || requestParameters.traitAbi === undefined) {
9307
+ throw new RequiredError('traitAbi', 'Required parameter requestParameters.traitAbi was null or undefined when calling getContractsByTrait.');
9308
+ }
9309
+
9310
+ var queryParameters = {};
9311
+
9312
+ if (requestParameters.traitAbi !== undefined) {
9313
+ queryParameters['trait_abi'] = requestParameters.traitAbi;
9314
+ }
9315
+
9316
+ if (requestParameters.limit !== undefined) {
9317
+ queryParameters['limit'] = requestParameters.limit;
9318
+ }
9319
+
9320
+ if (requestParameters.offset !== undefined) {
9321
+ queryParameters['offset'] = requestParameters.offset;
9322
+ }
9323
+
9324
+ var headerParameters = {};
9325
+ return Promise.resolve(_this26.request({
9326
+ path: "/extended/v1/contract/by_trait",
9327
+ method: 'GET',
9328
+ headers: headerParameters,
9329
+ query: queryParameters
9330
+ }, initOverrides)).then(function (response) {
9331
+ return new JSONApiResponse(response, function (jsonValue) {
9332
+ return ContractListResponseFromJSON(jsonValue);
9333
+ });
9334
+ });
9335
+ } catch (e) {
9336
+ return Promise.reject(e);
9337
+ }
9338
+ }
9339
+ /**
9340
+ * Retrieves a list of contracts based on the following traits listed in JSON format - functions, variables, maps, fungible tokens and non-fungible tokens
9341
+ * Get contracts by trait
9342
+ */
9343
+ ;
9344
+
9345
+ _proto.getContractsByTrait = function getContractsByTrait(requestParameters, initOverrides) {
9346
+ try {
9347
+ var _this28 = this;
9348
+
9349
+ return Promise.resolve(_this28.getContractsByTraitRaw(requestParameters, initOverrides)).then(function (response) {
9350
+ return Promise.resolve(response.value());
9351
+ });
9352
+ } catch (e) {
9353
+ return Promise.reject(e);
9354
+ }
9174
9355
  };
9175
9356
 
9176
9357
  return SmartContractsApi;
@@ -9180,37 +9361,42 @@
9180
9361
  *
9181
9362
  */
9182
9363
 
9183
- var TokensApi = /*#__PURE__*/function (_runtime$BaseAPI) {
9184
- _inheritsLoose(TokensApi, _runtime$BaseAPI);
9364
+ var StackingRewardsApi = /*#__PURE__*/function (_runtime$BaseAPI) {
9365
+ _inheritsLoose(StackingRewardsApi, _runtime$BaseAPI);
9185
9366
 
9186
- function TokensApi() {
9367
+ function StackingRewardsApi() {
9187
9368
  return _runtime$BaseAPI.apply(this, arguments) || this;
9188
9369
  }
9189
9370
 
9190
- var _proto = TokensApi.prototype;
9371
+ var _proto = StackingRewardsApi.prototype;
9191
9372
 
9192
9373
  /**
9193
- * Get fungible tokens metadata for given contract id
9194
- * Fungible tokens metadata for contract id
9374
+ * Retrieves a list of recent burnchain (e.g. Bitcoin) reward recipients with the associated amounts and block info
9375
+ * Get recent burnchain reward recipients
9195
9376
  */
9196
- _proto.getContractFtMetadataRaw = function getContractFtMetadataRaw(requestParameters, initOverrides) {
9377
+ _proto.getBurnchainRewardListRaw = function getBurnchainRewardListRaw(requestParameters, initOverrides) {
9197
9378
  try {
9198
9379
  var _this2 = this;
9199
9380
 
9200
- if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
9201
- throw new RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getContractFtMetadata.');
9381
+ var queryParameters = {};
9382
+
9383
+ if (requestParameters.limit !== undefined) {
9384
+ queryParameters['limit'] = requestParameters.limit;
9385
+ }
9386
+
9387
+ if (requestParameters.offset !== undefined) {
9388
+ queryParameters['offset'] = requestParameters.offset;
9202
9389
  }
9203
9390
 
9204
- var queryParameters = {};
9205
9391
  var headerParameters = {};
9206
9392
  return Promise.resolve(_this2.request({
9207
- path: "/extended/v1/tokens/{contractId}/ft/metadata".replace("{" + "contractId" + "}", encodeURIComponent(String(requestParameters.contractId))),
9393
+ path: "/extended/v1/burnchain/rewards",
9208
9394
  method: 'GET',
9209
9395
  headers: headerParameters,
9210
9396
  query: queryParameters
9211
9397
  }, initOverrides)).then(function (response) {
9212
9398
  return new JSONApiResponse(response, function (jsonValue) {
9213
- return FungibleTokenMetadataFromJSON(jsonValue);
9399
+ return BurnchainRewardListResponseFromJSON(jsonValue);
9214
9400
  });
9215
9401
  });
9216
9402
  } catch (e) {
@@ -9218,16 +9404,16 @@
9218
9404
  }
9219
9405
  }
9220
9406
  /**
9221
- * Get fungible tokens metadata for given contract id
9222
- * Fungible tokens metadata for contract id
9407
+ * Retrieves a list of recent burnchain (e.g. Bitcoin) reward recipients with the associated amounts and block info
9408
+ * Get recent burnchain reward recipients
9223
9409
  */
9224
9410
  ;
9225
9411
 
9226
- _proto.getContractFtMetadata = function getContractFtMetadata(requestParameters, initOverrides) {
9412
+ _proto.getBurnchainRewardList = function getBurnchainRewardList(requestParameters, initOverrides) {
9227
9413
  try {
9228
9414
  var _this4 = this;
9229
9415
 
9230
- return Promise.resolve(_this4.getContractFtMetadataRaw(requestParameters, initOverrides)).then(function (response) {
9416
+ return Promise.resolve(_this4.getBurnchainRewardListRaw(requestParameters, initOverrides)).then(function (response) {
9231
9417
  return Promise.resolve(response.value());
9232
9418
  });
9233
9419
  } catch (e) {
@@ -9235,29 +9421,38 @@
9235
9421
  }
9236
9422
  }
9237
9423
  /**
9238
- * Get non fungible tokens metadata for given contract id
9239
- * Non fungible tokens metadata for contract id
9424
+ * Retrieves a list of recent burnchain (e.g. Bitcoin) rewards for the given recipient with the associated amounts and block info
9425
+ * Get recent burnchain reward for the given recipient
9240
9426
  */
9241
9427
  ;
9242
9428
 
9243
- _proto.getContractNftMetadataRaw = function getContractNftMetadataRaw(requestParameters, initOverrides) {
9429
+ _proto.getBurnchainRewardListByAddressRaw = function getBurnchainRewardListByAddressRaw(requestParameters, initOverrides) {
9244
9430
  try {
9245
9431
  var _this6 = this;
9246
9432
 
9247
- if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
9248
- throw new RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getContractNftMetadata.');
9433
+ if (requestParameters.address === null || requestParameters.address === undefined) {
9434
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardListByAddress.');
9249
9435
  }
9250
9436
 
9251
9437
  var queryParameters = {};
9438
+
9439
+ if (requestParameters.limit !== undefined) {
9440
+ queryParameters['limit'] = requestParameters.limit;
9441
+ }
9442
+
9443
+ if (requestParameters.offset !== undefined) {
9444
+ queryParameters['offset'] = requestParameters.offset;
9445
+ }
9446
+
9252
9447
  var headerParameters = {};
9253
9448
  return Promise.resolve(_this6.request({
9254
- path: "/extended/v1/tokens/{contractId}/nft/metadata".replace("{" + "contractId" + "}", encodeURIComponent(String(requestParameters.contractId))),
9449
+ path: "/extended/v1/burnchain/rewards/{address}".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
9255
9450
  method: 'GET',
9256
9451
  headers: headerParameters,
9257
9452
  query: queryParameters
9258
9453
  }, initOverrides)).then(function (response) {
9259
9454
  return new JSONApiResponse(response, function (jsonValue) {
9260
- return NonFungibleTokenMetadataFromJSON(jsonValue);
9455
+ return BurnchainRewardListResponseFromJSON(jsonValue);
9261
9456
  });
9262
9457
  });
9263
9458
  } catch (e) {
@@ -9265,16 +9460,16 @@
9265
9460
  }
9266
9461
  }
9267
9462
  /**
9268
- * Get non fungible tokens metadata for given contract id
9269
- * Non fungible tokens metadata for contract id
9463
+ * Retrieves a list of recent burnchain (e.g. Bitcoin) rewards for the given recipient with the associated amounts and block info
9464
+ * Get recent burnchain reward for the given recipient
9270
9465
  */
9271
9466
  ;
9272
9467
 
9273
- _proto.getContractNftMetadata = function getContractNftMetadata(requestParameters, initOverrides) {
9468
+ _proto.getBurnchainRewardListByAddress = function getBurnchainRewardListByAddress(requestParameters, initOverrides) {
9274
9469
  try {
9275
9470
  var _this8 = this;
9276
9471
 
9277
- return Promise.resolve(_this8.getContractNftMetadataRaw(requestParameters, initOverrides)).then(function (response) {
9472
+ return Promise.resolve(_this8.getBurnchainRewardListByAddressRaw(requestParameters, initOverrides)).then(function (response) {
9278
9473
  return Promise.resolve(response.value());
9279
9474
  });
9280
9475
  } catch (e) {
@@ -9282,12 +9477,12 @@
9282
9477
  }
9283
9478
  }
9284
9479
  /**
9285
- * Get list of fungible tokens metadata
9286
- * Fungible tokens metadata list
9480
+ * Retrieves a list of the Bitcoin addresses that would validly receive Proof-of-Transfer commitments.
9481
+ * Get recent reward slot holders
9287
9482
  */
9288
9483
  ;
9289
9484
 
9290
- _proto.getFtMetadataListRaw = function getFtMetadataListRaw(requestParameters, initOverrides) {
9485
+ _proto.getBurnchainRewardSlotHoldersRaw = function getBurnchainRewardSlotHoldersRaw(requestParameters, initOverrides) {
9291
9486
  try {
9292
9487
  var _this10 = this;
9293
9488
 
@@ -9303,13 +9498,13 @@
9303
9498
 
9304
9499
  var headerParameters = {};
9305
9500
  return Promise.resolve(_this10.request({
9306
- path: "/extended/v1/tokens/ft/metadata",
9501
+ path: "/extended/v1/burnchain/reward_slot_holders",
9307
9502
  method: 'GET',
9308
9503
  headers: headerParameters,
9309
9504
  query: queryParameters
9310
9505
  }, initOverrides)).then(function (response) {
9311
9506
  return new JSONApiResponse(response, function (jsonValue) {
9312
- return FungibleTokensMetadataListFromJSON(jsonValue);
9507
+ return BurnchainRewardSlotHolderListResponseFromJSON(jsonValue);
9313
9508
  });
9314
9509
  });
9315
9510
  } catch (e) {
@@ -9317,16 +9512,16 @@
9317
9512
  }
9318
9513
  }
9319
9514
  /**
9320
- * Get list of fungible tokens metadata
9321
- * Fungible tokens metadata list
9515
+ * Retrieves a list of the Bitcoin addresses that would validly receive Proof-of-Transfer commitments.
9516
+ * Get recent reward slot holders
9322
9517
  */
9323
9518
  ;
9324
9519
 
9325
- _proto.getFtMetadataList = function getFtMetadataList(requestParameters, initOverrides) {
9520
+ _proto.getBurnchainRewardSlotHolders = function getBurnchainRewardSlotHolders(requestParameters, initOverrides) {
9326
9521
  try {
9327
9522
  var _this12 = this;
9328
9523
 
9329
- return Promise.resolve(_this12.getFtMetadataListRaw(requestParameters, initOverrides)).then(function (response) {
9524
+ return Promise.resolve(_this12.getBurnchainRewardSlotHoldersRaw(requestParameters, initOverrides)).then(function (response) {
9330
9525
  return Promise.resolve(response.value());
9331
9526
  });
9332
9527
  } catch (e) {
@@ -9334,15 +9529,19 @@
9334
9529
  }
9335
9530
  }
9336
9531
  /**
9337
- * Get list of non fungible tokens metadata
9338
- * Non fungible tokens metadata list
9532
+ * Retrieves a list of the Bitcoin addresses that would validly receive Proof-of-Transfer commitments for a given reward slot holder recipient address.
9533
+ * Get recent reward slot holder entries for the given address
9339
9534
  */
9340
9535
  ;
9341
9536
 
9342
- _proto.getNftMetadataListRaw = function getNftMetadataListRaw(requestParameters, initOverrides) {
9537
+ _proto.getBurnchainRewardSlotHoldersByAddressRaw = function getBurnchainRewardSlotHoldersByAddressRaw(requestParameters, initOverrides) {
9343
9538
  try {
9344
9539
  var _this14 = this;
9345
9540
 
9541
+ if (requestParameters.address === null || requestParameters.address === undefined) {
9542
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardSlotHoldersByAddress.');
9543
+ }
9544
+
9346
9545
  var queryParameters = {};
9347
9546
 
9348
9547
  if (requestParameters.limit !== undefined) {
@@ -9355,13 +9554,13 @@
9355
9554
 
9356
9555
  var headerParameters = {};
9357
9556
  return Promise.resolve(_this14.request({
9358
- path: "/extended/v1/tokens/nft/metadata",
9557
+ path: "/extended/v1/burnchain/reward_slot_holders/{address}".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
9359
9558
  method: 'GET',
9360
9559
  headers: headerParameters,
9361
9560
  query: queryParameters
9362
9561
  }, initOverrides)).then(function (response) {
9363
9562
  return new JSONApiResponse(response, function (jsonValue) {
9364
- return NonFungibleTokensMetadataListFromJSON(jsonValue);
9563
+ return BurnchainRewardSlotHolderListResponseFromJSON(jsonValue);
9365
9564
  });
9366
9565
  });
9367
9566
  } catch (e) {
@@ -9369,16 +9568,63 @@
9369
9568
  }
9370
9569
  }
9371
9570
  /**
9372
- * Get list of non fungible tokens metadata
9373
- * Non fungible tokens metadata list
9571
+ * Retrieves a list of the Bitcoin addresses that would validly receive Proof-of-Transfer commitments for a given reward slot holder recipient address.
9572
+ * Get recent reward slot holder entries for the given address
9374
9573
  */
9375
9574
  ;
9376
9575
 
9377
- _proto.getNftMetadataList = function getNftMetadataList(requestParameters, initOverrides) {
9576
+ _proto.getBurnchainRewardSlotHoldersByAddress = function getBurnchainRewardSlotHoldersByAddress(requestParameters, initOverrides) {
9378
9577
  try {
9379
9578
  var _this16 = this;
9380
9579
 
9381
- return Promise.resolve(_this16.getNftMetadataListRaw(requestParameters, initOverrides)).then(function (response) {
9580
+ return Promise.resolve(_this16.getBurnchainRewardSlotHoldersByAddressRaw(requestParameters, initOverrides)).then(function (response) {
9581
+ return Promise.resolve(response.value());
9582
+ });
9583
+ } catch (e) {
9584
+ return Promise.reject(e);
9585
+ }
9586
+ }
9587
+ /**
9588
+ * Retrieves the total burnchain (e.g. Bitcoin) rewards for a given recipient `address`
9589
+ * Get total burnchain rewards for the given recipient
9590
+ */
9591
+ ;
9592
+
9593
+ _proto.getBurnchainRewardsTotalByAddressRaw = function getBurnchainRewardsTotalByAddressRaw(requestParameters, initOverrides) {
9594
+ try {
9595
+ var _this18 = this;
9596
+
9597
+ if (requestParameters.address === null || requestParameters.address === undefined) {
9598
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getBurnchainRewardsTotalByAddress.');
9599
+ }
9600
+
9601
+ var queryParameters = {};
9602
+ var headerParameters = {};
9603
+ return Promise.resolve(_this18.request({
9604
+ path: "/extended/v1/burnchain/rewards/{address}/total".replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
9605
+ method: 'GET',
9606
+ headers: headerParameters,
9607
+ query: queryParameters
9608
+ }, initOverrides)).then(function (response) {
9609
+ return new JSONApiResponse(response, function (jsonValue) {
9610
+ return BurnchainRewardsTotalFromJSON(jsonValue);
9611
+ });
9612
+ });
9613
+ } catch (e) {
9614
+ return Promise.reject(e);
9615
+ }
9616
+ }
9617
+ /**
9618
+ * Retrieves the total burnchain (e.g. Bitcoin) rewards for a given recipient `address`
9619
+ * Get total burnchain rewards for the given recipient
9620
+ */
9621
+ ;
9622
+
9623
+ _proto.getBurnchainRewardsTotalByAddress = function getBurnchainRewardsTotalByAddress(requestParameters, initOverrides) {
9624
+ try {
9625
+ var _this20 = this;
9626
+
9627
+ return Promise.resolve(_this20.getBurnchainRewardsTotalByAddressRaw(requestParameters, initOverrides)).then(function (response) {
9382
9628
  return Promise.resolve(response.value());
9383
9629
  });
9384
9630
  } catch (e) {
@@ -9386,7 +9632,7 @@
9386
9632
  }
9387
9633
  };
9388
9634
 
9389
- return TokensApi;
9635
+ return StackingRewardsApi;
9390
9636
  }(BaseAPI);
9391
9637
 
9392
9638
  /**
@@ -9403,7 +9649,7 @@
9403
9649
  var _proto = TransactionsApi.prototype;
9404
9650
 
9405
9651
  /**
9406
- * Get all transactions for address in mempool
9652
+ * Retrieves all transactions for a given address that are currently in mempool
9407
9653
  * Transactions for address
9408
9654
  */
9409
9655
  _proto.getAddressMempoolTransactionsRaw = function getAddressMempoolTransactionsRaw(requestParameters, initOverrides) {
@@ -9444,7 +9690,7 @@
9444
9690
  }
9445
9691
  }
9446
9692
  /**
9447
- * Get all transactions for address in mempool
9693
+ * Retrieves all transactions for a given address that are currently in mempool
9448
9694
  * Transactions for address
9449
9695
  */
9450
9696
  ;
@@ -9461,7 +9707,7 @@
9461
9707
  }
9462
9708
  }
9463
9709
  /**
9464
- * Get all recently-broadcast mempool transactions
9710
+ * Retrieves all recently-broadcast transactions that have been dropped from the mempool. Transactions are dropped from the mempool if: * they were stale and awaiting garbage collection or, * were expensive, or * were replaced with a new fee
9465
9711
  * Get dropped mempool transactions
9466
9712
  */
9467
9713
  ;
@@ -9496,7 +9742,7 @@
9496
9742
  }
9497
9743
  }
9498
9744
  /**
9499
- * Get all recently-broadcast mempool transactions
9745
+ * Retrieves all recently-broadcast transactions that have been dropped from the mempool. Transactions are dropped from the mempool if: * they were stale and awaiting garbage collection or, * were expensive, or * were replaced with a new fee
9500
9746
  * Get dropped mempool transactions
9501
9747
  */
9502
9748
  ;
@@ -9513,7 +9759,7 @@
9513
9759
  }
9514
9760
  }
9515
9761
  /**
9516
- * Get all recently-broadcast mempool transactions
9762
+ * Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation.
9517
9763
  * Get mempool transactions
9518
9764
  */
9519
9765
  ;
@@ -9564,7 +9810,7 @@
9564
9810
  }
9565
9811
  }
9566
9812
  /**
9567
- * Get all recently-broadcast mempool transactions
9813
+ * Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation.
9568
9814
  * Get mempool transactions
9569
9815
  */
9570
9816
  ;
@@ -9581,7 +9827,7 @@
9581
9827
  }
9582
9828
  }
9583
9829
  /**
9584
- * Get raw transaction by ID
9830
+ * Retrieves a hex encoded serialized transaction for a given ID
9585
9831
  * Get Raw Transaction
9586
9832
  */
9587
9833
  ;
@@ -9611,7 +9857,7 @@
9611
9857
  }
9612
9858
  }
9613
9859
  /**
9614
- * Get raw transaction by ID
9860
+ * Retrieves a hex encoded serialized transaction for a given ID
9615
9861
  * Get Raw Transaction
9616
9862
  */
9617
9863
  ;
@@ -9628,7 +9874,7 @@
9628
9874
  }
9629
9875
  }
9630
9876
  /**
9631
- * Get a specific transaction by ID `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
9877
+ * Retrieves transaction details for a given transaction ID `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
9632
9878
  * Get transaction
9633
9879
  */
9634
9880
  ;
@@ -9669,7 +9915,7 @@
9669
9915
  }
9670
9916
  }
9671
9917
  /**
9672
- * Get a specific transaction by ID `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
9918
+ * Retrieves transaction details for a given transaction ID `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
9673
9919
  * Get transaction
9674
9920
  */
9675
9921
  ;
@@ -9686,7 +9932,7 @@
9686
9932
  }
9687
9933
  }
9688
9934
  /**
9689
- * Get all recently mined transactions If using TypeScript, import typings for this response from our types package: `import type { TransactionResults } from \'@stacks/stacks-blockchain-api-types\';`
9935
+ * Retrieves all recently mined transactions If using TypeScript, import typings for this response from our types package: `import type { TransactionResults } from \'@stacks/stacks-blockchain-api-types\';`
9690
9936
  * Get recent transactions
9691
9937
  */
9692
9938
  ;
@@ -9729,7 +9975,7 @@
9729
9975
  }
9730
9976
  }
9731
9977
  /**
9732
- * Get all recently mined transactions If using TypeScript, import typings for this response from our types package: `import type { TransactionResults } from \'@stacks/stacks-blockchain-api-types\';`
9978
+ * Retrieves all recently mined transactions If using TypeScript, import typings for this response from our types package: `import type { TransactionResults } from \'@stacks/stacks-blockchain-api-types\';`
9733
9979
  * Get recent transactions
9734
9980
  */
9735
9981
  ;
@@ -9746,8 +9992,8 @@
9746
9992
  }
9747
9993
  }
9748
9994
  /**
9749
- * Get all transactions in block
9750
- * Transactions in a block
9995
+ * Retrieves a list of all transactions within a block for a given block hash.
9996
+ * Transactions by block hash
9751
9997
  */
9752
9998
  ;
9753
9999
 
@@ -9785,8 +10031,8 @@
9785
10031
  }
9786
10032
  }
9787
10033
  /**
9788
- * Get all transactions in block
9789
- * Transactions in a block
10034
+ * Retrieves a list of all transactions within a block for a given block hash.
10035
+ * Transactions by block hash
9790
10036
  */
9791
10037
  ;
9792
10038
 
@@ -9802,8 +10048,8 @@
9802
10048
  }
9803
10049
  }
9804
10050
  /**
9805
- * Get all transactions in block by height
9806
- * Transactions in a block
10051
+ * Retrieves all transactions within a block at a given height
10052
+ * Transactions by block height
9807
10053
  */
9808
10054
  ;
9809
10055
 
@@ -9845,8 +10091,8 @@
9845
10091
  }
9846
10092
  }
9847
10093
  /**
9848
- * Get all transactions in block by height
9849
- * Transactions in a block
10094
+ * Retrieves all transactions within a block at a given height
10095
+ * Transactions by block height
9850
10096
  */
9851
10097
  ;
9852
10098
 
@@ -9862,19 +10108,81 @@
9862
10108
  }
9863
10109
  }
9864
10110
  /**
9865
- * Broadcast raw transactions on the network. You can use the [@stacks/transactions](https://github.com/blockstack/stacks.js) project to generate a raw transaction payload.
10111
+ * Retrieves a list of transactions for a given list of transaction IDs If using TypeScript, import typings for this response from our types package: `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
10112
+ * Get list of details for transactions
10113
+ */
10114
+ ;
10115
+
10116
+ _proto.getTxListDetailsRaw = function getTxListDetailsRaw(requestParameters, initOverrides) {
10117
+ try {
10118
+ var _this34 = this;
10119
+
10120
+ if (requestParameters.txId === null || requestParameters.txId === undefined) {
10121
+ throw new RequiredError('txId', 'Required parameter requestParameters.txId was null or undefined when calling getTxListDetails.');
10122
+ }
10123
+
10124
+ var queryParameters = {};
10125
+
10126
+ if (requestParameters.txId) {
10127
+ queryParameters['tx_id'] = requestParameters.txId;
10128
+ }
10129
+
10130
+ if (requestParameters.eventOffset !== undefined) {
10131
+ queryParameters['event_offset'] = requestParameters.eventOffset;
10132
+ }
10133
+
10134
+ if (requestParameters.eventLimit !== undefined) {
10135
+ queryParameters['event_limit'] = requestParameters.eventLimit;
10136
+ }
10137
+
10138
+ if (requestParameters.unanchored !== undefined) {
10139
+ queryParameters['unanchored'] = requestParameters.unanchored;
10140
+ }
10141
+
10142
+ var headerParameters = {};
10143
+ return Promise.resolve(_this34.request({
10144
+ path: "/extended/v1/tx/multiple",
10145
+ method: 'GET',
10146
+ headers: headerParameters,
10147
+ query: queryParameters
10148
+ }, initOverrides)).then(function (response) {
10149
+ return new JSONApiResponse(response);
10150
+ });
10151
+ } catch (e) {
10152
+ return Promise.reject(e);
10153
+ }
10154
+ }
10155
+ /**
10156
+ * Retrieves a list of transactions for a given list of transaction IDs If using TypeScript, import typings for this response from our types package: `import type { Transaction } from \'@stacks/stacks-blockchain-api-types\';`
10157
+ * Get list of details for transactions
10158
+ */
10159
+ ;
10160
+
10161
+ _proto.getTxListDetails = function getTxListDetails(requestParameters, initOverrides) {
10162
+ try {
10163
+ var _this36 = this;
10164
+
10165
+ return Promise.resolve(_this36.getTxListDetailsRaw(requestParameters, initOverrides)).then(function (response) {
10166
+ return Promise.resolve(response.value());
10167
+ });
10168
+ } catch (e) {
10169
+ return Promise.reject(e);
10170
+ }
10171
+ }
10172
+ /**
10173
+ * Broadcasts raw transactions on the network. You can use the [@stacks/transactions](https://github.com/blockstack/stacks.js) project to generate a raw transaction payload.
9866
10174
  * Broadcast raw transaction
9867
10175
  */
9868
10176
  ;
9869
10177
 
9870
10178
  _proto.postCoreNodeTransactionsRaw = function postCoreNodeTransactionsRaw(requestParameters, initOverrides) {
9871
10179
  try {
9872
- var _this34 = this;
10180
+ var _this38 = this;
9873
10181
 
9874
10182
  var queryParameters = {};
9875
10183
  var headerParameters = {};
9876
10184
  headerParameters['Content-Type'] = 'application/octet-stream';
9877
- return Promise.resolve(_this34.request({
10185
+ return Promise.resolve(_this38.request({
9878
10186
  path: "/v2/transactions",
9879
10187
  method: 'POST',
9880
10188
  headers: headerParameters,
@@ -9888,16 +10196,16 @@
9888
10196
  }
9889
10197
  }
9890
10198
  /**
9891
- * Broadcast raw transactions on the network. You can use the [@stacks/transactions](https://github.com/blockstack/stacks.js) project to generate a raw transaction payload.
10199
+ * Broadcasts raw transactions on the network. You can use the [@stacks/transactions](https://github.com/blockstack/stacks.js) project to generate a raw transaction payload.
9892
10200
  * Broadcast raw transaction
9893
10201
  */
9894
10202
  ;
9895
10203
 
9896
10204
  _proto.postCoreNodeTransactions = function postCoreNodeTransactions(requestParameters, initOverrides) {
9897
10205
  try {
9898
- var _this36 = this;
10206
+ var _this40 = this;
9899
10207
 
9900
- return Promise.resolve(_this36.postCoreNodeTransactionsRaw(requestParameters, initOverrides)).then(function (response) {
10208
+ return Promise.resolve(_this40.postCoreNodeTransactionsRaw(requestParameters, initOverrides)).then(function (response) {
9901
10209
  return Promise.resolve(response.value());
9902
10210
  });
9903
10211
  } catch (e) {
@@ -10682,6 +10990,18 @@
10682
10990
  case 'address_balance_update':
10683
10991
  this.eventEmitter.emit('addressBalanceUpdate', data.params);
10684
10992
  break;
10993
+
10994
+ case 'block':
10995
+ this.eventEmitter.emit('block', data.params);
10996
+ break;
10997
+
10998
+ case 'microblock':
10999
+ this.eventEmitter.emit('microblock', data.params);
11000
+ break;
11001
+
11002
+ case 'mempool':
11003
+ this.eventEmitter.emit('mempool', data.params);
11004
+ break;
10685
11005
  }
10686
11006
  };
10687
11007
 
@@ -10699,28 +11019,109 @@
10699
11019
  });
10700
11020
  };
10701
11021
 
10702
- _proto.subscribeTxUpdates = function subscribeTxUpdates(txId, update) {
11022
+ _proto.subscribeBlocks = function subscribeBlocks(update) {
10703
11023
  try {
10704
11024
  var _this4 = this;
10705
11025
 
11026
+ var params = {
11027
+ event: 'block'
11028
+ };
11029
+ return Promise.resolve(_this4.rpcCall('subscribe', params)).then(function () {
11030
+ var listener = function listener(event) {
11031
+ update(event);
11032
+ };
11033
+
11034
+ _this4.eventEmitter.addListener('block', listener);
11035
+
11036
+ return {
11037
+ unsubscribe: function unsubscribe() {
11038
+ _this4.eventEmitter.removeListener('block', listener);
11039
+
11040
+ return _this4.rpcCall('unsubscribe', params);
11041
+ }
11042
+ };
11043
+ });
11044
+ } catch (e) {
11045
+ return Promise.reject(e);
11046
+ }
11047
+ };
11048
+
11049
+ _proto.subscribeMicroblocks = function subscribeMicroblocks(update) {
11050
+ try {
11051
+ var _this6 = this;
11052
+
11053
+ var params = {
11054
+ event: 'microblock'
11055
+ };
11056
+ return Promise.resolve(_this6.rpcCall('subscribe', params)).then(function () {
11057
+ var listener = function listener(event) {
11058
+ update(event);
11059
+ };
11060
+
11061
+ _this6.eventEmitter.addListener('microblock', listener);
11062
+
11063
+ return {
11064
+ unsubscribe: function unsubscribe() {
11065
+ _this6.eventEmitter.removeListener('microblock', listener);
11066
+
11067
+ return _this6.rpcCall('unsubscribe', params);
11068
+ }
11069
+ };
11070
+ });
11071
+ } catch (e) {
11072
+ return Promise.reject(e);
11073
+ }
11074
+ };
11075
+
11076
+ _proto.subscribeMempool = function subscribeMempool(update) {
11077
+ try {
11078
+ var _this8 = this;
11079
+
11080
+ var params = {
11081
+ event: 'mempool'
11082
+ };
11083
+ return Promise.resolve(_this8.rpcCall('subscribe', params)).then(function () {
11084
+ var listener = function listener(event) {
11085
+ update(event);
11086
+ };
11087
+
11088
+ _this8.eventEmitter.addListener('mempool', listener);
11089
+
11090
+ return {
11091
+ unsubscribe: function unsubscribe() {
11092
+ _this8.eventEmitter.removeListener('mempool', listener);
11093
+
11094
+ return _this8.rpcCall('unsubscribe', params);
11095
+ }
11096
+ };
11097
+ });
11098
+ } catch (e) {
11099
+ return Promise.reject(e);
11100
+ }
11101
+ };
11102
+
11103
+ _proto.subscribeTxUpdates = function subscribeTxUpdates(txId, update) {
11104
+ try {
11105
+ var _this10 = this;
11106
+
10706
11107
  var params = {
10707
11108
  event: 'tx_update',
10708
11109
  tx_id: txId
10709
11110
  };
10710
- return Promise.resolve(_this4.rpcCall('subscribe', params)).then(function (subscribed) {
11111
+ return Promise.resolve(_this10.rpcCall('subscribe', params)).then(function (subscribed) {
10711
11112
  var listener = function listener(event) {
10712
11113
  if (event.tx_id === subscribed.tx_id) {
10713
11114
  update(event);
10714
11115
  }
10715
11116
  };
10716
11117
 
10717
- _this4.eventEmitter.addListener('txUpdate', listener);
11118
+ _this10.eventEmitter.addListener('txUpdate', listener);
10718
11119
 
10719
11120
  return {
10720
11121
  unsubscribe: function unsubscribe() {
10721
- _this4.eventEmitter.removeListener('txUpdate', listener);
11122
+ _this10.eventEmitter.removeListener('txUpdate', listener);
10722
11123
 
10723
- return _this4.rpcCall('unsubscribe', params);
11124
+ return _this10.rpcCall('unsubscribe', params);
10724
11125
  }
10725
11126
  };
10726
11127
  });
@@ -10731,26 +11132,26 @@
10731
11132
 
10732
11133
  _proto.subscribeAddressTransactions = function subscribeAddressTransactions(address, update) {
10733
11134
  try {
10734
- var _this6 = this;
11135
+ var _this12 = this;
10735
11136
 
10736
11137
  var params = {
10737
11138
  event: 'address_tx_update',
10738
11139
  address: address
10739
11140
  };
10740
- return Promise.resolve(_this6.rpcCall('subscribe', params)).then(function (subscribed) {
11141
+ return Promise.resolve(_this12.rpcCall('subscribe', params)).then(function (subscribed) {
10741
11142
  var listener = function listener(event) {
10742
11143
  if (event.address === subscribed.address) {
10743
11144
  update(event);
10744
11145
  }
10745
11146
  };
10746
11147
 
10747
- _this6.eventEmitter.addListener('addressTxUpdate', listener);
11148
+ _this12.eventEmitter.addListener('addressTxUpdate', listener);
10748
11149
 
10749
11150
  return {
10750
11151
  unsubscribe: function unsubscribe() {
10751
- _this6.eventEmitter.removeListener('addressTxUpdate', listener);
11152
+ _this12.eventEmitter.removeListener('addressTxUpdate', listener);
10752
11153
 
10753
- return _this6.rpcCall('unsubscribe', params);
11154
+ return _this12.rpcCall('unsubscribe', params);
10754
11155
  }
10755
11156
  };
10756
11157
  });
@@ -10761,26 +11162,26 @@
10761
11162
 
10762
11163
  _proto.subscribeAddressBalanceUpdates = function subscribeAddressBalanceUpdates(address, update) {
10763
11164
  try {
10764
- var _this8 = this;
11165
+ var _this14 = this;
10765
11166
 
10766
11167
  var params = {
10767
11168
  event: 'address_balance_update',
10768
11169
  address: address
10769
11170
  };
10770
- return Promise.resolve(_this8.rpcCall('subscribe', params)).then(function (subscribed) {
11171
+ return Promise.resolve(_this14.rpcCall('subscribe', params)).then(function (subscribed) {
10771
11172
  var listener = function listener(event) {
10772
11173
  if (event.address === subscribed.address) {
10773
11174
  update(event);
10774
11175
  }
10775
11176
  };
10776
11177
 
10777
- _this8.eventEmitter.addListener('addressBalanceUpdate', listener);
11178
+ _this14.eventEmitter.addListener('addressBalanceUpdate', listener);
10778
11179
 
10779
11180
  return {
10780
11181
  unsubscribe: function unsubscribe() {
10781
- _this8.eventEmitter.removeListener('addressBalanceUpdate', listener);
11182
+ _this14.eventEmitter.removeListener('addressBalanceUpdate', listener);
10782
11183
 
10783
- return _this8.rpcCall('unsubscribe', params);
11184
+ return _this14.rpcCall('unsubscribe', params);
10784
11185
  }
10785
11186
  };
10786
11187
  });
@@ -15641,7 +16042,6 @@
15641
16042
  var StacksApiSocketClient = /*#__PURE__*/function () {
15642
16043
  function StacksApiSocketClient(socket) {
15643
16044
  this.socket = socket;
15644
- this.logEvents();
15645
16045
  }
15646
16046
 
15647
16047
  StacksApiSocketClient.connect = function connect(_temp) {
@@ -15736,6 +16136,14 @@
15736
16136
  this.handleSubscription("address-stx-balance:" + address, false);
15737
16137
  };
15738
16138
 
16139
+ _proto.subscribeTransaction = function subscribeTransaction(txId) {
16140
+ return this.handleSubscription("transaction:" + txId, true);
16141
+ };
16142
+
16143
+ _proto.unsubscribeTransaction = function unsubscribeTransaction(txId) {
16144
+ this.handleSubscription("transaction:" + txId, false);
16145
+ };
16146
+
15739
16147
  _proto.logEvents = function logEvents() {
15740
16148
  this.socket.on('connect', function () {
15741
16149
  return console.log('socket connected');
@@ -15806,6 +16214,9 @@
15806
16214
  exports.AddressTransactionWithTransfersStxTransfersFromJSONTyped = AddressTransactionWithTransfersStxTransfersFromJSONTyped;
15807
16215
  exports.AddressTransactionWithTransfersStxTransfersToJSON = AddressTransactionWithTransfersStxTransfersToJSON;
15808
16216
  exports.AddressTransactionWithTransfersToJSON = AddressTransactionWithTransfersToJSON;
16217
+ exports.AddressTransactionWithTransfersValueFromJSON = AddressTransactionWithTransfersValueFromJSON;
16218
+ exports.AddressTransactionWithTransfersValueFromJSONTyped = AddressTransactionWithTransfersValueFromJSONTyped;
16219
+ exports.AddressTransactionWithTransfersValueToJSON = AddressTransactionWithTransfersValueToJSON;
15809
16220
  exports.AddressTransactionsListResponseFromJSON = AddressTransactionsListResponseFromJSON;
15810
16221
  exports.AddressTransactionsListResponseFromJSONTyped = AddressTransactionsListResponseFromJSONTyped;
15811
16222
  exports.AddressTransactionsListResponseToJSON = AddressTransactionsListResponseToJSON;
@@ -15816,7 +16227,6 @@
15816
16227
  exports.AddressUnlockScheduleFromJSONTyped = AddressUnlockScheduleFromJSONTyped;
15817
16228
  exports.AddressUnlockScheduleToJSON = AddressUnlockScheduleToJSON;
15818
16229
  exports.BASE_PATH = BASE_PATH;
15819
- exports.BNSApi = BNSApi;
15820
16230
  exports.BaseAPI = BaseAPI;
15821
16231
  exports.BlobApiResponse = BlobApiResponse;
15822
16232
  exports.BlockFromJSON = BlockFromJSON;
@@ -15844,7 +16254,6 @@
15844
16254
  exports.BnsNamesOwnByAddressResponseFromJSON = BnsNamesOwnByAddressResponseFromJSON;
15845
16255
  exports.BnsNamesOwnByAddressResponseFromJSONTyped = BnsNamesOwnByAddressResponseFromJSONTyped;
15846
16256
  exports.BnsNamesOwnByAddressResponseToJSON = BnsNamesOwnByAddressResponseToJSON;
15847
- exports.BurnchainApi = BurnchainApi;
15848
16257
  exports.BurnchainRewardFromJSON = BurnchainRewardFromJSON;
15849
16258
  exports.BurnchainRewardFromJSONTyped = BurnchainRewardFromJSONTyped;
15850
16259
  exports.BurnchainRewardListResponseFromJSON = BurnchainRewardListResponseFromJSON;
@@ -15865,6 +16274,9 @@
15865
16274
  exports.ContractInterfaceResponseFromJSON = ContractInterfaceResponseFromJSON;
15866
16275
  exports.ContractInterfaceResponseFromJSONTyped = ContractInterfaceResponseFromJSONTyped;
15867
16276
  exports.ContractInterfaceResponseToJSON = ContractInterfaceResponseToJSON;
16277
+ exports.ContractListResponseFromJSON = ContractListResponseFromJSON;
16278
+ exports.ContractListResponseFromJSONTyped = ContractListResponseFromJSONTyped;
16279
+ exports.ContractListResponseToJSON = ContractListResponseToJSON;
15868
16280
  exports.ContractSourceResponseFromJSON = ContractSourceResponseFromJSON;
15869
16281
  exports.ContractSourceResponseFromJSONTyped = ContractSourceResponseFromJSONTyped;
15870
16282
  exports.ContractSourceResponseToJSON = ContractSourceResponseToJSON;
@@ -15875,7 +16287,6 @@
15875
16287
  exports.CoreNodePoxResponseFromJSONTyped = CoreNodePoxResponseFromJSONTyped;
15876
16288
  exports.CoreNodePoxResponseToJSON = CoreNodePoxResponseToJSON;
15877
16289
  exports.FaucetsApi = FaucetsApi;
15878
- exports.FeeRateApi = FeeRateApi;
15879
16290
  exports.FeeRateFromJSON = FeeRateFromJSON;
15880
16291
  exports.FeeRateFromJSONTyped = FeeRateFromJSONTyped;
15881
16292
  exports.FeeRateRequestFromJSON = FeeRateRequestFromJSON;
@@ -15886,6 +16297,7 @@
15886
16297
  exports.FungibleTokenMetadataFromJSON = FungibleTokenMetadataFromJSON;
15887
16298
  exports.FungibleTokenMetadataFromJSONTyped = FungibleTokenMetadataFromJSONTyped;
15888
16299
  exports.FungibleTokenMetadataToJSON = FungibleTokenMetadataToJSON;
16300
+ exports.FungibleTokensApi = FungibleTokensApi;
15889
16301
  exports.FungibleTokensMetadataListFromJSON = FungibleTokensMetadataListFromJSON;
15890
16302
  exports.FungibleTokensMetadataListFromJSONTyped = FungibleTokensMetadataListFromJSONTyped;
15891
16303
  exports.FungibleTokensMetadataListToJSON = FungibleTokensMetadataListToJSON;
@@ -15919,6 +16331,7 @@
15919
16331
  exports.MicroblockListResponseToJSON = MicroblockListResponseToJSON;
15920
16332
  exports.MicroblockToJSON = MicroblockToJSON;
15921
16333
  exports.MicroblocksApi = MicroblocksApi;
16334
+ exports.NamesApi = NamesApi;
15922
16335
  exports.NetworkBlockTimeResponseFromJSON = NetworkBlockTimeResponseFromJSON;
15923
16336
  exports.NetworkBlockTimeResponseFromJSONTyped = NetworkBlockTimeResponseFromJSONTyped;
15924
16337
  exports.NetworkBlockTimeResponseToJSON = NetworkBlockTimeResponseToJSON;
@@ -15937,6 +16350,7 @@
15937
16350
  exports.NonFungibleTokenMetadataFromJSON = NonFungibleTokenMetadataFromJSON;
15938
16351
  exports.NonFungibleTokenMetadataFromJSONTyped = NonFungibleTokenMetadataFromJSONTyped;
15939
16352
  exports.NonFungibleTokenMetadataToJSON = NonFungibleTokenMetadataToJSON;
16353
+ exports.NonFungibleTokensApi = NonFungibleTokensApi;
15940
16354
  exports.NonFungibleTokensMetadataListFromJSON = NonFungibleTokensMetadataListFromJSON;
15941
16355
  exports.NonFungibleTokensMetadataListFromJSONTyped = NonFungibleTokensMetadataListFromJSONTyped;
15942
16356
  exports.NonFungibleTokensMetadataListToJSON = NonFungibleTokensMetadataListToJSON;
@@ -16144,11 +16558,14 @@
16144
16558
  exports.SigningPayloadFromJSON = SigningPayloadFromJSON;
16145
16559
  exports.SigningPayloadFromJSONTyped = SigningPayloadFromJSONTyped;
16146
16560
  exports.SigningPayloadToJSON = SigningPayloadToJSON;
16561
+ exports.SmartContractFromJSON = SmartContractFromJSON;
16562
+ exports.SmartContractFromJSONTyped = SmartContractFromJSONTyped;
16563
+ exports.SmartContractToJSON = SmartContractToJSON;
16147
16564
  exports.SmartContractsApi = SmartContractsApi;
16565
+ exports.StackingRewardsApi = StackingRewardsApi;
16148
16566
  exports.StacksApiSocketClient = StacksApiSocketClient;
16149
16567
  exports.StacksApiWebSocketClient = StacksApiWebSocketClient;
16150
16568
  exports.TextApiResponse = TextApiResponse;
16151
- exports.TokensApi = TokensApi;
16152
16569
  exports.TransactionIdentifierFromJSON = TransactionIdentifierFromJSON;
16153
16570
  exports.TransactionIdentifierFromJSONTyped = TransactionIdentifierFromJSONTyped;
16154
16571
  exports.TransactionIdentifierToJSON = TransactionIdentifierToJSON;