@secretkeylabs/stacks-tools 0.3.0-9b21b7a → 0.4.0-0fe567d

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 (99) hide show
  1. package/dist/index.cjs +1106 -0
  2. package/dist/index.d.cts +1432 -0
  3. package/dist/index.d.ts +1432 -2
  4. package/dist/index.js +1063 -3
  5. package/package.json +13 -5
  6. package/dist/index.js.map +0 -1
  7. package/dist/pox4-api/burn-height-to-reward-cycle.d.ts +0 -7
  8. package/dist/pox4-api/burn-height-to-reward-cycle.js +0 -6
  9. package/dist/pox4-api/burn-height-to-reward-cycle.js.map +0 -1
  10. package/dist/pox4-api/current-pox-reward-cycle.d.ts +0 -1
  11. package/dist/pox4-api/current-pox-reward-cycle.js +0 -3
  12. package/dist/pox4-api/current-pox-reward-cycle.js.map +0 -1
  13. package/dist/pox4-api/get-stacker-info.d.ts +0 -1
  14. package/dist/pox4-api/get-stacker-info.js +0 -3
  15. package/dist/pox4-api/get-stacker-info.js.map +0 -1
  16. package/dist/pox4-api/reward-cycle-to-burn-height.d.ts +0 -1
  17. package/dist/pox4-api/reward-cycle-to-burn-height.js +0 -3
  18. package/dist/pox4-api/reward-cycle-to-burn-height.js.map +0 -1
  19. package/dist/queries/get-signer-stacked-amount.d.ts +0 -18
  20. package/dist/queries/get-signer-stacked-amount.js +0 -59
  21. package/dist/queries/get-signer-stacked-amount.js.map +0 -1
  22. package/dist/queries/get-signer-total-locked.d.ts +0 -18
  23. package/dist/queries/get-signer-total-locked.js +0 -59
  24. package/dist/queries/get-signer-total-locked.js.map +0 -1
  25. package/dist/queries/index.d.ts +0 -4
  26. package/dist/queries/index.js +0 -5
  27. package/dist/queries/index.js.map +0 -1
  28. package/dist/stacks-api/accounts/balances.d.ts +0 -34
  29. package/dist/stacks-api/accounts/balances.js +0 -70
  30. package/dist/stacks-api/accounts/balances.js.map +0 -1
  31. package/dist/stacks-api/accounts/index.d.ts +0 -4
  32. package/dist/stacks-api/accounts/index.js +0 -5
  33. package/dist/stacks-api/accounts/index.js.map +0 -1
  34. package/dist/stacks-api/blocks/get-block.d.ts +0 -29
  35. package/dist/stacks-api/blocks/get-block.js +0 -62
  36. package/dist/stacks-api/blocks/get-block.js.map +0 -1
  37. package/dist/stacks-api/blocks/index.d.ts +0 -4
  38. package/dist/stacks-api/blocks/index.js +0 -5
  39. package/dist/stacks-api/blocks/index.js.map +0 -1
  40. package/dist/stacks-api/index.d.ts +0 -28
  41. package/dist/stacks-api/index.js +0 -17
  42. package/dist/stacks-api/index.js.map +0 -1
  43. package/dist/stacks-api/info/core-api.d.ts +0 -21
  44. package/dist/stacks-api/info/core-api.js +0 -55
  45. package/dist/stacks-api/info/core-api.js.map +0 -1
  46. package/dist/stacks-api/info/index.d.ts +0 -6
  47. package/dist/stacks-api/info/index.js +0 -7
  48. package/dist/stacks-api/info/index.js.map +0 -1
  49. package/dist/stacks-api/info/pox-details.d.ts +0 -59
  50. package/dist/stacks-api/info/pox-details.js +0 -92
  51. package/dist/stacks-api/info/pox-details.js.map +0 -1
  52. package/dist/stacks-api/proof-of-transfer/cycle.d.ts +0 -16
  53. package/dist/stacks-api/proof-of-transfer/cycle.js +0 -50
  54. package/dist/stacks-api/proof-of-transfer/cycle.js.map +0 -1
  55. package/dist/stacks-api/proof-of-transfer/cycles.d.ts +0 -37
  56. package/dist/stacks-api/proof-of-transfer/cycles.js +0 -61
  57. package/dist/stacks-api/proof-of-transfer/cycles.js.map +0 -1
  58. package/dist/stacks-api/proof-of-transfer/index.d.ts +0 -10
  59. package/dist/stacks-api/proof-of-transfer/index.js +0 -11
  60. package/dist/stacks-api/proof-of-transfer/index.js.map +0 -1
  61. package/dist/stacks-api/proof-of-transfer/signers-in-cycle.d.ts +0 -45
  62. package/dist/stacks-api/proof-of-transfer/signers-in-cycle.js +0 -66
  63. package/dist/stacks-api/proof-of-transfer/signers-in-cycle.js.map +0 -1
  64. package/dist/stacks-api/proof-of-transfer/stackers-for-signer-in-cycle.d.ts +0 -34
  65. package/dist/stacks-api/proof-of-transfer/stackers-for-signer-in-cycle.js +0 -59
  66. package/dist/stacks-api/proof-of-transfer/stackers-for-signer-in-cycle.js.map +0 -1
  67. package/dist/stacks-api/smart-contracts/index.d.ts +0 -4
  68. package/dist/stacks-api/smart-contracts/index.js +0 -5
  69. package/dist/stacks-api/smart-contracts/index.js.map +0 -1
  70. package/dist/stacks-api/smart-contracts/read-only.d.ts +0 -19
  71. package/dist/stacks-api/smart-contracts/read-only.js +0 -50
  72. package/dist/stacks-api/smart-contracts/read-only.js.map +0 -1
  73. package/dist/stacks-api/stacking-pool/index.d.ts +0 -4
  74. package/dist/stacks-api/stacking-pool/index.js +0 -5
  75. package/dist/stacks-api/stacking-pool/index.js.map +0 -1
  76. package/dist/stacks-api/stacking-pool/members.d.ts +0 -34
  77. package/dist/stacks-api/stacking-pool/members.js +0 -64
  78. package/dist/stacks-api/stacking-pool/members.js.map +0 -1
  79. package/dist/stacks-api/transactions/address-transactions.d.ts +0 -487
  80. package/dist/stacks-api/transactions/address-transactions.js +0 -75
  81. package/dist/stacks-api/transactions/address-transactions.js.map +0 -1
  82. package/dist/stacks-api/transactions/get-transaction.d.ts +0 -8
  83. package/dist/stacks-api/transactions/get-transaction.js +0 -42
  84. package/dist/stacks-api/transactions/get-transaction.js.map +0 -1
  85. package/dist/stacks-api/transactions/index.d.ts +0 -6
  86. package/dist/stacks-api/transactions/index.js +0 -7
  87. package/dist/stacks-api/transactions/index.js.map +0 -1
  88. package/dist/stacks-api/transactions/schemas.d.ts +0 -327
  89. package/dist/stacks-api/transactions/schemas.js +0 -85
  90. package/dist/stacks-api/transactions/schemas.js.map +0 -1
  91. package/dist/stacks-api/types.d.ts +0 -26
  92. package/dist/stacks-api/types.js +0 -8
  93. package/dist/stacks-api/types.js.map +0 -1
  94. package/dist/utils/call-rate-limited-api.d.ts +0 -8
  95. package/dist/utils/call-rate-limited-api.js +0 -28
  96. package/dist/utils/call-rate-limited-api.js.map +0 -1
  97. package/dist/utils/safe.d.ts +0 -10
  98. package/dist/utils/safe.js +0 -31
  99. package/dist/utils/safe.js.map +0 -1
