@secretkeylabs/stacks-tools 0.3.0 → 0.4.0-13a5f23

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.
package/dist/index.d.cts CHANGED
@@ -5,16 +5,31 @@ type SafeError<TName extends string = string, TData = unknown> = {
5
5
  readonly message: string;
6
6
  readonly data?: TData;
7
7
  };
8
- type Result<TData = unknown, E extends SafeError = SafeError> = [E, null] | [null, TData];
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">>;
9
13
 
10
14
  type ApiKeyConfig = {
11
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
+ */
12
20
  header: string;
13
21
  };
14
22
  type ApiRequestOptions = {
15
23
  baseUrl: string;
16
24
  apiKeyConfig?: ApiKeyConfig;
17
25
  };
26
+ type ProofAndTip = {
27
+ /**
28
+ * Returns object without the proof field when set to 0.
29
+ */
30
+ proof?: number;
31
+ tip?: "latest" | string;
32
+ };
18
33
  type ApiPaginationOptions = {
19
34
  /**
20
35
  * The number of items to return. Each endpoint has its own maximum allowed
@@ -26,6 +41,188 @@ type ApiPaginationOptions = {
26
41
  offset?: number;
27
42
  };
28
43
 
44
+ declare const baseTransactionSchema: v.ObjectSchema<{
45
+ readonly tx_id: v.StringSchema<undefined>;
46
+ readonly nonce: v.NumberSchema<undefined>;
47
+ readonly fee_rate: v.StringSchema<undefined>;
48
+ readonly sender_address: v.StringSchema<undefined>;
49
+ readonly sponsored: v.BooleanSchema<undefined>;
50
+ readonly post_condition_mode: v.StringSchema<undefined>;
51
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
52
+ readonly anchor_mode: v.StringSchema<undefined>;
53
+ readonly is_unanchored: v.BooleanSchema<undefined>;
54
+ readonly block_hash: v.StringSchema<undefined>;
55
+ readonly parent_block_hash: v.StringSchema<undefined>;
56
+ readonly block_height: v.NumberSchema<undefined>;
57
+ readonly block_time: v.NumberSchema<undefined>;
58
+ readonly block_time_iso: v.StringSchema<undefined>;
59
+ readonly burn_block_height: v.NumberSchema<undefined>;
60
+ readonly burn_block_time: v.NumberSchema<undefined>;
61
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
62
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
63
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
64
+ readonly canonical: v.BooleanSchema<undefined>;
65
+ readonly tx_index: v.NumberSchema<undefined>;
66
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
67
+ readonly tx_result: v.ObjectSchema<{
68
+ readonly hex: v.StringSchema<undefined>;
69
+ readonly repr: v.StringSchema<undefined>;
70
+ }, undefined>;
71
+ readonly microblock_hash: v.StringSchema<undefined>;
72
+ readonly microblock_sequence: v.NumberSchema<undefined>;
73
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
74
+ readonly event_count: v.NumberSchema<undefined>;
75
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
76
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
77
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
78
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
79
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
80
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
81
+ }, undefined>;
82
+ declare const contractCallTransactionSchema: v.ObjectSchema<{
83
+ readonly tx_id: v.StringSchema<undefined>;
84
+ readonly nonce: v.NumberSchema<undefined>;
85
+ readonly fee_rate: v.StringSchema<undefined>;
86
+ readonly sender_address: v.StringSchema<undefined>;
87
+ readonly sponsored: v.BooleanSchema<undefined>;
88
+ readonly post_condition_mode: v.StringSchema<undefined>;
89
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
90
+ readonly anchor_mode: v.StringSchema<undefined>;
91
+ readonly is_unanchored: v.BooleanSchema<undefined>;
92
+ readonly block_hash: v.StringSchema<undefined>;
93
+ readonly parent_block_hash: v.StringSchema<undefined>;
94
+ readonly block_height: v.NumberSchema<undefined>;
95
+ readonly block_time: v.NumberSchema<undefined>;
96
+ readonly block_time_iso: v.StringSchema<undefined>;
97
+ readonly burn_block_height: v.NumberSchema<undefined>;
98
+ readonly burn_block_time: v.NumberSchema<undefined>;
99
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
100
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
101
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
102
+ readonly canonical: v.BooleanSchema<undefined>;
103
+ readonly tx_index: v.NumberSchema<undefined>;
104
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
105
+ readonly tx_result: v.ObjectSchema<{
106
+ readonly hex: v.StringSchema<undefined>;
107
+ readonly repr: v.StringSchema<undefined>;
108
+ }, undefined>;
109
+ readonly microblock_hash: v.StringSchema<undefined>;
110
+ readonly microblock_sequence: v.NumberSchema<undefined>;
111
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
112
+ readonly event_count: v.NumberSchema<undefined>;
113
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
114
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
115
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
116
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
117
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
118
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
119
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
120
+ readonly contract_call: v.ObjectSchema<{
121
+ readonly contract_id: v.StringSchema<undefined>;
122
+ readonly function_name: v.StringSchema<undefined>;
123
+ readonly function_signature: v.StringSchema<undefined>;
124
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
125
+ readonly hex: v.StringSchema<undefined>;
126
+ readonly repr: v.StringSchema<undefined>;
127
+ readonly name: v.StringSchema<undefined>;
128
+ readonly type: v.StringSchema<undefined>;
129
+ }, undefined>, undefined>;
130
+ }, undefined>;
131
+ }, undefined>;
132
+ type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
133
+ declare const smartContractTransactionSchema: v.ObjectSchema<{
134
+ readonly tx_id: v.StringSchema<undefined>;
135
+ readonly nonce: v.NumberSchema<undefined>;
136
+ readonly fee_rate: v.StringSchema<undefined>;
137
+ readonly sender_address: v.StringSchema<undefined>;
138
+ readonly sponsored: v.BooleanSchema<undefined>;
139
+ readonly post_condition_mode: v.StringSchema<undefined>;
140
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
141
+ readonly anchor_mode: v.StringSchema<undefined>;
142
+ readonly is_unanchored: v.BooleanSchema<undefined>;
143
+ readonly block_hash: v.StringSchema<undefined>;
144
+ readonly parent_block_hash: v.StringSchema<undefined>;
145
+ readonly block_height: v.NumberSchema<undefined>;
146
+ readonly block_time: v.NumberSchema<undefined>;
147
+ readonly block_time_iso: v.StringSchema<undefined>;
148
+ readonly burn_block_height: v.NumberSchema<undefined>;
149
+ readonly burn_block_time: v.NumberSchema<undefined>;
150
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
151
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
152
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
153
+ readonly canonical: v.BooleanSchema<undefined>;
154
+ readonly tx_index: v.NumberSchema<undefined>;
155
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
156
+ readonly tx_result: v.ObjectSchema<{
157
+ readonly hex: v.StringSchema<undefined>;
158
+ readonly repr: v.StringSchema<undefined>;
159
+ }, undefined>;
160
+ readonly microblock_hash: v.StringSchema<undefined>;
161
+ readonly microblock_sequence: v.NumberSchema<undefined>;
162
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
163
+ readonly event_count: v.NumberSchema<undefined>;
164
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
165
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
166
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
167
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
168
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
169
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
170
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
171
+ readonly smart_contract: v.ObjectSchema<{
172
+ /**
173
+ * NOTE: The types may be wrong, not sure what type of value is used when
174
+ * the version is not `null`.
175
+ */
176
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
177
+ readonly contract_id: v.StringSchema<undefined>;
178
+ readonly source_code: v.StringSchema<undefined>;
179
+ }, undefined>;
180
+ }, undefined>;
181
+ type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
182
+ declare const tokenTransferSchema: v.ObjectSchema<{
183
+ readonly tx_id: v.StringSchema<undefined>;
184
+ readonly nonce: v.NumberSchema<undefined>;
185
+ readonly fee_rate: v.StringSchema<undefined>;
186
+ readonly sender_address: v.StringSchema<undefined>;
187
+ readonly sponsored: v.BooleanSchema<undefined>;
188
+ readonly post_condition_mode: v.StringSchema<undefined>;
189
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
190
+ readonly anchor_mode: v.StringSchema<undefined>;
191
+ readonly is_unanchored: v.BooleanSchema<undefined>;
192
+ readonly block_hash: v.StringSchema<undefined>;
193
+ readonly parent_block_hash: v.StringSchema<undefined>;
194
+ readonly block_height: v.NumberSchema<undefined>;
195
+ readonly block_time: v.NumberSchema<undefined>;
196
+ readonly block_time_iso: v.StringSchema<undefined>;
197
+ readonly burn_block_height: v.NumberSchema<undefined>;
198
+ readonly burn_block_time: v.NumberSchema<undefined>;
199
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
200
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
201
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
202
+ readonly canonical: v.BooleanSchema<undefined>;
203
+ readonly tx_index: v.NumberSchema<undefined>;
204
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
205
+ readonly tx_result: v.ObjectSchema<{
206
+ readonly hex: v.StringSchema<undefined>;
207
+ readonly repr: v.StringSchema<undefined>;
208
+ }, undefined>;
209
+ readonly microblock_hash: v.StringSchema<undefined>;
210
+ readonly microblock_sequence: v.NumberSchema<undefined>;
211
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
212
+ readonly event_count: v.NumberSchema<undefined>;
213
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
214
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
215
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
216
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
217
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
218
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
219
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
220
+ readonly token_transfer: v.ObjectSchema<{
221
+ readonly recipient_address: v.StringSchema<undefined>;
222
+ readonly amount: v.StringSchema<undefined>;
223
+ readonly memo: v.StringSchema<undefined>;
224
+ }, undefined>;
225
+ }, undefined>;
29
226
  /**
30
227
  * Incomplete schema of some transaction types.
31
228
  */