@@ -0,0 +1,1432 @@
1
+ import * as v from 'valibot';
2
+
3
+ type SafeError<TName extends string = string, TData = unknown> = {
4
+ readonly name: TName;
5
+ readonly message: string;
6
+ readonly data?: TData;
7
+ };
8
+ type Result$1<TData = unknown, E extends SafeError = SafeError> = [E, null] | [null, TData];
9
+ declare function success<D>(data: D): Result$1<D, never>;
10
+ declare function error<const E extends SafeError>(error: E): Result$1<never, E>;
11
+ declare function safePromise<TData>(promise: Promise<TData>): Promise<Result$1<TData, SafeError<"SafePromiseError">>>;
12
+ declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<"SafeCallError">>;
13
+
14
+ type ApiKeyConfig = {
15
+ key: string;
16
+ /**
17
+ * The header to use for the API key. For example, the Hiro API uses the
18
+ * header `x-api-key`.
19
+ */
20
+ header: string;
21
+ };
22
+ type ApiRequestOptions = {
23
+ baseUrl: string;
24
+ apiKeyConfig?: ApiKeyConfig;
25
+ };
26
+ type ApiPaginationOptions = {
27
+ /**
28
+ * The number of items to return. Each endpoint has its own maximum allowed
29
+ * limit, although many support at least 50 items. The [Hiro
30
+ * docs](https://docs.hiro.so/stacks/api) include the allowed maximum for each
31
+ * endpoint.
32
+ */
33
+ limit?: number;
34
+ offset?: number;
35
+ };
36
+
37
+ declare const baseTransactionSchema: v.ObjectSchema<{
38
+ readonly tx_id: v.StringSchema<undefined>;
39
+ readonly nonce: v.NumberSchema<undefined>;
40
+ readonly fee_rate: v.StringSchema<undefined>;
41
+ readonly sender_address: v.StringSchema<undefined>;
42
+ readonly sponsored: v.BooleanSchema<undefined>;
43
+ readonly post_condition_mode: v.StringSchema<undefined>;
44
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
45
+ readonly anchor_mode: v.StringSchema<undefined>;
46
+ readonly is_unanchored: v.BooleanSchema<undefined>;
47
+ readonly block_hash: v.StringSchema<undefined>;
48
+ readonly parent_block_hash: v.StringSchema<undefined>;
49
+ readonly block_height: v.NumberSchema<undefined>;
50
+ readonly block_time: v.NumberSchema<undefined>;
51
+ readonly block_time_iso: v.StringSchema<undefined>;
52
+ readonly burn_block_height: v.NumberSchema<undefined>;
53
+ readonly burn_block_time: v.NumberSchema<undefined>;
54
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
55
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
56
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
57
+ readonly canonical: v.BooleanSchema<undefined>;
58
+ readonly tx_index: v.NumberSchema<undefined>;
59
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
60
+ readonly tx_result: v.ObjectSchema<{
61
+ readonly hex: v.StringSchema<undefined>;
62
+ readonly repr: v.StringSchema<undefined>;
63
+ }, undefined>;
64
+ readonly microblock_hash: v.StringSchema<undefined>;
65
+ readonly microblock_sequence: v.NumberSchema<undefined>;
66
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
67
+ readonly event_count: v.NumberSchema<undefined>;
68
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
69
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
70
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
71
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
72
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
73
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
74
+ }, undefined>;
75
+ declare const contractCallTransactionSchema: v.ObjectSchema<{
76
+ readonly tx_id: v.StringSchema<undefined>;
77
+ readonly nonce: v.NumberSchema<undefined>;
78
+ readonly fee_rate: v.StringSchema<undefined>;
79
+ readonly sender_address: v.StringSchema<undefined>;
80
+ readonly sponsored: v.BooleanSchema<undefined>;
81
+ readonly post_condition_mode: v.StringSchema<undefined>;
82
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
83
+ readonly anchor_mode: v.StringSchema<undefined>;
84
+ readonly is_unanchored: v.BooleanSchema<undefined>;
85
+ readonly block_hash: v.StringSchema<undefined>;
86
+ readonly parent_block_hash: v.StringSchema<undefined>;
87
+ readonly block_height: v.NumberSchema<undefined>;
88
+ readonly block_time: v.NumberSchema<undefined>;
89
+ readonly block_time_iso: v.StringSchema<undefined>;
90
+ readonly burn_block_height: v.NumberSchema<undefined>;
91
+ readonly burn_block_time: v.NumberSchema<undefined>;
92
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
93
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
94
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
95
+ readonly canonical: v.BooleanSchema<undefined>;
96
+ readonly tx_index: v.NumberSchema<undefined>;
97
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
98
+ readonly tx_result: v.ObjectSchema<{
99
+ readonly hex: v.StringSchema<undefined>;
100
+ readonly repr: v.StringSchema<undefined>;
101
+ }, undefined>;
102
+ readonly microblock_hash: v.StringSchema<undefined>;
103
+ readonly microblock_sequence: v.NumberSchema<undefined>;
104
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
105
+ readonly event_count: v.NumberSchema<undefined>;
106
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
107
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
108
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
109
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
110
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
111
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
112
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
113
+ readonly contract_call: v.ObjectSchema<{
114
+ readonly contract_id: v.StringSchema<undefined>;
115
+ readonly function_name: v.StringSchema<undefined>;
116
+ readonly function_signature: v.StringSchema<undefined>;
117
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
118
+ readonly hex: v.StringSchema<undefined>;
119
+ readonly repr: v.StringSchema<undefined>;
120
+ readonly name: v.StringSchema<undefined>;
121
+ readonly type: v.StringSchema<undefined>;
122
+ }, undefined>, undefined>;
123
+ }, undefined>;
124
+ }, undefined>;
125
+ type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
126
+ declare const smartContractTransactionSchema: v.ObjectSchema<{
127
+ readonly tx_id: v.StringSchema<undefined>;
128
+ readonly nonce: v.NumberSchema<undefined>;
129
+ readonly fee_rate: v.StringSchema<undefined>;
130
+ readonly sender_address: v.StringSchema<undefined>;
131
+ readonly sponsored: v.BooleanSchema<undefined>;
132
+ readonly post_condition_mode: v.StringSchema<undefined>;
133
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
134
+ readonly anchor_mode: v.StringSchema<undefined>;
135
+ readonly is_unanchored: v.BooleanSchema<undefined>;
136
+ readonly block_hash: v.StringSchema<undefined>;
137
+ readonly parent_block_hash: v.StringSchema<undefined>;
138
+ readonly block_height: v.NumberSchema<undefined>;
139
+ readonly block_time: v.NumberSchema<undefined>;
140
+ readonly block_time_iso: v.StringSchema<undefined>;
141
+ readonly burn_block_height: v.NumberSchema<undefined>;
142
+ readonly burn_block_time: v.NumberSchema<undefined>;
143
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
144
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
145
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
146
+ readonly canonical: v.BooleanSchema<undefined>;
147
+ readonly tx_index: v.NumberSchema<undefined>;
148
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
149
+ readonly tx_result: v.ObjectSchema<{
150
+ readonly hex: v.StringSchema<undefined>;
151
+ readonly repr: v.StringSchema<undefined>;
152
+ }, undefined>;
153
+ readonly microblock_hash: v.StringSchema<undefined>;
154
+ readonly microblock_sequence: v.NumberSchema<undefined>;
155
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
156
+ readonly event_count: v.NumberSchema<undefined>;
157
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
158
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
159
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
160
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
161
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
162
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
163
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
164
+ readonly smart_contract: v.ObjectSchema<{
165
+ /**
166
+ * NOTE: The types may be wrong, not sure what type of value is used when
167
+ * the version is not `null`.
168
+ */
169
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
170
+ readonly contract_id: v.StringSchema<undefined>;
171
+ readonly source_code: v.StringSchema<undefined>;
172
+ }, undefined>;
173
+ }, undefined>;
174
+ type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
175
+ declare const tokenTransferSchema: v.ObjectSchema<{
176
+ readonly tx_id: v.StringSchema<undefined>;
177
+ readonly nonce: v.NumberSchema<undefined>;
178
+ readonly fee_rate: v.StringSchema<undefined>;
179
+ readonly sender_address: v.StringSchema<undefined>;
180
+ readonly sponsored: v.BooleanSchema<undefined>;
181
+ readonly post_condition_mode: v.StringSchema<undefined>;
182
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
183
+ readonly anchor_mode: v.StringSchema<undefined>;
184
+ readonly is_unanchored: v.BooleanSchema<undefined>;
185
+ readonly block_hash: v.StringSchema<undefined>;
186
+ readonly parent_block_hash: v.StringSchema<undefined>;
187
+ readonly block_height: v.NumberSchema<undefined>;
188
+ readonly block_time: v.NumberSchema<undefined>;
189
+ readonly block_time_iso: v.StringSchema<undefined>;
190
+ readonly burn_block_height: v.NumberSchema<undefined>;
191
+ readonly burn_block_time: v.NumberSchema<undefined>;
192
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
193
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
194
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
195
+ readonly canonical: v.BooleanSchema<undefined>;
196
+ readonly tx_index: v.NumberSchema<undefined>;
197
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
198
+ readonly tx_result: v.ObjectSchema<{
199
+ readonly hex: v.StringSchema<undefined>;
200
+ readonly repr: v.StringSchema<undefined>;
201
+ }, undefined>;
202
+ readonly microblock_hash: v.StringSchema<undefined>;
203
+ readonly microblock_sequence: v.NumberSchema<undefined>;
204
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
205
+ readonly event_count: v.NumberSchema<undefined>;
206
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
207
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
208
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
209
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
210
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
211
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
212
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
213
+ readonly token_transfer: v.ObjectSchema<{
214
+ readonly recipient_address: v.StringSchema<undefined>;
215
+ readonly amount: v.StringSchema<undefined>;
216
+ readonly memo: v.StringSchema<undefined>;
217
+ }, undefined>;
218
+ }, undefined>;
219
+ /**
220
+ * Incomplete schema of some transaction types.
221
+ */
222
+ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
223
+ readonly tx_id: v.StringSchema<undefined>;
224
+ readonly nonce: v.NumberSchema<undefined>;
225
+ readonly fee_rate: v.StringSchema<undefined>;
226
+ readonly sender_address: v.StringSchema<undefined>;
227
+ readonly sponsored: v.BooleanSchema<undefined>;
228
+ readonly post_condition_mode: v.StringSchema<undefined>;
229
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
230
+ readonly anchor_mode: v.StringSchema<undefined>;
231
+ readonly is_unanchored: v.BooleanSchema<undefined>;
232
+ readonly block_hash: v.StringSchema<undefined>;
233
+ readonly parent_block_hash: v.StringSchema<undefined>;
234
+ readonly block_height: v.NumberSchema<undefined>;
235
+ readonly block_time: v.NumberSchema<undefined>;
236
+ readonly block_time_iso: v.StringSchema<undefined>;
237
+ readonly burn_block_height: v.NumberSchema<undefined>;
238
+ readonly burn_block_time: v.NumberSchema<undefined>;
239
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
240
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
241
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
242
+ readonly canonical: v.BooleanSchema<undefined>;
243
+ readonly tx_index: v.NumberSchema<undefined>;
244
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
245
+ readonly tx_result: v.ObjectSchema<{
246
+ readonly hex: v.StringSchema<undefined>;
247
+ readonly repr: v.StringSchema<undefined>;
248
+ }, undefined>;
249
+ readonly microblock_hash: v.StringSchema<undefined>;
250
+ readonly microblock_sequence: v.NumberSchema<undefined>;
251
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
252
+ readonly event_count: v.NumberSchema<undefined>;
253
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
254
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
255
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
256
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
257
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
258
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
259
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
260
+ readonly contract_call: v.ObjectSchema<{
261
+ readonly contract_id: v.StringSchema<undefined>;
262
+ readonly function_name: v.StringSchema<undefined>;
263
+ readonly function_signature: v.StringSchema<undefined>;
264
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
265
+ readonly hex: v.StringSchema<undefined>;
266
+ readonly repr: v.StringSchema<undefined>;
267
+ readonly name: v.StringSchema<undefined>;
268
+ readonly type: v.StringSchema<undefined>;
269
+ }, undefined>, undefined>;
270
+ }, undefined>;
271
+ }, undefined>, v.ObjectSchema<{
272
+ readonly tx_id: v.StringSchema<undefined>;
273
+ readonly nonce: v.NumberSchema<undefined>;
274
+ readonly fee_rate: v.StringSchema<undefined>;
275
+ readonly sender_address: v.StringSchema<undefined>;
276
+ readonly sponsored: v.BooleanSchema<undefined>;
277
+ readonly post_condition_mode: v.StringSchema<undefined>;
278
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
279
+ readonly anchor_mode: v.StringSchema<undefined>;
280
+ readonly is_unanchored: v.BooleanSchema<undefined>;
281
+ readonly block_hash: v.StringSchema<undefined>;
282
+ readonly parent_block_hash: v.StringSchema<undefined>;
283
+ readonly block_height: v.NumberSchema<undefined>;
284
+ readonly block_time: v.NumberSchema<undefined>;
285
+ readonly block_time_iso: v.StringSchema<undefined>;
286
+ readonly burn_block_height: v.NumberSchema<undefined>;
287
+ readonly burn_block_time: v.NumberSchema<undefined>;
288
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
289
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
290
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
291
+ readonly canonical: v.BooleanSchema<undefined>;
292
+ readonly tx_index: v.NumberSchema<undefined>;
293
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
294
+ readonly tx_result: v.ObjectSchema<{
295
+ readonly hex: v.StringSchema<undefined>;
296
+ readonly repr: v.StringSchema<undefined>;
297
+ }, undefined>;
298
+ readonly microblock_hash: v.StringSchema<undefined>;
299
+ readonly microblock_sequence: v.NumberSchema<undefined>;
300
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
301
+ readonly event_count: v.NumberSchema<undefined>;
302
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
303
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
304
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
305
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
306
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
307
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
308
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
309
+ readonly smart_contract: v.ObjectSchema<{
310
+ /**
311
+ * NOTE: The types may be wrong, not sure what type of value is used when
312
+ * the version is not `null`.
313
+ */
314
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
315
+ readonly contract_id: v.StringSchema<undefined>;
316
+ readonly source_code: v.StringSchema<undefined>;
317
+ }, undefined>;
318
+ }, undefined>, v.ObjectSchema<{
319
+ readonly tx_id: v.StringSchema<undefined>;
320
+ readonly nonce: v.NumberSchema<undefined>;
321
+ readonly fee_rate: v.StringSchema<undefined>;
322
+ readonly sender_address: v.StringSchema<undefined>;
323
+ readonly sponsored: v.BooleanSchema<undefined>;
324
+ readonly post_condition_mode: v.StringSchema<undefined>;
325
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
326
+ readonly anchor_mode: v.StringSchema<undefined>;
327
+ readonly is_unanchored: v.BooleanSchema<undefined>;
328
+ readonly block_hash: v.StringSchema<undefined>;
329
+ readonly parent_block_hash: v.StringSchema<undefined>;
330
+ readonly block_height: v.NumberSchema<undefined>;
331
+ readonly block_time: v.NumberSchema<undefined>;
332
+ readonly block_time_iso: v.StringSchema<undefined>;
333
+ readonly burn_block_height: v.NumberSchema<undefined>;
334
+ readonly burn_block_time: v.NumberSchema<undefined>;
335
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
336
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
337
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
338
+ readonly canonical: v.BooleanSchema<undefined>;
339
+ readonly tx_index: v.NumberSchema<undefined>;
340
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
341
+ readonly tx_result: v.ObjectSchema<{
342
+ readonly hex: v.StringSchema<undefined>;
343
+ readonly repr: v.StringSchema<undefined>;
344
+ }, undefined>;
345
+ readonly microblock_hash: v.StringSchema<undefined>;
346
+ readonly microblock_sequence: v.NumberSchema<undefined>;
347
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
348
+ readonly event_count: v.NumberSchema<undefined>;
349
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
350
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
351
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
352
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
353
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
354
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
355
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
356
+ readonly token_transfer: v.ObjectSchema<{
357
+ readonly recipient_address: v.StringSchema<undefined>;
358
+ readonly amount: v.StringSchema<undefined>;
359
+ readonly memo: v.StringSchema<undefined>;
360
+ }, undefined>;
361
+ }, undefined>], undefined>;
362
+ type Transaction = v.InferOutput<typeof transactionSchema>;
363
+
364
+ type schemas_ContractCallTransaction = ContractCallTransaction;
365
+ type schemas_SmartContractTransaction = SmartContractTransaction;
366
+ type schemas_Transaction = Transaction;
367
+ declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
368
+ declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
369
+ declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
370
+ declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
371
+ declare const schemas_transactionSchema: typeof transactionSchema;
372
+ declare namespace schemas {
373
+ export { type schemas_ContractCallTransaction as ContractCallTransaction, type schemas_SmartContractTransaction as SmartContractTransaction, type schemas_Transaction as Transaction, schemas_baseTransactionSchema as baseTransactionSchema, schemas_contractCallTransactionSchema as contractCallTransactionSchema, schemas_smartContractTransactionSchema as smartContractTransactionSchema, schemas_tokenTransferSchema as tokenTransferSchema, schemas_transactionSchema as transactionSchema };
374
+ }
375
+
376
+ type Args$b = {
377
+ transactionId: string;
378
+ } & ApiRequestOptions;
379
+ declare function getTransaction(args: Args$b): Promise<Result$1<Transaction>>;
380
+
381
+ declare const getTransaction$1_getTransaction: typeof getTransaction;
382
+ declare namespace getTransaction$1 {
383
+ export { getTransaction$1_getTransaction as getTransaction };
384
+ }
385
+
386
+ type Args$a = {
387
+ address: string;
388
+ } & ApiRequestOptions & ApiPaginationOptions;
389
+ declare const resultSchema: v.ObjectSchema<{
390
+ readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
391
+ readonly tx_id: v.StringSchema<undefined>;
392
+ readonly nonce: v.NumberSchema<undefined>;
393
+ readonly fee_rate: v.StringSchema<undefined>;
394
+ readonly sender_address: v.StringSchema<undefined>;
395
+ readonly sponsored: v.BooleanSchema<undefined>;
396
+ readonly post_condition_mode: v.StringSchema<undefined>;
397
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
398
+ readonly anchor_mode: v.StringSchema<undefined>;
399
+ readonly is_unanchored: v.BooleanSchema<undefined>;
400
+ readonly block_hash: v.StringSchema<undefined>;
401
+ readonly parent_block_hash: v.StringSchema<undefined>;
402
+ readonly block_height: v.NumberSchema<undefined>;
403
+ readonly block_time: v.NumberSchema<undefined>;
404
+ readonly block_time_iso: v.StringSchema<undefined>;
405
+ readonly burn_block_height: v.NumberSchema<undefined>;
406
+ readonly burn_block_time: v.NumberSchema<undefined>;
407
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
408
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
409
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
410
+ readonly canonical: v.BooleanSchema<undefined>;
411
+ readonly tx_index: v.NumberSchema<undefined>;
412
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
413
+ readonly tx_result: v.ObjectSchema<{
414
+ readonly hex: v.StringSchema<undefined>;
415
+ readonly repr: v.StringSchema<undefined>;
416
+ }, undefined>;
417
+ readonly microblock_hash: v.StringSchema<undefined>;
418
+ readonly microblock_sequence: v.NumberSchema<undefined>;
419
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
420
+ readonly event_count: v.NumberSchema<undefined>;
421
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
422
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
423
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
424
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
425
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
426
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
427
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
428
+ readonly contract_call: v.ObjectSchema<{
429
+ readonly contract_id: v.StringSchema<undefined>;
430
+ readonly function_name: v.StringSchema<undefined>;
431
+ readonly function_signature: v.StringSchema<undefined>;
432
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
433
+ readonly hex: v.StringSchema<undefined>;
434
+ readonly repr: v.StringSchema<undefined>;
435
+ readonly name: v.StringSchema<undefined>;
436
+ readonly type: v.StringSchema<undefined>;
437
+ }, undefined>, undefined>;
438
+ }, undefined>;
439
+ }, undefined>, v.ObjectSchema<{
440
+ readonly tx_id: v.StringSchema<undefined>;
441
+ readonly nonce: v.NumberSchema<undefined>;
442
+ readonly fee_rate: v.StringSchema<undefined>;
443
+ readonly sender_address: v.StringSchema<undefined>;
444
+ readonly sponsored: v.BooleanSchema<undefined>;
445
+ readonly post_condition_mode: v.StringSchema<undefined>;
446
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
447
+ readonly anchor_mode: v.StringSchema<undefined>;
448
+ readonly is_unanchored: v.BooleanSchema<undefined>;
449
+ readonly block_hash: v.StringSchema<undefined>;
450
+ readonly parent_block_hash: v.StringSchema<undefined>;
451
+ readonly block_height: v.NumberSchema<undefined>;
452
+ readonly block_time: v.NumberSchema<undefined>;
453
+ readonly block_time_iso: v.StringSchema<undefined>;
454
+ readonly burn_block_height: v.NumberSchema<undefined>;
455
+ readonly burn_block_time: v.NumberSchema<undefined>;
456
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
457
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
458
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
459
+ readonly canonical: v.BooleanSchema<undefined>;
460
+ readonly tx_index: v.NumberSchema<undefined>;
461
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
462
+ readonly tx_result: v.ObjectSchema<{
463
+ readonly hex: v.StringSchema<undefined>;
464
+ readonly repr: v.StringSchema<undefined>;
465
+ }, undefined>;
466
+ readonly microblock_hash: v.StringSchema<undefined>;
467
+ readonly microblock_sequence: v.NumberSchema<undefined>;
468
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
469
+ readonly event_count: v.NumberSchema<undefined>;
470
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
471
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
472
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
473
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
474
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
475
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
476
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
477
+ readonly smart_contract: v.ObjectSchema<{
478
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
479
+ readonly contract_id: v.StringSchema<undefined>;
480
+ readonly source_code: v.StringSchema<undefined>;
481
+ }, undefined>;
482
+ }, undefined>, v.ObjectSchema<{
483
+ readonly tx_id: v.StringSchema<undefined>;
484
+ readonly nonce: v.NumberSchema<undefined>;
485
+ readonly fee_rate: v.StringSchema<undefined>;
486
+ readonly sender_address: v.StringSchema<undefined>;
487
+ readonly sponsored: v.BooleanSchema<undefined>;
488
+ readonly post_condition_mode: v.StringSchema<undefined>;
489
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
490
+ readonly anchor_mode: v.StringSchema<undefined>;
491
+ readonly is_unanchored: v.BooleanSchema<undefined>;
492
+ readonly block_hash: v.StringSchema<undefined>;
493
+ readonly parent_block_hash: v.StringSchema<undefined>;
494
+ readonly block_height: v.NumberSchema<undefined>;
495
+ readonly block_time: v.NumberSchema<undefined>;
496
+ readonly block_time_iso: v.StringSchema<undefined>;
497
+ readonly burn_block_height: v.NumberSchema<undefined>;
498
+ readonly burn_block_time: v.NumberSchema<undefined>;
499
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
500
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
501
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
502
+ readonly canonical: v.BooleanSchema<undefined>;
503
+ readonly tx_index: v.NumberSchema<undefined>;
504
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
505
+ readonly tx_result: v.ObjectSchema<{
506
+ readonly hex: v.StringSchema<undefined>;
507
+ readonly repr: v.StringSchema<undefined>;
508
+ }, undefined>;
509
+ readonly microblock_hash: v.StringSchema<undefined>;
510
+ readonly microblock_sequence: v.NumberSchema<undefined>;
511
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
512
+ readonly event_count: v.NumberSchema<undefined>;
513
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
514
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
515
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
516
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
517
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
518
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
519
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
520
+ readonly token_transfer: v.ObjectSchema<{
521
+ readonly recipient_address: v.StringSchema<undefined>;
522
+ readonly amount: v.StringSchema<undefined>;
523
+ readonly memo: v.StringSchema<undefined>;
524
+ }, undefined>;
525
+ }, undefined>], undefined>;
526
+ readonly stx_sent: v.StringSchema<undefined>;
527
+ readonly stx_received: v.StringSchema<undefined>;
528
+ readonly events: v.ObjectSchema<{
529
+ readonly stx: v.ObjectSchema<{
530
+ readonly transfer: v.NumberSchema<undefined>;
531
+ readonly mint: v.NumberSchema<undefined>;
532
+ readonly burn: v.NumberSchema<undefined>;
533
+ }, undefined>;
534
+ readonly ft: v.ObjectSchema<{
535
+ readonly transfer: v.NumberSchema<undefined>;
536
+ readonly mint: v.NumberSchema<undefined>;
537
+ readonly burn: v.NumberSchema<undefined>;
538
+ }, undefined>;
539
+ readonly nft: v.ObjectSchema<{
540
+ readonly transfer: v.NumberSchema<undefined>;
541
+ readonly mint: v.NumberSchema<undefined>;
542
+ readonly burn: v.NumberSchema<undefined>;
543
+ }, undefined>;
544
+ }, undefined>;
545
+ }, undefined>;
546
+ type Result = v.InferOutput<typeof resultSchema>;
547
+ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
548
+ readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
549
+ readonly tx_id: v.StringSchema<undefined>;
550
+ readonly nonce: v.NumberSchema<undefined>;
551
+ readonly fee_rate: v.StringSchema<undefined>;
552
+ readonly sender_address: v.StringSchema<undefined>;
553
+ readonly sponsored: v.BooleanSchema<undefined>;
554
+ readonly post_condition_mode: v.StringSchema<undefined>;
555
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
556
+ readonly anchor_mode: v.StringSchema<undefined>;
557
+ readonly is_unanchored: v.BooleanSchema<undefined>;
558
+ readonly block_hash: v.StringSchema<undefined>;
559
+ readonly parent_block_hash: v.StringSchema<undefined>;
560
+ readonly block_height: v.NumberSchema<undefined>;
561
+ readonly block_time: v.NumberSchema<undefined>;
562
+ readonly block_time_iso: v.StringSchema<undefined>;
563
+ readonly burn_block_height: v.NumberSchema<undefined>;
564
+ readonly burn_block_time: v.NumberSchema<undefined>;
565
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
566
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
567
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
568
+ readonly canonical: v.BooleanSchema<undefined>;
569
+ readonly tx_index: v.NumberSchema<undefined>;
570
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
571
+ readonly tx_result: v.ObjectSchema<{
572
+ readonly hex: v.StringSchema<undefined>;
573
+ readonly repr: v.StringSchema<undefined>;
574
+ }, undefined>;
575
+ readonly microblock_hash: v.StringSchema<undefined>;
576
+ readonly microblock_sequence: v.NumberSchema<undefined>;
577
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
578
+ readonly event_count: v.NumberSchema<undefined>;
579
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
580
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
581
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
582
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
583
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
584
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
585
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
586
+ readonly contract_call: v.ObjectSchema<{
587
+ readonly contract_id: v.StringSchema<undefined>;
588
+ readonly function_name: v.StringSchema<undefined>;
589
+ readonly function_signature: v.StringSchema<undefined>;
590
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
591
+ readonly hex: v.StringSchema<undefined>;
592
+ readonly repr: v.StringSchema<undefined>;
593
+ readonly name: v.StringSchema<undefined>;
594
+ readonly type: v.StringSchema<undefined>;
595
+ }, undefined>, undefined>;
596
+ }, undefined>;
597
+ }, undefined>, v.ObjectSchema<{
598
+ readonly tx_id: v.StringSchema<undefined>;
599
+ readonly nonce: v.NumberSchema<undefined>;
600
+ readonly fee_rate: v.StringSchema<undefined>;
601
+ readonly sender_address: v.StringSchema<undefined>;
602
+ readonly sponsored: v.BooleanSchema<undefined>;
603
+ readonly post_condition_mode: v.StringSchema<undefined>;
604
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
605
+ readonly anchor_mode: v.StringSchema<undefined>;
606
+ readonly is_unanchored: v.BooleanSchema<undefined>;
607
+ readonly block_hash: v.StringSchema<undefined>;
608
+ readonly parent_block_hash: v.StringSchema<undefined>;
609
+ readonly block_height: v.NumberSchema<undefined>;
610
+ readonly block_time: v.NumberSchema<undefined>;
611
+ readonly block_time_iso: v.StringSchema<undefined>;
612
+ readonly burn_block_height: v.NumberSchema<undefined>;
613
+ readonly burn_block_time: v.NumberSchema<undefined>;
614
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
615
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
616
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
617
+ readonly canonical: v.BooleanSchema<undefined>;
618
+ readonly tx_index: v.NumberSchema<undefined>;
619
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
620
+ readonly tx_result: v.ObjectSchema<{
621
+ readonly hex: v.StringSchema<undefined>;
622
+ readonly repr: v.StringSchema<undefined>;
623
+ }, undefined>;
624
+ readonly microblock_hash: v.StringSchema<undefined>;
625
+ readonly microblock_sequence: v.NumberSchema<undefined>;
626
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
627
+ readonly event_count: v.NumberSchema<undefined>;
628
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
629
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
630
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
631
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
632
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
633
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
634
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
635
+ readonly smart_contract: v.ObjectSchema<{
636
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
637
+ readonly contract_id: v.StringSchema<undefined>;
638
+ readonly source_code: v.StringSchema<undefined>;
639
+ }, undefined>;
640
+ }, undefined>, v.ObjectSchema<{
641
+ readonly tx_id: v.StringSchema<undefined>;
642
+ readonly nonce: v.NumberSchema<undefined>;
643
+ readonly fee_rate: v.StringSchema<undefined>;
644
+ readonly sender_address: v.StringSchema<undefined>;
645
+ readonly sponsored: v.BooleanSchema<undefined>;
646
+ readonly post_condition_mode: v.StringSchema<undefined>;
647
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
648
+ readonly anchor_mode: v.StringSchema<undefined>;
649
+ readonly is_unanchored: v.BooleanSchema<undefined>;
650
+ readonly block_hash: v.StringSchema<undefined>;
651
+ readonly parent_block_hash: v.StringSchema<undefined>;
652
+ readonly block_height: v.NumberSchema<undefined>;
653
+ readonly block_time: v.NumberSchema<undefined>;
654
+ readonly block_time_iso: v.StringSchema<undefined>;
655
+ readonly burn_block_height: v.NumberSchema<undefined>;
656
+ readonly burn_block_time: v.NumberSchema<undefined>;
657
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
658
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
659
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
660
+ readonly canonical: v.BooleanSchema<undefined>;
661
+ readonly tx_index: v.NumberSchema<undefined>;
662
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
663
+ readonly tx_result: v.ObjectSchema<{
664
+ readonly hex: v.StringSchema<undefined>;
665
+ readonly repr: v.StringSchema<undefined>;
666
+ }, undefined>;
667
+ readonly microblock_hash: v.StringSchema<undefined>;
668
+ readonly microblock_sequence: v.NumberSchema<undefined>;
669
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
670
+ readonly event_count: v.NumberSchema<undefined>;
671
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
672
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
673
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
674
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
675
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
676
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
677
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
678
+ readonly token_transfer: v.ObjectSchema<{
679
+ readonly recipient_address: v.StringSchema<undefined>;
680
+ readonly amount: v.StringSchema<undefined>;
681
+ readonly memo: v.StringSchema<undefined>;
682
+ }, undefined>;
683
+ }, undefined>], undefined>;
684
+ readonly stx_sent: v.StringSchema<undefined>;
685
+ readonly stx_received: v.StringSchema<undefined>;
686
+ readonly events: v.ObjectSchema<{
687
+ readonly stx: v.ObjectSchema<{
688
+ readonly transfer: v.NumberSchema<undefined>;
689
+ readonly mint: v.NumberSchema<undefined>;
690
+ readonly burn: v.NumberSchema<undefined>;
691
+ }, undefined>;
692
+ readonly ft: v.ObjectSchema<{
693
+ readonly transfer: v.NumberSchema<undefined>;
694
+ readonly mint: v.NumberSchema<undefined>;
695
+ readonly burn: v.NumberSchema<undefined>;
696
+ }, undefined>;
697
+ readonly nft: v.ObjectSchema<{
698
+ readonly transfer: v.NumberSchema<undefined>;
699
+ readonly mint: v.NumberSchema<undefined>;
700
+ readonly burn: v.NumberSchema<undefined>;
701
+ }, undefined>;
702
+ }, undefined>;
703
+ }, undefined>, undefined>;
704
+ type Results$3 = v.InferOutput<typeof resultsSchema$3>;
705
+ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
706
+ readonly results: v.ArraySchema<v.ObjectSchema<{
707
+ readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
708
+ readonly tx_id: v.StringSchema<undefined>;
709
+ readonly nonce: v.NumberSchema<undefined>;
710
+ readonly fee_rate: v.StringSchema<undefined>;
711
+ readonly sender_address: v.StringSchema<undefined>;
712
+ readonly sponsored: v.BooleanSchema<undefined>;
713
+ readonly post_condition_mode: v.StringSchema<undefined>;
714
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
715
+ readonly anchor_mode: v.StringSchema<undefined>;
716
+ readonly is_unanchored: v.BooleanSchema<undefined>;
717
+ readonly block_hash: v.StringSchema<undefined>;
718
+ readonly parent_block_hash: v.StringSchema<undefined>;
719
+ readonly block_height: v.NumberSchema<undefined>;
720
+ readonly block_time: v.NumberSchema<undefined>;
721
+ readonly block_time_iso: v.StringSchema<undefined>;
722
+ readonly burn_block_height: v.NumberSchema<undefined>;
723
+ readonly burn_block_time: v.NumberSchema<undefined>;
724
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
725
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
726
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
727
+ readonly canonical: v.BooleanSchema<undefined>;
728
+ readonly tx_index: v.NumberSchema<undefined>;
729
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
730
+ readonly tx_result: v.ObjectSchema<{
731
+ readonly hex: v.StringSchema<undefined>;
732
+ readonly repr: v.StringSchema<undefined>;
733
+ }, undefined>;
734
+ readonly microblock_hash: v.StringSchema<undefined>;
735
+ readonly microblock_sequence: v.NumberSchema<undefined>;
736
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
737
+ readonly event_count: v.NumberSchema<undefined>;
738
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
739
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
740
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
741
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
742
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
743
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
744
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
745
+ readonly contract_call: v.ObjectSchema<{
746
+ readonly contract_id: v.StringSchema<undefined>;
747
+ readonly function_name: v.StringSchema<undefined>;
748
+ readonly function_signature: v.StringSchema<undefined>;
749
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
750
+ readonly hex: v.StringSchema<undefined>;
751
+ readonly repr: v.StringSchema<undefined>;
752
+ readonly name: v.StringSchema<undefined>;
753
+ readonly type: v.StringSchema<undefined>;
754
+ }, undefined>, undefined>;
755
+ }, undefined>;
756
+ }, undefined>, v.ObjectSchema<{
757
+ readonly tx_id: v.StringSchema<undefined>;
758
+ readonly nonce: v.NumberSchema<undefined>;
759
+ readonly fee_rate: v.StringSchema<undefined>;
760
+ readonly sender_address: v.StringSchema<undefined>;
761
+ readonly sponsored: v.BooleanSchema<undefined>;
762
+ readonly post_condition_mode: v.StringSchema<undefined>;
763
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
764
+ readonly anchor_mode: v.StringSchema<undefined>;
765
+ readonly is_unanchored: v.BooleanSchema<undefined>;
766
+ readonly block_hash: v.StringSchema<undefined>;
767
+ readonly parent_block_hash: v.StringSchema<undefined>;
768
+ readonly block_height: v.NumberSchema<undefined>;
769
+ readonly block_time: v.NumberSchema<undefined>;
770
+ readonly block_time_iso: v.StringSchema<undefined>;
771
+ readonly burn_block_height: v.NumberSchema<undefined>;
772
+ readonly burn_block_time: v.NumberSchema<undefined>;
773
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
774
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
775
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
776
+ readonly canonical: v.BooleanSchema<undefined>;
777
+ readonly tx_index: v.NumberSchema<undefined>;
778
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
779
+ readonly tx_result: v.ObjectSchema<{
780
+ readonly hex: v.StringSchema<undefined>;
781
+ readonly repr: v.StringSchema<undefined>;
782
+ }, undefined>;
783
+ readonly microblock_hash: v.StringSchema<undefined>;
784
+ readonly microblock_sequence: v.NumberSchema<undefined>;
785
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
786
+ readonly event_count: v.NumberSchema<undefined>;
787
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
788
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
789
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
790
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
791
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
792
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
793
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
794
+ readonly smart_contract: v.ObjectSchema<{
795
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
796
+ readonly contract_id: v.StringSchema<undefined>;
797
+ readonly source_code: v.StringSchema<undefined>;
798
+ }, undefined>;
799
+ }, undefined>, v.ObjectSchema<{
800
+ readonly tx_id: v.StringSchema<undefined>;
801
+ readonly nonce: v.NumberSchema<undefined>;
802
+ readonly fee_rate: v.StringSchema<undefined>;
803
+ readonly sender_address: v.StringSchema<undefined>;
804
+ readonly sponsored: v.BooleanSchema<undefined>;
805
+ readonly post_condition_mode: v.StringSchema<undefined>;
806
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
807
+ readonly anchor_mode: v.StringSchema<undefined>;
808
+ readonly is_unanchored: v.BooleanSchema<undefined>;
809
+ readonly block_hash: v.StringSchema<undefined>;
810
+ readonly parent_block_hash: v.StringSchema<undefined>;
811
+ readonly block_height: v.NumberSchema<undefined>;
812
+ readonly block_time: v.NumberSchema<undefined>;
813
+ readonly block_time_iso: v.StringSchema<undefined>;
814
+ readonly burn_block_height: v.NumberSchema<undefined>;
815
+ readonly burn_block_time: v.NumberSchema<undefined>;
816
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
817
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
818
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
819
+ readonly canonical: v.BooleanSchema<undefined>;
820
+ readonly tx_index: v.NumberSchema<undefined>;
821
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
822
+ readonly tx_result: v.ObjectSchema<{
823
+ readonly hex: v.StringSchema<undefined>;
824
+ readonly repr: v.StringSchema<undefined>;
825
+ }, undefined>;
826
+ readonly microblock_hash: v.StringSchema<undefined>;
827
+ readonly microblock_sequence: v.NumberSchema<undefined>;
828
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
829
+ readonly event_count: v.NumberSchema<undefined>;
830
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
831
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
832
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
833
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
834
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
835
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
836
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
837
+ readonly token_transfer: v.ObjectSchema<{
838
+ readonly recipient_address: v.StringSchema<undefined>;
839
+ readonly amount: v.StringSchema<undefined>;
840
+ readonly memo: v.StringSchema<undefined>;
841
+ }, undefined>;
842
+ }, undefined>], undefined>;
843
+ readonly stx_sent: v.StringSchema<undefined>;
844
+ readonly stx_received: v.StringSchema<undefined>;
845
+ readonly events: v.ObjectSchema<{
846
+ readonly stx: v.ObjectSchema<{
847
+ readonly transfer: v.NumberSchema<undefined>;
848
+ readonly mint: v.NumberSchema<undefined>;
849
+ readonly burn: v.NumberSchema<undefined>;
850
+ }, undefined>;
851
+ readonly ft: v.ObjectSchema<{
852
+ readonly transfer: v.NumberSchema<undefined>;
853
+ readonly mint: v.NumberSchema<undefined>;
854
+ readonly burn: v.NumberSchema<undefined>;
855
+ }, undefined>;
856
+ readonly nft: v.ObjectSchema<{
857
+ readonly transfer: v.NumberSchema<undefined>;
858
+ readonly mint: v.NumberSchema<undefined>;
859
+ readonly burn: v.NumberSchema<undefined>;
860
+ }, undefined>;
861
+ }, undefined>;
862
+ }, undefined>, undefined>;
863
+ readonly limit: v.NumberSchema<undefined>;
864
+ readonly offset: v.NumberSchema<undefined>;
865
+ readonly total: v.NumberSchema<undefined>;
866
+ }, undefined>;
867
+ type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
868
+ declare function addressTransactions(args: Args$a): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
869
+
870
+ type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
871
+ type addressTransactions$1_Result = Result;
872
+ declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
873
+ declare namespace addressTransactions$1 {
874
+ export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
875
+ }
876
+
877
+ type Options$1 = {
878
+ poolPrincipal: string;
879
+ afterBlock?: number;
880
+ unanchored?: boolean;
881
+ limit?: number;
882
+ offset?: number;
883
+ };
884
+ declare const memberSchema: v.ObjectSchema<{
885
+ readonly stacker: v.StringSchema<undefined>;
886
+ readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
887
+ readonly amount_ustx: v.StringSchema<undefined>;
888
+ readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
889
+ readonly block_height: v.NumberSchema<undefined>;
890
+ readonly tx_id: v.StringSchema<undefined>;
891
+ }, undefined>;
892
+ type Member = v.InferOutput<typeof memberSchema>;
893
+ declare const membersResponseSchema: v.ObjectSchema<{
894
+ readonly limit: v.NumberSchema<undefined>;
895
+ readonly offset: v.NumberSchema<undefined>;
896
+ readonly total: v.NumberSchema<undefined>;
897
+ readonly results: v.ArraySchema<v.ObjectSchema<{
898
+ readonly stacker: v.StringSchema<undefined>;
899
+ readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
900
+ readonly amount_ustx: v.StringSchema<undefined>;
901
+ readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
902
+ readonly block_height: v.NumberSchema<undefined>;
903
+ readonly tx_id: v.StringSchema<undefined>;
904
+ }, undefined>, undefined>;
905
+ }, undefined>;
906
+ type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
907
+ declare function members(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result$1<MembersResponse>>;
908
+
909
+ type members$1_Member = Member;
910
+ type members$1_MembersResponse = MembersResponse;
911
+ declare const members$1_memberSchema: typeof memberSchema;
912
+ declare const members$1_members: typeof members;
913
+ declare const members$1_membersResponseSchema: typeof membersResponseSchema;
914
+ declare namespace members$1 {
915
+ export { type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, type Options$1 as Options, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
916
+ }
917
+
918
+ type Args$9 = {
919
+ sender: string;
920
+ arguments: string[];
921
+ contractAddress: string;
922
+ contractName: string;
923
+ functionName: string;
924
+ } & ApiRequestOptions;
925
+ declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
926
+ readonly okay: v.LiteralSchema<true, undefined>;
927
+ /**
928
+ * A Clarity value as a hex-encoded string.
929
+ */
930
+ readonly result: v.StringSchema<undefined>;
931
+ }, undefined>, v.ObjectSchema<{
932
+ readonly okay: v.LiteralSchema<false, undefined>;
933
+ readonly cause: v.UnknownSchema;
934
+ }, undefined>], undefined>;
935
+ type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
936
+ declare function readOnly(args: Args$9): Promise<Result$1<ReadOnlyResponse>>;
937
+
938
+ type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
939
+ declare const readOnly$1_readOnly: typeof readOnly;
940
+ declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
941
+ declare namespace readOnly$1 {
942
+ export { type Args$9 as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
943
+ }
944
+
945
+ type Args$8 = {
946
+ cycleNumber: number;
947
+ signerPublicKey: string;
948
+ } & ApiRequestOptions & ApiPaginationOptions;
949
+ declare const stackerInfoSchema: v.ObjectSchema<{
950
+ readonly stacker_address: v.StringSchema<undefined>;
951
+ readonly stacked_amount: v.StringSchema<undefined>;
952
+ readonly pox_address: v.StringSchema<undefined>;
953
+ readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
954
+ }, undefined>;
955
+ type StackerInfo = v.InferOutput<typeof stackerInfoSchema>;
956
+ declare const resultsSchema$2: v.ArraySchema<v.ObjectSchema<{
957
+ readonly stacker_address: v.StringSchema<undefined>;
958
+ readonly stacked_amount: v.StringSchema<undefined>;
959
+ readonly pox_address: v.StringSchema<undefined>;
960
+ readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
961
+ }, undefined>, undefined>;
962
+ type Results$2 = v.InferOutput<typeof resultsSchema$2>;
963
+ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
964
+ readonly results: v.ArraySchema<v.ObjectSchema<{
965
+ readonly stacker_address: v.StringSchema<undefined>;
966
+ readonly stacked_amount: v.StringSchema<undefined>;
967
+ readonly pox_address: v.StringSchema<undefined>;
968
+ readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
969
+ }, undefined>, undefined>;
970
+ readonly limit: v.NumberSchema<undefined>;
971
+ readonly offset: v.NumberSchema<undefined>;
972
+ readonly total: v.NumberSchema<undefined>;
973
+ }, undefined>;
974
+ type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
975
+ declare function stackersForSignerInCycle(opts: Args$8): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
976
+
977
+ type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
978
+ type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
979
+ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
980
+ declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
981
+ declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
982
+ declare namespace stackersForSignerInCycle$1 {
983
+ export { type Args$8 as Args, type Results$2 as Results, type stackersForSignerInCycle$1_StackerInfo as StackerInfo, type stackersForSignerInCycle$1_StackersForSignerInCycleResponse as StackersForSignerInCycleResponse, resultsSchema$2 as resultsSchema, stackersForSignerInCycle$1_stackerInfoSchema as stackerInfoSchema, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle, stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema as stackersForSignerInCycleResponseSchema };
984
+ }
985
+
986
+ type Args$7 = {
987
+ cycleNumber: number;
988
+ } & ApiRequestOptions & ApiPaginationOptions;
989
+ declare const signerSchema: v.ObjectSchema<{
990
+ readonly signing_key: v.StringSchema<undefined>;
991
+ readonly signer_address: v.StringSchema<undefined>;
992
+ readonly weight: v.NumberSchema<undefined>;
993
+ readonly stacked_amount: v.StringSchema<undefined>;
994
+ readonly weight_percent: v.NumberSchema<undefined>;
995
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
996
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
997
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
998
+ }, undefined>;
999
+ type Signer = v.InferOutput<typeof signerSchema>;
1000
+ declare const resultsSchema$1: v.ArraySchema<v.ObjectSchema<{
1001
+ readonly signing_key: v.StringSchema<undefined>;
1002
+ readonly signer_address: v.StringSchema<undefined>;
1003
+ readonly weight: v.NumberSchema<undefined>;
1004
+ readonly stacked_amount: v.StringSchema<undefined>;
1005
+ readonly weight_percent: v.NumberSchema<undefined>;
1006
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
1007
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
1008
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
1009
+ }, undefined>, undefined>;
1010
+ type Results$1 = v.InferOutput<typeof resultsSchema$1>;
1011
+ declare const signersResponseSchema: v.ObjectSchema<{
1012
+ readonly results: v.ArraySchema<v.ObjectSchema<{
1013
+ readonly signing_key: v.StringSchema<undefined>;
1014
+ readonly signer_address: v.StringSchema<undefined>;
1015
+ readonly weight: v.NumberSchema<undefined>;
1016
+ readonly stacked_amount: v.StringSchema<undefined>;
1017
+ readonly weight_percent: v.NumberSchema<undefined>;
1018
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
1019
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
1020
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
1021
+ }, undefined>, undefined>;
1022
+ readonly limit: v.NumberSchema<undefined>;
1023
+ readonly offset: v.NumberSchema<undefined>;
1024
+ readonly total: v.NumberSchema<undefined>;
1025
+ }, undefined>;
1026
+ type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
1027
+ declare function signersInCycle(args: Args$7): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1028
+
1029
+ type signersInCycle$1_Signer = Signer;
1030
+ type signersInCycle$1_SignersResponse = SignersResponse;
1031
+ declare const signersInCycle$1_signerSchema: typeof signerSchema;
1032
+ declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
1033
+ declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
1034
+ declare namespace signersInCycle$1 {
1035
+ export { type Args$7 as Args, type Results$1 as Results, type signersInCycle$1_Signer as Signer, type signersInCycle$1_SignersResponse as SignersResponse, resultsSchema$1 as resultsSchema, signersInCycle$1_signerSchema as signerSchema, signersInCycle$1_signersInCycle as signersInCycle, signersInCycle$1_signersResponseSchema as signersResponseSchema };
1036
+ }
1037
+
1038
+ type Args$6 = {
1039
+ /**
1040
+ * The signers public key as a hex string, with or without a '0x' prefix.
1041
+ */
1042
+ signerPublicKey: string;
1043
+ cycleId: number;
1044
+ } & ApiRequestOptions;
1045
+ declare const signerInCycleResponseSchema: v.ObjectSchema<{
1046
+ readonly signing_key: v.StringSchema<undefined>;
1047
+ readonly signer_address: v.StringSchema<undefined>;
1048
+ readonly weight: v.NumberSchema<undefined>;
1049
+ readonly stacked_amount: v.StringSchema<undefined>;
1050
+ readonly weight_percent: v.NumberSchema<undefined>;
1051
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
1052
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
1053
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
1054
+ }, undefined>;
1055
+ type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
1056
+ declare function signerInCycle(args: Args$6): Promise<Result$1<SignerInCycleResponse>>;
1057
+
1058
+ type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
1059
+ declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
1060
+ declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
1061
+ declare namespace signerInCycle$1 {
1062
+ export { type Args$6 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
1063
+ }
1064
+
1065
+ type Args$5 = ApiRequestOptions & ApiPaginationOptions;
1066
+ declare const cycleInfoSchema: v.ObjectSchema<{
1067
+ readonly block_height: v.NumberSchema<undefined>;
1068
+ readonly index_block_hash: v.StringSchema<undefined>;
1069
+ readonly cycle_number: v.NumberSchema<undefined>;
1070
+ readonly total_weight: v.NumberSchema<undefined>;
1071
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1072
+ readonly total_signers: v.NumberSchema<undefined>;
1073
+ }, undefined>;
1074
+ type CycleInfo = v.InferOutput<typeof cycleInfoSchema>;
1075
+ declare const resultsSchema: v.ArraySchema<v.ObjectSchema<{
1076
+ readonly block_height: v.NumberSchema<undefined>;
1077
+ readonly index_block_hash: v.StringSchema<undefined>;
1078
+ readonly cycle_number: v.NumberSchema<undefined>;
1079
+ readonly total_weight: v.NumberSchema<undefined>;
1080
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1081
+ readonly total_signers: v.NumberSchema<undefined>;
1082
+ }, undefined>, undefined>;
1083
+ type Results = v.InferOutput<typeof resultsSchema>;
1084
+ declare const cyclesResponseSchema: v.ObjectSchema<{
1085
+ readonly results: v.ArraySchema<v.ObjectSchema<{
1086
+ readonly block_height: v.NumberSchema<undefined>;
1087
+ readonly index_block_hash: v.StringSchema<undefined>;
1088
+ readonly cycle_number: v.NumberSchema<undefined>;
1089
+ readonly total_weight: v.NumberSchema<undefined>;
1090
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1091
+ readonly total_signers: v.NumberSchema<undefined>;
1092
+ }, undefined>, undefined>;
1093
+ readonly limit: v.NumberSchema<undefined>;
1094
+ readonly offset: v.NumberSchema<undefined>;
1095
+ readonly total: v.NumberSchema<undefined>;
1096
+ }, undefined>;
1097
+ type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
1098
+ declare function cycles(args: Args$5): Promise<Result$1<CyclesResponse>>;
1099
+
1100
+ type cycles$1_CycleInfo = CycleInfo;
1101
+ type cycles$1_CyclesResponse = CyclesResponse;
1102
+ type cycles$1_Results = Results;
1103
+ declare const cycles$1_cycleInfoSchema: typeof cycleInfoSchema;
1104
+ declare const cycles$1_cycles: typeof cycles;
1105
+ declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
1106
+ declare const cycles$1_resultsSchema: typeof resultsSchema;
1107
+ declare namespace cycles$1 {
1108
+ export { type Args$5 as Args, type cycles$1_CycleInfo as CycleInfo, type cycles$1_CyclesResponse as CyclesResponse, type cycles$1_Results as Results, cycles$1_cycleInfoSchema as cycleInfoSchema, cycles$1_cycles as cycles, cycles$1_cyclesResponseSchema as cyclesResponseSchema, cycles$1_resultsSchema as resultsSchema };
1109
+ }
1110
+
1111
+ type Args$4 = {
1112
+ cycleNumber: number;
1113
+ } & ApiRequestOptions;
1114
+ declare const responseSchema$3: v.ObjectSchema<{
1115
+ readonly block_height: v.NumberSchema<undefined>;
1116
+ readonly index_block_hash: v.StringSchema<undefined>;
1117
+ readonly cycle_number: v.NumberSchema<undefined>;
1118
+ readonly total_weight: v.NumberSchema<undefined>;
1119
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1120
+ readonly total_signers: v.NumberSchema<undefined>;
1121
+ }, undefined>;
1122
+ type Response$3 = v.InferOutput<typeof responseSchema$3>;
1123
+ declare function cycle(opts: Args$4): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
1124
+
1125
+ declare const cycle$1_cycle: typeof cycle;
1126
+ declare namespace cycle$1 {
1127
+ export { type Args$4 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
1128
+ }
1129
+
1130
+ type Args$3 = ApiRequestOptions;
1131
+ declare const poxDetailsResponseSchema: v.ObjectSchema<{
1132
+ readonly contract_id: v.StringSchema<undefined>;
1133
+ readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
1134
+ readonly first_burnchain_block_height: v.NumberSchema<undefined>;
1135
+ readonly current_burnchain_block_height: v.NumberSchema<undefined>;
1136
+ readonly prepare_phase_block_length: v.NumberSchema<undefined>;
1137
+ readonly reward_phase_block_length: v.NumberSchema<undefined>;
1138
+ readonly reward_slots: v.NumberSchema<undefined>;
1139
+ readonly rejection_fraction: v.NullSchema<undefined>;
1140
+ readonly total_liquid_supply_ustx: v.NumberSchema<undefined>;
1141
+ readonly current_cycle: v.ObjectSchema<{
1142
+ readonly id: v.NumberSchema<undefined>;
1143
+ readonly min_threshold_ustx: v.NumberSchema<undefined>;
1144
+ readonly stacked_ustx: v.NumberSchema<undefined>;
1145
+ readonly is_pox_active: v.BooleanSchema<undefined>;
1146
+ }, undefined>;
1147
+ readonly next_cycle: v.ObjectSchema<{
1148
+ readonly id: v.NumberSchema<undefined>;
1149
+ readonly min_threshold_ustx: v.NumberSchema<undefined>;
1150
+ readonly min_increment_ustx: v.NumberSchema<undefined>;
1151
+ readonly stacked_ustx: v.NumberSchema<undefined>;
1152
+ readonly prepare_phase_start_block_height: v.NumberSchema<undefined>;
1153
+ readonly blocks_until_prepare_phase: v.NumberSchema<undefined>;
1154
+ readonly reward_phase_start_block_height: v.NumberSchema<undefined>;
1155
+ readonly blocks_until_reward_phase: v.NumberSchema<undefined>;
1156
+ readonly ustx_until_pox_rejection: v.NullSchema<undefined>;
1157
+ }, undefined>;
1158
+ readonly epochs: v.ArraySchema<v.ObjectSchema<{
1159
+ readonly epoch_id: v.StringSchema<undefined>;
1160
+ readonly start_height: v.NumberSchema<undefined>;
1161
+ readonly end_height: v.NumberSchema<undefined>;
1162
+ readonly block_limit: v.ObjectSchema<{
1163
+ readonly write_length: v.NumberSchema<undefined>;
1164
+ readonly write_count: v.NumberSchema<undefined>;
1165
+ readonly read_length: v.NumberSchema<undefined>;
1166
+ readonly read_count: v.NumberSchema<undefined>;
1167
+ readonly runtime: v.NumberSchema<undefined>;
1168
+ }, undefined>;
1169
+ readonly network_epoch: v.NumberSchema<undefined>;
1170
+ }, undefined>, undefined>;
1171
+ readonly min_amount_ustx: v.NumberSchema<undefined>;
1172
+ readonly prepare_cycle_length: v.NumberSchema<undefined>;
1173
+ readonly reward_cycle_id: v.NumberSchema<undefined>;
1174
+ readonly reward_cycle_length: v.NumberSchema<undefined>;
1175
+ readonly rejection_votes_left_required: v.NullSchema<undefined>;
1176
+ readonly next_reward_cycle_in: v.NumberSchema<undefined>;
1177
+ readonly contract_versions: v.ArraySchema<v.ObjectSchema<{
1178
+ readonly contract_id: v.StringSchema<undefined>;
1179
+ readonly activation_burnchain_block_height: v.NumberSchema<undefined>;
1180
+ readonly first_reward_cycle_id: v.NumberSchema<undefined>;
1181
+ }, undefined>, undefined>;
1182
+ }, undefined>;
1183
+ type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
1184
+ declare function poxDetails(args: Args$3): Promise<Result$1<PoxDetailsResponse>>;
1185
+
1186
+ declare const poxDetails$1_poxDetails: typeof poxDetails;
1187
+ declare namespace poxDetails$1 {
1188
+ export { poxDetails$1_poxDetails as poxDetails };
1189
+ }
1190
+
1191
+ declare const CoreApiResponseSchema: v.ObjectSchema<{
1192
+ readonly peer_version: v.NumberSchema<undefined>;
1193
+ readonly pox_consensus: v.StringSchema<undefined>;
1194
+ readonly burn_block_height: v.NumberSchema<undefined>;
1195
+ readonly stable_pox_consensus: v.StringSchema<undefined>;
1196
+ readonly stable_burn_block_height: v.NumberSchema<undefined>;
1197
+ readonly server_version: v.StringSchema<undefined>;
1198
+ readonly network_id: v.NumberSchema<undefined>;
1199
+ readonly parent_network_id: v.NumberSchema<undefined>;
1200
+ readonly stacks_tip_height: v.NumberSchema<undefined>;
1201
+ readonly stacks_tip: v.StringSchema<undefined>;
1202
+ readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
1203
+ readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, never>;
1204
+ readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, never>;
1205
+ readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, never>;
1206
+ }, undefined>;
1207
+ type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
1208
+ declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
1209
+
1210
+ type coreApi$1_CoreApiResponse = CoreApiResponse;
1211
+ declare const coreApi$1_coreApi: typeof coreApi;
1212
+ declare namespace coreApi$1 {
1213
+ export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
1214
+ }
1215
+
1216
+ type Args$2 = {
1217
+ heightOrHash: string | number;
1218
+ } & ApiRequestOptions;
1219
+ declare const responseSchema$2: v.ObjectSchema<{
1220
+ readonly canonical: v.BooleanSchema<undefined>;
1221
+ readonly height: v.NumberSchema<undefined>;
1222
+ readonly hash: v.StringSchema<undefined>;
1223
+ readonly block_time: v.NumberSchema<undefined>;
1224
+ readonly block_time_iso: v.StringSchema<undefined>;
1225
+ readonly index_block_hash: v.StringSchema<undefined>;
1226
+ readonly parent_block_hash: v.StringSchema<undefined>;
1227
+ readonly parent_index_block_hash: v.StringSchema<undefined>;
1228
+ readonly burn_block_time: v.NumberSchema<undefined>;
1229
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
1230
+ readonly burn_block_hash: v.StringSchema<undefined>;
1231
+ readonly burn_block_height: v.NumberSchema<undefined>;
1232
+ readonly miner_txid: v.StringSchema<undefined>;
1233
+ readonly tx_count: v.NumberSchema<undefined>;
1234
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
1235
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
1236
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
1237
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
1238
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
1239
+ }, undefined>;
1240
+ type Response$2 = v.InferOutput<typeof responseSchema$2>;
1241
+ declare function getBlock(opts: Args$2): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
1242
+
1243
+ declare const getBlock$1_getBlock: typeof getBlock;
1244
+ declare namespace getBlock$1 {
1245
+ export { type Args$2 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
1246
+ }
1247
+
1248
+ type Args$1 = {
1249
+ principal: string;
1250
+ } & ApiRequestOptions;
1251
+ declare const responseSchema$1: v.ObjectSchema<{
1252
+ readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1253
+ readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1254
+ readonly possible_next_nonce: v.NumberSchema<undefined>;
1255
+ readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1256
+ readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1257
+ }, undefined>;
1258
+ type Response$1 = v.InferOutput<typeof responseSchema$1>;
1259
+ declare function latestNonce(opts: Args$1): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
1260
+
1261
+ declare const latestNonce$1_latestNonce: typeof latestNonce;
1262
+ declare namespace latestNonce$1 {
1263
+ export { type Args$1 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
1264
+ }
1265
+
1266
+ type Args = {
1267
+ principal: string;
1268
+ unanchored?: boolean;
1269
+ untilBlock?: number;
1270
+ } & ApiRequestOptions;
1271
+ declare const responseSchema: v.ObjectSchema<{
1272
+ readonly stx: v.ObjectSchema<{
1273
+ readonly balance: v.StringSchema<undefined>;
1274
+ readonly total_sent: v.StringSchema<undefined>;
1275
+ readonly total_received: v.StringSchema<undefined>;
1276
+ readonly total_fees_sent: v.StringSchema<undefined>;
1277
+ readonly total_miner_rewards_received: v.StringSchema<undefined>;
1278
+ readonly lock_tx_id: v.StringSchema<undefined>;
1279
+ readonly locked: v.StringSchema<undefined>;
1280
+ readonly lock_height: v.NumberSchema<undefined>;
1281
+ readonly burnchain_lock_height: v.NumberSchema<undefined>;
1282
+ readonly burnchain_unlock_height: v.NumberSchema<undefined>;
1283
+ }, undefined>;
1284
+ readonly fungible_tokens: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
1285
+ readonly balance: v.StringSchema<undefined>;
1286
+ readonly total_sent: v.StringSchema<undefined>;
1287
+ readonly total_received: v.StringSchema<undefined>;
1288
+ }, undefined>, undefined>;
1289
+ readonly non_fungible_tokens: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
1290
+ readonly count: v.StringSchema<undefined>;
1291
+ readonly total_sent: v.StringSchema<undefined>;
1292
+ readonly total_received: v.StringSchema<undefined>;
1293
+ }, undefined>, undefined>;
1294
+ }, undefined>;
1295
+ type Response = v.InferOutput<typeof responseSchema>;
1296
+ declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
1297
+
1298
+ type balances$1_Args = Args;
1299
+ type balances$1_Response = Response;
1300
+ declare const balances$1_balances: typeof balances;
1301
+ declare const balances$1_responseSchema: typeof responseSchema;
1302
+ declare namespace balances$1 {
1303
+ export { type balances$1_Args as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
1304
+ }
1305
+
1306
+ declare const index$7_balances: typeof balances;
1307
+ declare const index$7_latestNonce: typeof latestNonce;
1308
+ declare namespace index$7 {
1309
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$7_balances as balances, index$7_latestNonce as latestNonce };
1310
+ }
1311
+
1312
+ declare const index$6_getBlock: typeof getBlock;
1313
+ declare namespace index$6 {
1314
+ export { getBlock$1 as GetBlock, index$6_getBlock as getBlock };
1315
+ }
1316
+
1317
+ declare const index$5_coreApi: typeof coreApi;
1318
+ declare const index$5_poxDetails: typeof poxDetails;
1319
+ declare namespace index$5 {
1320
+ export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$5_coreApi as coreApi, index$5_poxDetails as poxDetails };
1321
+ }
1322
+
1323
+ declare const index$4_cycle: typeof cycle;
1324
+ declare const index$4_cycles: typeof cycles;
1325
+ declare const index$4_signerInCycle: typeof signerInCycle;
1326
+ declare const index$4_signersInCycle: typeof signersInCycle;
1327
+ declare const index$4_stackersForSignerInCycle: typeof stackersForSignerInCycle;
1328
+ declare namespace index$4 {
1329
+ export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$4_cycle as cycle, index$4_cycles as cycles, index$4_signerInCycle as signerInCycle, index$4_signersInCycle as signersInCycle, index$4_stackersForSignerInCycle as stackersForSignerInCycle };
1330
+ }
1331
+
1332
+ declare const index$3_readOnly: typeof readOnly;
1333
+ declare namespace index$3 {
1334
+ export { readOnly$1 as ReadOnly, index$3_readOnly as readOnly };
1335
+ }
1336
+
1337
+ declare const index$2_members: typeof members;
1338
+ declare namespace index$2 {
1339
+ export { members$1 as Members, index$2_members as members };
1340
+ }
1341
+
1342
+ declare const index$1_addressTransactions: typeof addressTransactions;
1343
+ declare const index$1_getTransaction: typeof getTransaction;
1344
+ declare namespace index$1 {
1345
+ export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
1346
+ }
1347
+
1348
+ declare const accounts: {
1349
+ balances: typeof balances;
1350
+ latestNonce: typeof latestNonce;
1351
+ };
1352
+
1353
+ declare const blocks: {
1354
+ getBlock: typeof getBlock;
1355
+ };
1356
+
1357
+ declare const info: {
1358
+ coreApi: typeof coreApi;
1359
+ poxDetails: typeof poxDetails;
1360
+ };
1361
+
1362
+ declare const proofOfTransfer: {
1363
+ cycle: typeof cycle;
1364
+ cycles: typeof cycles;
1365
+ signerInCycle: typeof signerInCycle;
1366
+ signersInCycle: typeof signersInCycle;
1367
+ stackersForSignerInCycle: typeof stackersForSignerInCycle;
1368
+ };
1369
+
1370
+ declare const smartContracts: {
1371
+ readOnly: typeof readOnly;
1372
+ };
1373
+
1374
+ declare const stackingPool: {
1375
+ members: typeof members;
1376
+ };
1377
+
1378
+ declare const transactions: {
1379
+ addressTransactions: typeof addressTransactions;
1380
+ getTransaction: typeof getTransaction;
1381
+ };
1382
+
1383
+ declare const index_accounts: typeof accounts;
1384
+ declare const index_blocks: typeof blocks;
1385
+ declare const index_info: typeof info;
1386
+ declare const index_proofOfTransfer: typeof proofOfTransfer;
1387
+ declare const index_smartContracts: typeof smartContracts;
1388
+ declare const index_stackingPool: typeof stackingPool;
1389
+ declare const index_transactions: typeof transactions;
1390
+ declare namespace index {
1391
+ export { index$7 as Accounts, index$6 as Blocks, index$5 as Info, index$4 as ProofOfTransfer, index$3 as SmartContracts, index$2 as StackingPool, index$1 as Transactions, index_accounts as accounts, index_blocks as blocks, index_info as info, index_proofOfTransfer as proofOfTransfer, index_smartContracts as smartContracts, index_stackingPool as stackingPool, index_transactions as transactions };
1392
+ }
1393
+
1394
+ type Options = {
1395
+ startingDelay?: number;
1396
+ numOfAttempts?: number;
1397
+ };
1398
+ declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
1399
+ declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
1400
+
1401
+ declare const stacksApi: {
1402
+ accounts: {
1403
+ balances: typeof balances;
1404
+ latestNonce: typeof latestNonce;
1405
+ };
1406
+ blocks: {
1407
+ getBlock: typeof getBlock;
1408
+ };
1409
+ info: {
1410
+ coreApi: typeof coreApi;
1411
+ poxDetails: typeof poxDetails;
1412
+ };
1413
+ proofOfTransfer: {
1414
+ cycle: typeof cycle;
1415
+ cycles: typeof cycles;
1416
+ signerInCycle: typeof signerInCycle;
1417
+ signersInCycle: typeof signersInCycle;
1418
+ stackersForSignerInCycle: typeof stackersForSignerInCycle;
1419
+ };
1420
+ smartContracts: {
1421
+ readOnly: typeof readOnly;
1422
+ };
1423
+ stackingPool: {
1424
+ members: typeof members;
1425
+ };
1426
+ transactions: {
1427
+ addressTransactions: typeof addressTransactions;
1428
+ getTransaction: typeof getTransaction;
1429
+ };
1430
+ };
1431
+
1432
+ export { type Result$1 as Result, type SafeError, index as StacksApi, callRateLimitedApi, error, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, success };