@@ -51,7 +248,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
51
248
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
52
249
  readonly canonical: v.BooleanSchema<undefined>;
53
250
  readonly tx_index: v.NumberSchema<undefined>;
54
- readonly tx_status: v.StringSchema<undefined>;
251
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
55
252
  readonly tx_result: v.ObjectSchema<{
56
253
  readonly hex: v.StringSchema<undefined>;
57
254
  readonly repr: v.StringSchema<undefined>;
@@ -100,7 +297,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
100
297
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
101
298
  readonly canonical: v.BooleanSchema<undefined>;
102
299
  readonly tx_index: v.NumberSchema<undefined>;
103
- readonly tx_status: v.StringSchema<undefined>;
300
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
104
301
  readonly tx_result: v.ObjectSchema<{
105
302
  readonly hex: v.StringSchema<undefined>;
106
303
  readonly repr: v.StringSchema<undefined>;
@@ -147,7 +344,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
147
344
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
148
345
  readonly canonical: v.BooleanSchema<undefined>;
149
346
  readonly tx_index: v.NumberSchema<undefined>;
150
- readonly tx_status: v.StringSchema<undefined>;
347
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
151
348
  readonly tx_result: v.ObjectSchema<{
152
349
  readonly hex: v.StringSchema<undefined>;
153
350
  readonly repr: v.StringSchema<undefined>;
@@ -171,14 +368,347 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
171
368
  }, undefined>], undefined>;
172
369
  type Transaction = v.InferOutput<typeof transactionSchema>;
173
370
 
174
- type Args$a = {
371
+ type schemas_ContractCallTransaction = ContractCallTransaction;
372
+ type schemas_SmartContractTransaction = SmartContractTransaction;
373
+ type schemas_Transaction = Transaction;
374
+ declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
375
+ declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
376
+ declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
377
+ declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
378
+ declare const schemas_transactionSchema: typeof transactionSchema;
379
+ declare namespace schemas {
380
+ 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 };
381
+ }
382
+
383
+ type Args$f = {
175
384
  transactionId: string;
176
385
  } & ApiRequestOptions;
177
- declare function getTransaction(args: Args$a): Promise<Result<Transaction>>;
386
+ declare function getTransaction(args: Args$f): Promise<Result$1<Transaction>>;
178
387
 
179
- type Args$9 = {
388
+ declare const getTransaction$1_getTransaction: typeof getTransaction;
389
+ declare namespace getTransaction$1 {
390
+ export { getTransaction$1_getTransaction as getTransaction };
391
+ }
392
+
393
+ type Args$e = {
180
394
  address: string;
181
395
  } & ApiRequestOptions & ApiPaginationOptions;
396
+ declare const resultSchema: v.ObjectSchema<{
397
+ readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
398
+ readonly tx_id: v.StringSchema<undefined>;
399
+ readonly nonce: v.NumberSchema<undefined>;
400
+ readonly fee_rate: v.StringSchema<undefined>;
401
+ readonly sender_address: v.StringSchema<undefined>;
402
+ readonly sponsored: v.BooleanSchema<undefined>;
403
+ readonly post_condition_mode: v.StringSchema<undefined>;
404
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
405
+ readonly anchor_mode: v.StringSchema<undefined>;
406
+ readonly is_unanchored: v.BooleanSchema<undefined>;
407
+ readonly block_hash: v.StringSchema<undefined>;
408
+ readonly parent_block_hash: v.StringSchema<undefined>;
409
+ readonly block_height: v.NumberSchema<undefined>;
410
+ readonly block_time: v.NumberSchema<undefined>;
411
+ readonly block_time_iso: v.StringSchema<undefined>;
412
+ readonly burn_block_height: v.NumberSchema<undefined>;
413
+ readonly burn_block_time: v.NumberSchema<undefined>;
414
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
415
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
416
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
417
+ readonly canonical: v.BooleanSchema<undefined>;
418
+ readonly tx_index: v.NumberSchema<undefined>;
419
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
420
+ readonly tx_result: v.ObjectSchema<{
421
+ readonly hex: v.StringSchema<undefined>;
422
+ readonly repr: v.StringSchema<undefined>;
423
+ }, undefined>;
424
+ readonly microblock_hash: v.StringSchema<undefined>;
425
+ readonly microblock_sequence: v.NumberSchema<undefined>;
426
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
427
+ readonly event_count: v.NumberSchema<undefined>;
428
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
429
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
430
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
431
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
432
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
433
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
434
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
435
+ readonly contract_call: v.ObjectSchema<{
436
+ readonly contract_id: v.StringSchema<undefined>;
437
+ readonly function_name: v.StringSchema<undefined>;
438
+ readonly function_signature: v.StringSchema<undefined>;
439
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
440
+ readonly hex: v.StringSchema<undefined>;
441
+ readonly repr: v.StringSchema<undefined>;
442
+ readonly name: v.StringSchema<undefined>;
443
+ readonly type: v.StringSchema<undefined>;
444
+ }, undefined>, undefined>;
445
+ }, undefined>;
446
+ }, undefined>, v.ObjectSchema<{
447
+ readonly tx_id: v.StringSchema<undefined>;
448
+ readonly nonce: v.NumberSchema<undefined>;
449
+ readonly fee_rate: v.StringSchema<undefined>;
450
+ readonly sender_address: v.StringSchema<undefined>;
451
+ readonly sponsored: v.BooleanSchema<undefined>;
452
+ readonly post_condition_mode: v.StringSchema<undefined>;
453
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
454
+ readonly anchor_mode: v.StringSchema<undefined>;
455
+ readonly is_unanchored: v.BooleanSchema<undefined>;
456
+ readonly block_hash: v.StringSchema<undefined>;
457
+ readonly parent_block_hash: v.StringSchema<undefined>;
458
+ readonly block_height: v.NumberSchema<undefined>;
459
+ readonly block_time: v.NumberSchema<undefined>;
460
+ readonly block_time_iso: v.StringSchema<undefined>;
461
+ readonly burn_block_height: v.NumberSchema<undefined>;
462
+ readonly burn_block_time: v.NumberSchema<undefined>;
463
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
464
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
465
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
466
+ readonly canonical: v.BooleanSchema<undefined>;
467
+ readonly tx_index: v.NumberSchema<undefined>;
468
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
469
+ readonly tx_result: v.ObjectSchema<{
470
+ readonly hex: v.StringSchema<undefined>;
471
+ readonly repr: v.StringSchema<undefined>;
472
+ }, undefined>;
473
+ readonly microblock_hash: v.StringSchema<undefined>;
474
+ readonly microblock_sequence: v.NumberSchema<undefined>;
475
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
476
+ readonly event_count: v.NumberSchema<undefined>;
477
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
478
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
479
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
480
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
481
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
482
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
483
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
484
+ readonly smart_contract: v.ObjectSchema<{
485
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
486
+ readonly contract_id: v.StringSchema<undefined>;
487
+ readonly source_code: v.StringSchema<undefined>;
488
+ }, undefined>;
489
+ }, undefined>, v.ObjectSchema<{
490
+ readonly tx_id: v.StringSchema<undefined>;
491
+ readonly nonce: v.NumberSchema<undefined>;
492
+ readonly fee_rate: v.StringSchema<undefined>;
493
+ readonly sender_address: v.StringSchema<undefined>;
494
+ readonly sponsored: v.BooleanSchema<undefined>;
495
+ readonly post_condition_mode: v.StringSchema<undefined>;
496
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
497
+ readonly anchor_mode: v.StringSchema<undefined>;
498
+ readonly is_unanchored: v.BooleanSchema<undefined>;
499
+ readonly block_hash: v.StringSchema<undefined>;
500
+ readonly parent_block_hash: v.StringSchema<undefined>;
501
+ readonly block_height: v.NumberSchema<undefined>;
502
+ readonly block_time: v.NumberSchema<undefined>;
503
+ readonly block_time_iso: v.StringSchema<undefined>;
504
+ readonly burn_block_height: v.NumberSchema<undefined>;
505
+ readonly burn_block_time: v.NumberSchema<undefined>;
506
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
507
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
508
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
509
+ readonly canonical: v.BooleanSchema<undefined>;
510
+ readonly tx_index: v.NumberSchema<undefined>;
511
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
512
+ readonly tx_result: v.ObjectSchema<{
513
+ readonly hex: v.StringSchema<undefined>;
514
+ readonly repr: v.StringSchema<undefined>;
515
+ }, undefined>;
516
+ readonly microblock_hash: v.StringSchema<undefined>;
517
+ readonly microblock_sequence: v.NumberSchema<undefined>;
518
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
519
+ readonly event_count: v.NumberSchema<undefined>;
520
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
521
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
522
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
523
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
524
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
525
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
526
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
527
+ readonly token_transfer: v.ObjectSchema<{
528
+ readonly recipient_address: v.StringSchema<undefined>;
529
+ readonly amount: v.StringSchema<undefined>;
530
+ readonly memo: v.StringSchema<undefined>;
531
+ }, undefined>;
532
+ }, undefined>], undefined>;
533
+ readonly stx_sent: v.StringSchema<undefined>;
534
+ readonly stx_received: v.StringSchema<undefined>;
535
+ readonly events: v.ObjectSchema<{
536
+ readonly stx: v.ObjectSchema<{
537
+ readonly transfer: v.NumberSchema<undefined>;
538
+ readonly mint: v.NumberSchema<undefined>;
539
+ readonly burn: v.NumberSchema<undefined>;
540
+ }, undefined>;
541
+ readonly ft: v.ObjectSchema<{
542
+ readonly transfer: v.NumberSchema<undefined>;
543
+ readonly mint: v.NumberSchema<undefined>;
544
+ readonly burn: v.NumberSchema<undefined>;
545
+ }, undefined>;
546
+ readonly nft: v.ObjectSchema<{
547
+ readonly transfer: v.NumberSchema<undefined>;
548
+ readonly mint: v.NumberSchema<undefined>;
549
+ readonly burn: v.NumberSchema<undefined>;
550
+ }, undefined>;
551
+ }, undefined>;
552
+ }, undefined>;
553
+ type Result = v.InferOutput<typeof resultSchema>;
554
+ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
555
+ readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
556
+ readonly tx_id: v.StringSchema<undefined>;
557
+ readonly nonce: v.NumberSchema<undefined>;
558
+ readonly fee_rate: v.StringSchema<undefined>;
559
+ readonly sender_address: v.StringSchema<undefined>;
560
+ readonly sponsored: v.BooleanSchema<undefined>;
561
+ readonly post_condition_mode: v.StringSchema<undefined>;
562
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
563
+ readonly anchor_mode: v.StringSchema<undefined>;
564
+ readonly is_unanchored: v.BooleanSchema<undefined>;
565
+ readonly block_hash: v.StringSchema<undefined>;
566
+ readonly parent_block_hash: v.StringSchema<undefined>;
567
+ readonly block_height: v.NumberSchema<undefined>;
568
+ readonly block_time: v.NumberSchema<undefined>;
569
+ readonly block_time_iso: v.StringSchema<undefined>;
570
+ readonly burn_block_height: v.NumberSchema<undefined>;
571
+ readonly burn_block_time: v.NumberSchema<undefined>;
572
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
573
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
574
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
575
+ readonly canonical: v.BooleanSchema<undefined>;
576
+ readonly tx_index: v.NumberSchema<undefined>;
577
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
578
+ readonly tx_result: v.ObjectSchema<{
579
+ readonly hex: v.StringSchema<undefined>;
580
+ readonly repr: v.StringSchema<undefined>;
581
+ }, undefined>;
582
+ readonly microblock_hash: v.StringSchema<undefined>;
583
+ readonly microblock_sequence: v.NumberSchema<undefined>;
584
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
585
+ readonly event_count: v.NumberSchema<undefined>;
586
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
587
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
588
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
589
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
590
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
591
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
592
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
593
+ readonly contract_call: v.ObjectSchema<{
594
+ readonly contract_id: v.StringSchema<undefined>;
595
+ readonly function_name: v.StringSchema<undefined>;
596
+ readonly function_signature: v.StringSchema<undefined>;
597
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
598
+ readonly hex: v.StringSchema<undefined>;
599
+ readonly repr: v.StringSchema<undefined>;
600
+ readonly name: v.StringSchema<undefined>;
601
+ readonly type: v.StringSchema<undefined>;
602
+ }, undefined>, undefined>;
603
+ }, undefined>;
604
+ }, undefined>, v.ObjectSchema<{
605
+ readonly tx_id: v.StringSchema<undefined>;
606
+ readonly nonce: v.NumberSchema<undefined>;
607
+ readonly fee_rate: v.StringSchema<undefined>;
608
+ readonly sender_address: v.StringSchema<undefined>;
609
+ readonly sponsored: v.BooleanSchema<undefined>;
610
+ readonly post_condition_mode: v.StringSchema<undefined>;
611
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
612
+ readonly anchor_mode: v.StringSchema<undefined>;
613
+ readonly is_unanchored: v.BooleanSchema<undefined>;
614
+ readonly block_hash: v.StringSchema<undefined>;
615
+ readonly parent_block_hash: v.StringSchema<undefined>;
616
+ readonly block_height: v.NumberSchema<undefined>;
617
+ readonly block_time: v.NumberSchema<undefined>;
618
+ readonly block_time_iso: v.StringSchema<undefined>;
619
+ readonly burn_block_height: v.NumberSchema<undefined>;
620
+ readonly burn_block_time: v.NumberSchema<undefined>;
621
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
622
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
623
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
624
+ readonly canonical: v.BooleanSchema<undefined>;
625
+ readonly tx_index: v.NumberSchema<undefined>;
626
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
627
+ readonly tx_result: v.ObjectSchema<{
628
+ readonly hex: v.StringSchema<undefined>;
629
+ readonly repr: v.StringSchema<undefined>;
630
+ }, undefined>;
631
+ readonly microblock_hash: v.StringSchema<undefined>;
632
+ readonly microblock_sequence: v.NumberSchema<undefined>;
633
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
634
+ readonly event_count: v.NumberSchema<undefined>;
635
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
636
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
637
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
638
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
639
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
640
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
641
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
642
+ readonly smart_contract: v.ObjectSchema<{
643
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
644
+ readonly contract_id: v.StringSchema<undefined>;
645
+ readonly source_code: v.StringSchema<undefined>;
646
+ }, undefined>;
647
+ }, undefined>, v.ObjectSchema<{
648
+ readonly tx_id: v.StringSchema<undefined>;
649
+ readonly nonce: v.NumberSchema<undefined>;
650
+ readonly fee_rate: v.StringSchema<undefined>;
651
+ readonly sender_address: v.StringSchema<undefined>;
652
+ readonly sponsored: v.BooleanSchema<undefined>;
653
+ readonly post_condition_mode: v.StringSchema<undefined>;
654
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
655
+ readonly anchor_mode: v.StringSchema<undefined>;
656
+ readonly is_unanchored: v.BooleanSchema<undefined>;
657
+ readonly block_hash: v.StringSchema<undefined>;
658
+ readonly parent_block_hash: v.StringSchema<undefined>;
659
+ readonly block_height: v.NumberSchema<undefined>;
660
+ readonly block_time: v.NumberSchema<undefined>;
661
+ readonly block_time_iso: v.StringSchema<undefined>;
662
+ readonly burn_block_height: v.NumberSchema<undefined>;
663
+ readonly burn_block_time: v.NumberSchema<undefined>;
664
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
665
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
666
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
667
+ readonly canonical: v.BooleanSchema<undefined>;
668
+ readonly tx_index: v.NumberSchema<undefined>;
669
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
670
+ readonly tx_result: v.ObjectSchema<{
671
+ readonly hex: v.StringSchema<undefined>;
672
+ readonly repr: v.StringSchema<undefined>;
673
+ }, undefined>;
674
+ readonly microblock_hash: v.StringSchema<undefined>;
675
+ readonly microblock_sequence: v.NumberSchema<undefined>;
676
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
677
+ readonly event_count: v.NumberSchema<undefined>;
678
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
679
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
680
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
681
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
682
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
683
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
684
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
685
+ readonly token_transfer: v.ObjectSchema<{
686
+ readonly recipient_address: v.StringSchema<undefined>;
687
+ readonly amount: v.StringSchema<undefined>;
688
+ readonly memo: v.StringSchema<undefined>;
689
+ }, undefined>;
690
+ }, undefined>], undefined>;
691
+ readonly stx_sent: v.StringSchema<undefined>;
692
+ readonly stx_received: v.StringSchema<undefined>;
693
+ readonly events: v.ObjectSchema<{
694
+ readonly stx: v.ObjectSchema<{
695
+ readonly transfer: v.NumberSchema<undefined>;
696
+ readonly mint: v.NumberSchema<undefined>;
697
+ readonly burn: v.NumberSchema<undefined>;
698
+ }, undefined>;
699
+ readonly ft: v.ObjectSchema<{
700
+ readonly transfer: v.NumberSchema<undefined>;
701
+ readonly mint: v.NumberSchema<undefined>;
702
+ readonly burn: v.NumberSchema<undefined>;
703
+ }, undefined>;
704
+ readonly nft: v.ObjectSchema<{
705
+ readonly transfer: v.NumberSchema<undefined>;
706
+ readonly mint: v.NumberSchema<undefined>;
707
+ readonly burn: v.NumberSchema<undefined>;
708
+ }, undefined>;
709
+ }, undefined>;
710
+ }, undefined>, undefined>;
711
+ type Results$3 = v.InferOutput<typeof resultsSchema$3>;
182
712
  declare const addressTransactionsResponseSchema: v.ObjectSchema<{
183
713
  readonly results: v.ArraySchema<v.ObjectSchema<{
184
714
  readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
@@ -203,7 +733,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
203
733
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
204
734
  readonly canonical: v.BooleanSchema<undefined>;
205
735
  readonly tx_index: v.NumberSchema<undefined>;
206
- readonly tx_status: v.StringSchema<undefined>;
736
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
207
737
  readonly tx_result: v.ObjectSchema<{
208
738
  readonly hex: v.StringSchema<undefined>;
209
739
  readonly repr: v.StringSchema<undefined>;
@@ -252,7 +782,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
252
782
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
253
783
  readonly canonical: v.BooleanSchema<undefined>;
254
784
  readonly tx_index: v.NumberSchema<undefined>;
255
- readonly tx_status: v.StringSchema<undefined>;
785
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
256
786
  readonly tx_result: v.ObjectSchema<{
257
787
  readonly hex: v.StringSchema<undefined>;
258
788
  readonly repr: v.StringSchema<undefined>;
@@ -295,7 +825,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
295
825
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
296
826
  readonly canonical: v.BooleanSchema<undefined>;
297
827
  readonly tx_index: v.NumberSchema<undefined>;
298
- readonly tx_status: v.StringSchema<undefined>;
828
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
299
829
  readonly tx_result: v.ObjectSchema<{
300
830
  readonly hex: v.StringSchema<undefined>;
301
831
  readonly repr: v.StringSchema<undefined>;
@@ -342,15 +872,31 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
342
872
  readonly total: v.NumberSchema<undefined>;
343
873
  }, undefined>;
344
874
  type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
345
- declare function addressTransactions(args: Args$9): Promise<Result<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
875
+ declare function addressTransactions(args: Args$e): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
876
+
877
+ type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
878
+ type addressTransactions$1_Result = Result;
879
+ declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
880
+ declare namespace addressTransactions$1 {
881
+ export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
882
+ }
346
883
 
347
- type Options$1 = {
884
+ type Args$d = {
348
885
  poolPrincipal: string;
349
886
  afterBlock?: number;
350
887
  unanchored?: boolean;
351
888
  limit?: number;
352
889
  offset?: number;
353
- };
890
+ } & ApiRequestOptions & ApiPaginationOptions;
891
+ declare const memberSchema: v.ObjectSchema<{
892
+ readonly stacker: v.StringSchema<undefined>;
893
+ readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
894
+ readonly amount_ustx: v.StringSchema<undefined>;
895
+ readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
896
+ readonly block_height: v.NumberSchema<undefined>;
897
+ readonly tx_id: v.StringSchema<undefined>;
898
+ }, undefined>;
899
+ type Member = v.InferOutput<typeof memberSchema>;
354
900
  declare const membersResponseSchema: v.ObjectSchema<{
355
901
  readonly limit: v.NumberSchema<undefined>;
356
902
  readonly offset: v.NumberSchema<undefined>;
@@ -365,29 +911,62 @@ declare const membersResponseSchema: v.ObjectSchema<{
365
911
  }, undefined>, undefined>;
366
912
  }, undefined>;
367
913
  type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
368
- declare function members(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result<MembersResponse>>;
914
+ declare function members(args: Args$d): Promise<Result$1<MembersResponse>>;
369
915
 
370
- type Options = {
916
+ type members$1_Member = Member;
917
+ type members$1_MembersResponse = MembersResponse;
918
+ declare const members$1_memberSchema: typeof memberSchema;
919
+ declare const members$1_members: typeof members;
920
+ declare const members$1_membersResponseSchema: typeof membersResponseSchema;
921
+ declare namespace members$1 {
922
+ export { type Args$d as Args, type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
923
+ }
924
+
925
+ type Args$c = {
371
926
  sender: string;
372
927
  arguments: string[];
373
928
  contractAddress: string;
374
929
  contractName: string;
375
930
  functionName: string;
376
- };
931
+ } & ApiRequestOptions;
377
932
  declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
378
933
  readonly okay: v.LiteralSchema<true, undefined>;
934
+ /**
935
+ * A Clarity value as a hex-encoded string.
936
+ */
379
937
  readonly result: v.StringSchema<undefined>;
380
938
  }, undefined>, v.ObjectSchema<{
381
939
  readonly okay: v.LiteralSchema<false, undefined>;
382
940
  readonly cause: v.UnknownSchema;
383
941
  }, undefined>], undefined>;
384
942
  type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
385
- declare function readOnly(opts: Options, apiOpts: ApiRequestOptions): Promise<Result<ReadOnlyResponse>>;
943
+ declare function readOnly(args: Args$c): Promise<Result$1<ReadOnlyResponse>>;
944
+
945
+ type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
946
+ declare const readOnly$1_readOnly: typeof readOnly;
947
+ declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
948
+ declare namespace readOnly$1 {
949
+ export { type Args$c as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
950
+ }
386
951
 
387
- type Args$8 = {
952
+ type Args$b = {
388
953
  cycleNumber: number;
389
954
  signerPublicKey: string;
390
955
  } & ApiRequestOptions & ApiPaginationOptions;
956
+ declare const stackerInfoSchema: 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>;
962
+ type StackerInfo = v.InferOutput<typeof stackerInfoSchema>;
963
+ declare const resultsSchema$2: v.ArraySchema<v.ObjectSchema<{
964
+ readonly stacker_address: v.StringSchema<undefined>;
965
+ readonly stacked_amount: v.StringSchema<undefined>;
966
+ readonly pox_address: v.StringSchema<undefined>;
967
+ readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
968
+ }, undefined>, undefined>;
969
+ type Results$2 = v.InferOutput<typeof resultsSchema$2>;
391
970
  declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
392
971
  readonly results: v.ArraySchema<v.ObjectSchema<{
393
972
  readonly stacker_address: v.StringSchema<undefined>;
@@ -400,11 +979,42 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
400
979
  readonly total: v.NumberSchema<undefined>;
401
980
  }, undefined>;
402
981
  type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
403
- declare function stackersForSignerInCycle(opts: Args$8): Promise<Result<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
982
+ declare function stackersForSignerInCycle(opts: Args$b): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
404
983
 
405
- type Args$7 = {
984
+ type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
985
+ type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
986
+ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
987
+ declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
988
+ declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
989
+ declare namespace stackersForSignerInCycle$1 {
990
+ export { type Args$b 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 };
991
+ }
992
+
993
+ type Args$a = {
406
994
  cycleNumber: number;
407
995
  } & ApiRequestOptions & ApiPaginationOptions;
996
+ declare const signerSchema: v.ObjectSchema<{
997
+ readonly signing_key: v.StringSchema<undefined>;
998
+ readonly signer_address: v.StringSchema<undefined>;
999
+ readonly weight: v.NumberSchema<undefined>;
1000
+ readonly stacked_amount: v.StringSchema<undefined>;
1001
+ readonly weight_percent: v.NumberSchema<undefined>;
1002
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
1003
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
1004
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
1005
+ }, undefined>;
1006
+ type Signer = v.InferOutput<typeof signerSchema>;
1007
+ declare const resultsSchema$1: v.ArraySchema<v.ObjectSchema<{
1008
+ readonly signing_key: v.StringSchema<undefined>;
1009
+ readonly signer_address: v.StringSchema<undefined>;
1010
+ readonly weight: v.NumberSchema<undefined>;
1011
+ readonly stacked_amount: v.StringSchema<undefined>;
1012
+ readonly weight_percent: v.NumberSchema<undefined>;
1013
+ readonly stacked_amount_percent: v.NumberSchema<undefined>;
1014
+ readonly pooled_stacker_count: v.NumberSchema<undefined>;
1015
+ readonly solo_stacker_count: v.NumberSchema<undefined>;
1016
+ }, undefined>, undefined>;
1017
+ type Results$1 = v.InferOutput<typeof resultsSchema$1>;
408
1018
  declare const signersResponseSchema: v.ObjectSchema<{
409
1019
  readonly results: v.ArraySchema<v.ObjectSchema<{
410
1020
  readonly signing_key: v.StringSchema<undefined>;
@@ -421,9 +1031,18 @@ declare const signersResponseSchema: v.ObjectSchema<{
421
1031
  readonly total: v.NumberSchema<undefined>;
422
1032
  }, undefined>;
423
1033
  type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
424
- declare function signersInCycle(args: Args$7): Promise<Result<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1034
+ declare function signersInCycle(args: Args$a): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1035
+
1036
+ type signersInCycle$1_Signer = Signer;
1037
+ type signersInCycle$1_SignersResponse = SignersResponse;
1038
+ declare const signersInCycle$1_signerSchema: typeof signerSchema;
1039
+ declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
1040
+ declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
1041
+ declare namespace signersInCycle$1 {
1042
+ export { type Args$a 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 };
1043
+ }
425
1044
 
426
- type Args$6 = {
1045
+ type Args$9 = {
427
1046
  /**
428
1047
  * The signers public key as a hex string, with or without a '0x' prefix.
429
1048
  */
@@ -441,9 +1060,34 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
441
1060
  readonly pooled_stacker_count: v.NumberSchema<undefined>;
442
1061
  }, undefined>;
443
1062
  type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
444
- declare function signerInCycle(args: Args$6): Promise<Result<SignerInCycleResponse>>;
1063
+ declare function signerInCycle(args: Args$9): Promise<Result$1<SignerInCycleResponse>>;
1064
+
1065
+ type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
1066
+ declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
1067
+ declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
1068
+ declare namespace signerInCycle$1 {
1069
+ export { type Args$9 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
1070
+ }
445
1071
 
446
- type Args$5 = ApiRequestOptions & ApiPaginationOptions;
1072
+ type Args$8 = ApiRequestOptions & ApiPaginationOptions;
1073
+ declare const cycleInfoSchema: v.ObjectSchema<{
1074
+ readonly block_height: v.NumberSchema<undefined>;
1075
+ readonly index_block_hash: v.StringSchema<undefined>;
1076
+ readonly cycle_number: v.NumberSchema<undefined>;
1077
+ readonly total_weight: v.NumberSchema<undefined>;
1078
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1079
+ readonly total_signers: v.NumberSchema<undefined>;
1080
+ }, undefined>;
1081
+ type CycleInfo = v.InferOutput<typeof cycleInfoSchema>;
1082
+ declare const resultsSchema: v.ArraySchema<v.ObjectSchema<{
1083
+ readonly block_height: v.NumberSchema<undefined>;
1084
+ readonly index_block_hash: v.StringSchema<undefined>;
1085
+ readonly cycle_number: v.NumberSchema<undefined>;
1086
+ readonly total_weight: v.NumberSchema<undefined>;
1087
+ readonly total_stacked_amount: v.StringSchema<undefined>;
1088
+ readonly total_signers: v.NumberSchema<undefined>;
1089
+ }, undefined>, undefined>;
1090
+ type Results = v.InferOutput<typeof resultsSchema>;
447
1091
  declare const cyclesResponseSchema: v.ObjectSchema<{
448
1092
  readonly results: v.ArraySchema<v.ObjectSchema<{
449
1093
  readonly block_height: v.NumberSchema<undefined>;
@@ -458,12 +1102,23 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
458
1102
  readonly total: v.NumberSchema<undefined>;
459
1103
  }, undefined>;
460
1104
  type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
461
- declare function cycles(args: Args$5): Promise<Result<CyclesResponse>>;
1105
+ declare function cycles(args: Args$8): Promise<Result$1<CyclesResponse>>;
462
1106
 
463
- type Args$4 = {
1107
+ type cycles$1_CycleInfo = CycleInfo;
1108
+ type cycles$1_CyclesResponse = CyclesResponse;
1109
+ type cycles$1_Results = Results;
1110
+ declare const cycles$1_cycleInfoSchema: typeof cycleInfoSchema;
1111
+ declare const cycles$1_cycles: typeof cycles;
1112
+ declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
1113
+ declare const cycles$1_resultsSchema: typeof resultsSchema;
1114
+ declare namespace cycles$1 {
1115
+ export { type Args$8 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 };
1116
+ }
1117
+
1118
+ type Args$7 = {
464
1119
  cycleNumber: number;
465
1120
  } & ApiRequestOptions;
466
- declare const responseSchema$2: v.ObjectSchema<{
1121
+ declare const responseSchema$3: v.ObjectSchema<{
467
1122
  readonly block_height: v.NumberSchema<undefined>;
468
1123
  readonly index_block_hash: v.StringSchema<undefined>;
469
1124
  readonly cycle_number: v.NumberSchema<undefined>;
@@ -471,10 +1126,15 @@ declare const responseSchema$2: v.ObjectSchema<{
471
1126
  readonly total_stacked_amount: v.StringSchema<undefined>;
472
1127
  readonly total_signers: v.NumberSchema<undefined>;
473
1128
  }, undefined>;
474
- type Response$2 = v.InferOutput<typeof responseSchema$2>;
475
- declare function cycle(opts: Args$4): Promise<Result<Response$2, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
1129
+ type Response$3 = v.InferOutput<typeof responseSchema$3>;
1130
+ declare function cycle(opts: Args$7): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
1131
+
1132
+ declare const cycle$1_cycle: typeof cycle;
1133
+ declare namespace cycle$1 {
1134
+ export { type Args$7 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
1135
+ }
476
1136
 
477
- type Args$3 = ApiRequestOptions;
1137
+ type Args$6 = ApiRequestOptions;
478
1138
  declare const poxDetailsResponseSchema: v.ObjectSchema<{
479
1139
  readonly contract_id: v.StringSchema<undefined>;
480
1140
  readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
@@ -528,7 +1188,12 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
528
1188
  }, undefined>, undefined>;
529
1189
  }, undefined>;
530
1190
  type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
531
- declare function poxDetails(args: Args$3): Promise<Result<PoxDetailsResponse>>;
1191
+ declare function poxDetails(args: Args$6): Promise<Result$1<PoxDetailsResponse>>;
1192
+
1193
+ declare const poxDetails$1_poxDetails: typeof poxDetails;
1194
+ declare namespace poxDetails$1 {
1195
+ export { poxDetails$1_poxDetails as poxDetails };
1196
+ }
532
1197
 
533
1198
  declare const CoreApiResponseSchema: v.ObjectSchema<{
534
1199
  readonly peer_version: v.NumberSchema<undefined>;
@@ -542,16 +1207,34 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
542
1207
  readonly stacks_tip_height: v.NumberSchema<undefined>;
543
1208
  readonly stacks_tip: v.StringSchema<undefined>;
544
1209
  readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
545
- readonly unanchored_tip: v.StringSchema<undefined>;
546
- readonly exit_at_block_height: v.NumberSchema<undefined>;
1210
+ readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, never>;
1211
+ readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, never>;
1212
+ readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, never>;
547
1213
  }, undefined>;
548
1214
  type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
549
- declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result<CoreApiResponse>>;
1215
+ declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
550
1216
 
551
- type Args$2 = {
1217
+ type coreApi$1_CoreApiResponse = CoreApiResponse;
1218
+ declare const coreApi$1_coreApi: typeof coreApi;
1219
+ declare namespace coreApi$1 {
1220
+ export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
1221
+ }
1222
+
1223
+ type Args$5 = {
1224
+ address: string;
1225
+ stacking?: boolean;
1226
+ } & ApiRequestOptions;
1227
+ declare function stx(opts: Args$5): Promise<Result$1<any>>;
1228
+
1229
+ declare const stx$1_stx: typeof stx;
1230
+ declare namespace stx$1 {
1231
+ export { type Args$5 as Args, stx$1_stx as stx };
1232
+ }
1233
+
1234
+ type Args$4 = {
552
1235
  heightOrHash: string | number;
553
1236
  } & ApiRequestOptions;
554
- declare const responseSchema$1: v.ObjectSchema<{
1237
+ declare const responseSchema$2: v.ObjectSchema<{
555
1238
  readonly canonical: v.BooleanSchema<undefined>;
556
1239
  readonly height: v.NumberSchema<undefined>;
557
1240
  readonly hash: v.StringSchema<undefined>;
@@ -572,10 +1255,33 @@ declare const responseSchema$1: v.ObjectSchema<{
572
1255
  readonly execution_cost_write_count: v.NumberSchema<undefined>;
573
1256
  readonly execution_cost_write_length: v.NumberSchema<undefined>;
574
1257
  }, undefined>;
1258
+ type Response$2 = v.InferOutput<typeof responseSchema$2>;
1259
+ declare function getBlock(opts: Args$4): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
1260
+
1261
+ declare const getBlock$1_getBlock: typeof getBlock;
1262
+ declare namespace getBlock$1 {
1263
+ export { type Args$4 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
1264
+ }
1265
+
1266
+ type Args$3 = {
1267
+ principal: string;
1268
+ } & ApiRequestOptions;
1269
+ declare const responseSchema$1: v.ObjectSchema<{
1270
+ readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1271
+ readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1272
+ readonly possible_next_nonce: v.NumberSchema<undefined>;
1273
+ readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1274
+ readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1275
+ }, undefined>;
575
1276
  type Response$1 = v.InferOutput<typeof responseSchema$1>;
576
- declare function getBlock(opts: Args$2): Promise<Result<Response$1, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
1277
+ declare function latestNonce(opts: Args$3): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
577
1278
 
578
- type Args$1 = {
1279
+ declare const latestNonce$1_latestNonce: typeof latestNonce;
1280
+ declare namespace latestNonce$1 {
1281
+ export { type Args$3 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
1282
+ }
1283
+
1284
+ type Args$2 = {
579
1285
  principal: string;
580
1286
  unanchored?: boolean;
581
1287
  untilBlock?: number;
@@ -605,15 +1311,104 @@ declare const responseSchema: v.ObjectSchema<{
605
1311
  }, undefined>, undefined>;
606
1312
  }, undefined>;
607
1313
  type Response = v.InferOutput<typeof responseSchema>;
608
- declare function balances(opts: Args$1): Promise<Result<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
1314
+ declare function balances(opts: Args$2): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
1315
+
1316
+ type balances$1_Response = Response;
1317
+ declare const balances$1_balances: typeof balances;
1318
+ declare const balances$1_responseSchema: typeof responseSchema;
1319
+ declare namespace balances$1 {
1320
+ export { type Args$2 as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
1321
+ }
1322
+
1323
+ declare const accounts: {
1324
+ balances: typeof balances;
1325
+ latestNonce: typeof latestNonce;
1326
+ };
1327
+
1328
+ declare const index$a_accounts: typeof accounts;
1329
+ declare namespace index$a {
1330
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$a_accounts as accounts };
1331
+ }
1332
+
1333
+ declare const blocks: {
1334
+ getBlock: typeof getBlock;
1335
+ };
1336
+
1337
+ declare const index$9_blocks: typeof blocks;
1338
+ declare namespace index$9 {
1339
+ export { getBlock$1 as GetBlock, index$9_blocks as blocks };
1340
+ }
1341
+
1342
+ declare const faucets: {
1343
+ stx: typeof stx;
1344
+ };
1345
+
1346
+ declare const index$8_faucets: typeof faucets;
1347
+ declare namespace index$8 {
1348
+ export { stx$1 as Stx, index$8_faucets as faucets };
1349
+ }
1350
+
1351
+ declare const info: {
1352
+ coreApi: typeof coreApi;
1353
+ poxDetails: typeof poxDetails;
1354
+ };
1355
+
1356
+ declare const index$7_info: typeof info;
1357
+ declare namespace index$7 {
1358
+ export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$7_info as info };
1359
+ }
1360
+
1361
+ declare const proofOfTransfer: {
1362
+ cycle: typeof cycle;
1363
+ cycles: typeof cycles;
1364
+ signerInCycle: typeof signerInCycle;
1365
+ signersInCycle: typeof signersInCycle;
1366
+ stackersForSignerInCycle: typeof stackersForSignerInCycle;
1367
+ };
1368
+
1369
+ declare const index$6_proofOfTransfer: typeof proofOfTransfer;
1370
+ declare namespace index$6 {
1371
+ export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$6_proofOfTransfer as proofOfTransfer };
1372
+ }
1373
+
1374
+ declare const smartContracts$1: {
1375
+ readOnly: typeof readOnly;
1376
+ };
1377
+
1378
+ declare namespace index$5 {
1379
+ export { readOnly$1 as ReadOnly, smartContracts$1 as smartContracts };
1380
+ }
1381
+
1382
+ declare const stackingPool: {
1383
+ members: typeof members;
1384
+ };
1385
+
1386
+ declare const index$4_stackingPool: typeof stackingPool;
1387
+ declare namespace index$4 {
1388
+ export { members$1 as Members, index$4_stackingPool as stackingPool };
1389
+ }
1390
+
1391
+ declare const transactions: {
1392
+ addressTransactions: typeof addressTransactions;
1393
+ getTransaction: typeof getTransaction;
1394
+ };
1395
+
1396
+ declare const index$3_transactions: typeof transactions;
1397
+ declare namespace index$3 {
1398
+ export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$3_transactions as transactions };
1399
+ }
609
1400
 
610
1401
  declare const stacksApi: {
611
1402
  accounts: {
612
1403
  balances: typeof balances;
1404
+ latestNonce: typeof latestNonce;
613
1405
  };
614
1406
  blocks: {
615
1407
  getBlock: typeof getBlock;
616
1408
  };
1409
+ faucets: {
1410
+ stx: typeof stx;
1411
+ };
617
1412
  info: {
618
1413
  coreApi: typeof coreApi;
619
1414
  poxDetails: typeof poxDetails;
@@ -637,6 +1432,56 @@ declare const stacksApi: {
637
1432
  };
638
1433
  };
639
1434
 
1435
+ declare const index$2_stacksApi: typeof stacksApi;
1436
+ declare namespace index$2 {
1437
+ export { index$a as Accounts, index$9 as Blocks, index$8 as Faucets, index$7 as Info, index$6 as ProofOfTransfer, index$5 as SmartContracts, index$4 as StackingPool, index$3 as Transactions, index$2_stacksApi as stacksApi };
1438
+ }
1439
+
1440
+ type Args$1 = {
1441
+ contractAddress: string;
1442
+ contractName: string;
1443
+ mapName: string;
1444
+ mapKey: string;
1445
+ } & ApiRequestOptions & ProofAndTip;
1446
+ declare const mapEntryResponseSchema: v.ObjectSchema<{
1447
+ /**
1448
+ * Hex-encoded string of clarity value. It is always an optional tuple.
1449
+ */
1450
+ readonly data: v.StringSchema<undefined>;
1451
+ /**
1452
+ * Hex-encoded string of the MARF proof for the data
1453
+ */
1454
+ readonly proof: v.OptionalSchema<v.StringSchema<undefined>, never>;
1455
+ }, undefined>;
1456
+ type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
1457
+ declare function mapEntry(args: Args$1): Promise<Result$1<MapEntryResponse>>;
1458
+
1459
+ type mapEntry$1_MapEntryResponse = MapEntryResponse;
1460
+ declare const mapEntry$1_mapEntry: typeof mapEntry;
1461
+ declare namespace mapEntry$1 {
1462
+ export { type Args$1 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
1463
+ }
1464
+
1465
+ declare const smartContracts: {
1466
+ mapEntry: typeof mapEntry;
1467
+ };
1468
+
1469
+ declare const index$1_smartContracts: typeof smartContracts;
1470
+ declare namespace index$1 {
1471
+ export { mapEntry$1 as MapEntry, index$1_smartContracts as smartContracts };
1472
+ }
1473
+
1474
+ declare const stacksRpcApi: {
1475
+ smartContracts: {
1476
+ mapEntry: typeof mapEntry;
1477
+ };
1478
+ };
1479
+
1480
+ declare const index_stacksRpcApi: typeof stacksRpcApi;
1481
+ declare namespace index {
1482
+ export { index$1 as SmartContracts, index_stacksRpcApi as stacksRpcApi };
1483
+ }
1484
+
640
1485
  type Identifier = {
641
1486
  type: "address";
642
1487
  signerAddress: string;
@@ -652,10 +1497,17 @@ type Args = {
652
1497
  /**
653
1498
  * Return the total locked amount for a signer in a PoX cycle.
654
1499
  */
655
- declare function getSignerStackedAmount(args: Args): Promise<Result<bigint, SafeError<"SignerNotFound" | string>>>;
1500
+ declare function getSignerStackedAmount(args: Args): Promise<Result$1<bigint, SafeError<"SignerNotFound" | string>>>;
656
1501
 
657
1502
  declare const queries: {
658
1503
  getSignerStackedAmount: typeof getSignerStackedAmount;
659
1504
  };
660
1505
 
661
- export { queries, stacksApi };
1506
+ type Options = {
1507
+ startingDelay?: number;
1508
+ numOfAttempts?: number;
1509
+ };
1510
+ declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
1511
+ declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
1512
+
1513
+ export { type Result$1 as Result, type SafeError, index$2 as StacksApi, index as StacksRpcApi, callRateLimitedApi, error, queries, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, stacksRpcApi, success };