@secretkeylabs/stacks-tools 0.4.0-afcaa14 → 0.4.0-da5eb9d

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
@@ -13,12 +13,23 @@ declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<
13
13
 
14
14
  type ApiKeyConfig = {
15
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
+ */
16
20
  header: string;
17
21
  };
18
22
  type ApiRequestOptions = {
19
23
  baseUrl: string;
20
24
  apiKeyConfig?: ApiKeyConfig;
21
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
+ };
22
33
  type ApiPaginationOptions = {
23
34
  /**
24
35
  * The number of items to return. Each endpoint has its own maximum allowed
@@ -30,6 +41,188 @@ type ApiPaginationOptions = {
30
41
  offset?: number;
31
42
  };
32
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>;
33
226
  /**
34
227
  * Incomplete schema of some transaction types.
35
228
  */
@@ -55,7 +248,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
55
248
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
56
249
  readonly canonical: v.BooleanSchema<undefined>;
57
250
  readonly tx_index: v.NumberSchema<undefined>;
58
- 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>;
59
252
  readonly tx_result: v.ObjectSchema<{
60
253
  readonly hex: v.StringSchema<undefined>;
61
254
  readonly repr: v.StringSchema<undefined>;
@@ -104,7 +297,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
104
297
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
105
298
  readonly canonical: v.BooleanSchema<undefined>;
106
299
  readonly tx_index: v.NumberSchema<undefined>;
107
- 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>;
108
301
  readonly tx_result: v.ObjectSchema<{
109
302
  readonly hex: v.StringSchema<undefined>;
110
303
  readonly repr: v.StringSchema<undefined>;
@@ -151,7 +344,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
151
344
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
152
345
  readonly canonical: v.BooleanSchema<undefined>;
153
346
  readonly tx_index: v.NumberSchema<undefined>;
154
- 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>;
155
348
  readonly tx_result: v.ObjectSchema<{
156
349
  readonly hex: v.StringSchema<undefined>;
157
350
  readonly repr: v.StringSchema<undefined>;
@@ -175,17 +368,29 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
175
368
  }, undefined>], undefined>;
176
369
  type Transaction = v.InferOutput<typeof transactionSchema>;
177
370
 
178
- type Args$9 = {
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 = {
179
384
  transactionId: string;
180
385
  } & ApiRequestOptions;
181
- declare function getTransaction(args: Args$9): Promise<Result$1<Transaction>>;
386
+ declare function getTransaction(args: Args$f): Promise<Result$1<Transaction>>;
182
387
 
183
388
  declare const getTransaction$1_getTransaction: typeof getTransaction;
184
389
  declare namespace getTransaction$1 {
185
390
  export { getTransaction$1_getTransaction as getTransaction };
186
391
  }
187
392
 
188
- type Args$8 = {
393
+ type Args$e = {
189
394
  address: string;
190
395
  } & ApiRequestOptions & ApiPaginationOptions;
191
396
  declare const resultSchema: v.ObjectSchema<{
@@ -211,7 +416,7 @@ declare const resultSchema: v.ObjectSchema<{
211
416
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
212
417
  readonly canonical: v.BooleanSchema<undefined>;
213
418
  readonly tx_index: v.NumberSchema<undefined>;
214
- readonly tx_status: v.StringSchema<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>;
215
420
  readonly tx_result: v.ObjectSchema<{
216
421
  readonly hex: v.StringSchema<undefined>;
217
422
  readonly repr: v.StringSchema<undefined>;
@@ -260,7 +465,7 @@ declare const resultSchema: v.ObjectSchema<{
260
465
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
261
466
  readonly canonical: v.BooleanSchema<undefined>;
262
467
  readonly tx_index: v.NumberSchema<undefined>;
263
- readonly tx_status: v.StringSchema<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>;
264
469
  readonly tx_result: v.ObjectSchema<{
265
470
  readonly hex: v.StringSchema<undefined>;
266
471
  readonly repr: v.StringSchema<undefined>;
@@ -303,7 +508,7 @@ declare const resultSchema: v.ObjectSchema<{
303
508
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
304
509
  readonly canonical: v.BooleanSchema<undefined>;
305
510
  readonly tx_index: v.NumberSchema<undefined>;
306
- readonly tx_status: v.StringSchema<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>;
307
512
  readonly tx_result: v.ObjectSchema<{
308
513
  readonly hex: v.StringSchema<undefined>;
309
514
  readonly repr: v.StringSchema<undefined>;
@@ -369,7 +574,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
369
574
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
370
575
  readonly canonical: v.BooleanSchema<undefined>;
371
576
  readonly tx_index: v.NumberSchema<undefined>;
372
- readonly tx_status: v.StringSchema<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>;
373
578
  readonly tx_result: v.ObjectSchema<{
374
579
  readonly hex: v.StringSchema<undefined>;
375
580
  readonly repr: v.StringSchema<undefined>;
@@ -418,7 +623,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
418
623
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
419
624
  readonly canonical: v.BooleanSchema<undefined>;
420
625
  readonly tx_index: v.NumberSchema<undefined>;
421
- readonly tx_status: v.StringSchema<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>;
422
627
  readonly tx_result: v.ObjectSchema<{
423
628
  readonly hex: v.StringSchema<undefined>;
424
629
  readonly repr: v.StringSchema<undefined>;
@@ -461,7 +666,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
461
666
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
462
667
  readonly canonical: v.BooleanSchema<undefined>;
463
668
  readonly tx_index: v.NumberSchema<undefined>;
464
- readonly tx_status: v.StringSchema<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>;
465
670
  readonly tx_result: v.ObjectSchema<{
466
671
  readonly hex: v.StringSchema<undefined>;
467
672
  readonly repr: v.StringSchema<undefined>;
@@ -528,7 +733,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
528
733
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
529
734
  readonly canonical: v.BooleanSchema<undefined>;
530
735
  readonly tx_index: v.NumberSchema<undefined>;
531
- 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>;
532
737
  readonly tx_result: v.ObjectSchema<{
533
738
  readonly hex: v.StringSchema<undefined>;
534
739
  readonly repr: v.StringSchema<undefined>;
@@ -577,7 +782,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
577
782
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
578
783
  readonly canonical: v.BooleanSchema<undefined>;
579
784
  readonly tx_index: v.NumberSchema<undefined>;
580
- 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>;
581
786
  readonly tx_result: v.ObjectSchema<{
582
787
  readonly hex: v.StringSchema<undefined>;
583
788
  readonly repr: v.StringSchema<undefined>;
@@ -620,7 +825,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
620
825
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
621
826
  readonly canonical: v.BooleanSchema<undefined>;
622
827
  readonly tx_index: v.NumberSchema<undefined>;
623
- 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>;
624
829
  readonly tx_result: v.ObjectSchema<{
625
830
  readonly hex: v.StringSchema<undefined>;
626
831
  readonly repr: v.StringSchema<undefined>;
@@ -667,7 +872,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
667
872
  readonly total: v.NumberSchema<undefined>;
668
873
  }, undefined>;
669
874
  type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
670
- declare function addressTransactions(args: Args$8): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
875
+ declare function addressTransactions(args: Args$e): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
671
876
 
672
877
  type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
673
878
  type addressTransactions$1_Result = Result;
@@ -676,13 +881,13 @@ declare namespace addressTransactions$1 {
676
881
  export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
677
882
  }
678
883
 
679
- type Options$2 = {
884
+ type Args$d = {
680
885
  poolPrincipal: string;
681
886
  afterBlock?: number;
682
887
  unanchored?: boolean;
683
888
  limit?: number;
684
889
  offset?: number;
685
- };
890
+ } & ApiRequestOptions & ApiPaginationOptions;
686
891
  declare const memberSchema: v.ObjectSchema<{
687
892
  readonly stacker: v.StringSchema<undefined>;
688
893
  readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
@@ -706,7 +911,7 @@ declare const membersResponseSchema: v.ObjectSchema<{
706
911
  }, undefined>, undefined>;
707
912
  }, undefined>;
708
913
  type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
709
- declare function members(opts: Options$2, apiOpts: ApiRequestOptions): Promise<Result$1<MembersResponse>>;
914
+ declare function members(args: Args$d): Promise<Result$1<MembersResponse>>;
710
915
 
711
916
  type members$1_Member = Member;
712
917
  type members$1_MembersResponse = MembersResponse;
@@ -714,34 +919,37 @@ declare const members$1_memberSchema: typeof memberSchema;
714
919
  declare const members$1_members: typeof members;
715
920
  declare const members$1_membersResponseSchema: typeof membersResponseSchema;
716
921
  declare namespace members$1 {
717
- export { type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, type Options$2 as Options, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
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 };
718
923
  }
719
924
 
720
- type Options$1 = {
925
+ type Args$c = {
721
926
  sender: string;
722
927
  arguments: string[];
723
928
  contractAddress: string;
724
929
  contractName: string;
725
930
  functionName: string;
726
- };
931
+ } & ApiRequestOptions;
727
932
  declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
728
933
  readonly okay: v.LiteralSchema<true, undefined>;
934
+ /**
935
+ * A Clarity value as a hex-encoded string.
936
+ */
729
937
  readonly result: v.StringSchema<undefined>;
730
938
  }, undefined>, v.ObjectSchema<{
731
939
  readonly okay: v.LiteralSchema<false, undefined>;
732
940
  readonly cause: v.UnknownSchema;
733
941
  }, undefined>], undefined>;
734
942
  type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
735
- declare function readOnly(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result$1<ReadOnlyResponse>>;
943
+ declare function readOnly(args: Args$c): Promise<Result$1<ReadOnlyResponse>>;
736
944
 
737
945
  type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
738
946
  declare const readOnly$1_readOnly: typeof readOnly;
739
947
  declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
740
948
  declare namespace readOnly$1 {
741
- export { type Options$1 as Options, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
949
+ export { type Args$c as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
742
950
  }
743
951
 
744
- type Args$7 = {
952
+ type Args$b = {
745
953
  cycleNumber: number;
746
954
  signerPublicKey: string;
747
955
  } & ApiRequestOptions & ApiPaginationOptions;
@@ -771,7 +979,7 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
771
979
  readonly total: v.NumberSchema<undefined>;
772
980
  }, undefined>;
773
981
  type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
774
- declare function stackersForSignerInCycle(opts: Args$7): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
982
+ declare function stackersForSignerInCycle(opts: Args$b): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
775
983
 
776
984
  type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
777
985
  type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
@@ -779,10 +987,10 @@ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSc
779
987
  declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
780
988
  declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
781
989
  declare namespace stackersForSignerInCycle$1 {
782
- export { type Args$7 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 };
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 };
783
991
  }
784
992
 
785
- type Args$6 = {
993
+ type Args$a = {
786
994
  cycleNumber: number;
787
995
  } & ApiRequestOptions & ApiPaginationOptions;
788
996
  declare const signerSchema: v.ObjectSchema<{
@@ -823,7 +1031,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
823
1031
  readonly total: v.NumberSchema<undefined>;
824
1032
  }, undefined>;
825
1033
  type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
826
- declare function signersInCycle(args: Args$6): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1034
+ declare function signersInCycle(args: Args$a): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
827
1035
 
828
1036
  type signersInCycle$1_Signer = Signer;
829
1037
  type signersInCycle$1_SignersResponse = SignersResponse;
@@ -831,10 +1039,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
831
1039
  declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
832
1040
  declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
833
1041
  declare namespace signersInCycle$1 {
834
- export { type Args$6 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 };
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 };
835
1043
  }
836
1044
 
837
- type Args$5 = {
1045
+ type Args$9 = {
838
1046
  /**
839
1047
  * The signers public key as a hex string, with or without a '0x' prefix.
840
1048
  */
@@ -852,16 +1060,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
852
1060
  readonly pooled_stacker_count: v.NumberSchema<undefined>;
853
1061
  }, undefined>;
854
1062
  type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
855
- declare function signerInCycle(args: Args$5): Promise<Result$1<SignerInCycleResponse>>;
1063
+ declare function signerInCycle(args: Args$9): Promise<Result$1<SignerInCycleResponse>>;
856
1064
 
857
1065
  type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
858
1066
  declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
859
1067
  declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
860
1068
  declare namespace signerInCycle$1 {
861
- export { type Args$5 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
1069
+ export { type Args$9 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
862
1070
  }
863
1071
 
864
- type Args$4 = ApiRequestOptions & ApiPaginationOptions;
1072
+ type Args$8 = ApiRequestOptions & ApiPaginationOptions;
865
1073
  declare const cycleInfoSchema: v.ObjectSchema<{
866
1074
  readonly block_height: v.NumberSchema<undefined>;
867
1075
  readonly index_block_hash: v.StringSchema<undefined>;
@@ -894,7 +1102,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
894
1102
  readonly total: v.NumberSchema<undefined>;
895
1103
  }, undefined>;
896
1104
  type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
897
- declare function cycles(args: Args$4): Promise<Result$1<CyclesResponse>>;
1105
+ declare function cycles(args: Args$8): Promise<Result$1<CyclesResponse>>;
898
1106
 
899
1107
  type cycles$1_CycleInfo = CycleInfo;
900
1108
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -904,13 +1112,13 @@ declare const cycles$1_cycles: typeof cycles;
904
1112
  declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
905
1113
  declare const cycles$1_resultsSchema: typeof resultsSchema;
906
1114
  declare namespace cycles$1 {
907
- export { type Args$4 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 };
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 };
908
1116
  }
909
1117
 
910
- type Args$3 = {
1118
+ type Args$7 = {
911
1119
  cycleNumber: number;
912
1120
  } & ApiRequestOptions;
913
- declare const responseSchema$2: v.ObjectSchema<{
1121
+ declare const responseSchema$3: v.ObjectSchema<{
914
1122
  readonly block_height: v.NumberSchema<undefined>;
915
1123
  readonly index_block_hash: v.StringSchema<undefined>;
916
1124
  readonly cycle_number: v.NumberSchema<undefined>;
@@ -918,15 +1126,15 @@ declare const responseSchema$2: v.ObjectSchema<{
918
1126
  readonly total_stacked_amount: v.StringSchema<undefined>;
919
1127
  readonly total_signers: v.NumberSchema<undefined>;
920
1128
  }, undefined>;
921
- type Response$2 = v.InferOutput<typeof responseSchema$2>;
922
- declare function cycle(opts: Args$3): Promise<Result$1<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">>>;
923
1131
 
924
1132
  declare const cycle$1_cycle: typeof cycle;
925
1133
  declare namespace cycle$1 {
926
- export { type Args$3 as Args, type Response$2 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
1134
+ export { type Args$7 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
927
1135
  }
928
1136
 
929
- type Args$2 = ApiRequestOptions;
1137
+ type Args$6 = ApiRequestOptions;
930
1138
  declare const poxDetailsResponseSchema: v.ObjectSchema<{
931
1139
  readonly contract_id: v.StringSchema<undefined>;
932
1140
  readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
@@ -980,7 +1188,7 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
980
1188
  }, undefined>, undefined>;
981
1189
  }, undefined>;
982
1190
  type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
983
- declare function poxDetails(args: Args$2): Promise<Result$1<PoxDetailsResponse>>;
1191
+ declare function poxDetails(args: Args$6): Promise<Result$1<PoxDetailsResponse>>;
984
1192
 
985
1193
  declare const poxDetails$1_poxDetails: typeof poxDetails;
986
1194
  declare namespace poxDetails$1 {
@@ -999,8 +1207,9 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
999
1207
  readonly stacks_tip_height: v.NumberSchema<undefined>;
1000
1208
  readonly stacks_tip: v.StringSchema<undefined>;
1001
1209
  readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
1002
- readonly unanchored_tip: v.StringSchema<undefined>;
1003
- 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>;
1004
1213
  }, undefined>;
1005
1214
  type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
1006
1215
  declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
@@ -1011,10 +1220,21 @@ declare namespace coreApi$1 {
1011
1220
  export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
1012
1221
  }
1013
1222
 
1014
- type Args$1 = {
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 = {
1015
1235
  heightOrHash: string | number;
1016
1236
  } & ApiRequestOptions;
1017
- declare const responseSchema$1: v.ObjectSchema<{
1237
+ declare const responseSchema$2: v.ObjectSchema<{
1018
1238
  readonly canonical: v.BooleanSchema<undefined>;
1019
1239
  readonly height: v.NumberSchema<undefined>;
1020
1240
  readonly hash: v.StringSchema<undefined>;
@@ -1035,15 +1255,33 @@ declare const responseSchema$1: v.ObjectSchema<{
1035
1255
  readonly execution_cost_write_count: v.NumberSchema<undefined>;
1036
1256
  readonly execution_cost_write_length: v.NumberSchema<undefined>;
1037
1257
  }, undefined>;
1038
- type Response$1 = v.InferOutput<typeof responseSchema$1>;
1039
- declare function getBlock(opts: Args$1): Promise<Result$1<Response$1, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
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">>>;
1040
1260
 
1041
1261
  declare const getBlock$1_getBlock: typeof getBlock;
1042
1262
  declare namespace getBlock$1 {
1043
- export { type Args$1 as Args, type Response$1 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
1263
+ export { type Args$4 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
1044
1264
  }
1045
1265
 
1046
- type Args = {
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>;
1276
+ type Response$1 = v.InferOutput<typeof responseSchema$1>;
1277
+ declare function latestNonce(opts: Args$3): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
1278
+
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 = {
1047
1285
  principal: string;
1048
1286
  unanchored?: boolean;
1049
1287
  untilBlock?: number;
@@ -1073,70 +1311,53 @@ declare const responseSchema: v.ObjectSchema<{
1073
1311
  }, undefined>, undefined>;
1074
1312
  }, undefined>;
1075
1313
  type Response = v.InferOutput<typeof responseSchema>;
1076
- declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
1314
+ declare function balances(opts: Args$2): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
1077
1315
 
1078
- type balances$1_Args = Args;
1079
1316
  type balances$1_Response = Response;
1080
1317
  declare const balances$1_balances: typeof balances;
1081
1318
  declare const balances$1_responseSchema: typeof responseSchema;
1082
1319
  declare namespace balances$1 {
1083
- export { type balances$1_Args as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
1320
+ export { type Args$2 as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
1084
1321
  }
1085
1322
 
1086
- declare const index$7_balances: typeof balances;
1087
- declare namespace index$7 {
1088
- export { balances$1 as Balances, index$7_balances as balances };
1089
- }
1090
-
1091
- declare const index$6_getBlock: typeof getBlock;
1092
- declare namespace index$6 {
1093
- export { getBlock$1 as GetBlock, index$6_getBlock as getBlock };
1094
- }
1095
-
1096
- declare const index$5_coreApi: typeof coreApi;
1097
- declare const index$5_poxDetails: typeof poxDetails;
1098
- declare namespace index$5 {
1099
- export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$5_coreApi as coreApi, index$5_poxDetails as poxDetails };
1100
- }
1101
-
1102
- declare const index$4_cycle: typeof cycle;
1103
- declare const index$4_cycles: typeof cycles;
1104
- declare const index$4_signerInCycle: typeof signerInCycle;
1105
- declare const index$4_signersInCycle: typeof signersInCycle;
1106
- declare const index$4_stackersForSignerInCycle: typeof stackersForSignerInCycle;
1107
- declare namespace index$4 {
1108
- 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 };
1109
- }
1323
+ declare const accounts: {
1324
+ balances: typeof balances;
1325
+ latestNonce: typeof latestNonce;
1326
+ };
1110
1327
 
1111
- declare const index$3_readOnly: typeof readOnly;
1112
- declare namespace index$3 {
1113
- export { readOnly$1 as ReadOnly, index$3_readOnly as readOnly };
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 };
1114
1331
  }
1115
1332
 
1116
- declare const index$2_members: typeof members;
1117
- declare namespace index$2 {
1118
- export { members$1 as Members, index$2_members as members };
1119
- }
1333
+ declare const blocks: {
1334
+ getBlock: typeof getBlock;
1335
+ };
1120
1336
 
1121
- declare const index$1_addressTransactions: typeof addressTransactions;
1122
- declare const index$1_getTransaction: typeof getTransaction;
1123
- declare namespace index$1 {
1124
- export { addressTransactions$1 as AddressTransactions, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
1337
+ declare const index$9_blocks: typeof blocks;
1338
+ declare namespace index$9 {
1339
+ export { getBlock$1 as GetBlock, index$9_blocks as blocks };
1125
1340
  }
1126
1341
 
1127
- declare const accounts: {
1128
- balances: typeof balances;
1342
+ declare const faucets: {
1343
+ stx: typeof stx;
1129
1344
  };
1130
1345
 
1131
- declare const blocks: {
1132
- getBlock: typeof getBlock;
1133
- };
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
+ }
1134
1350
 
1135
1351
  declare const info: {
1136
1352
  coreApi: typeof coreApi;
1137
1353
  poxDetails: typeof poxDetails;
1138
1354
  };
1139
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
+
1140
1361
  declare const proofOfTransfer: {
1141
1362
  cycle: typeof cycle;
1142
1363
  cycles: typeof cycles;
@@ -1145,44 +1366,49 @@ declare const proofOfTransfer: {
1145
1366
  stackersForSignerInCycle: typeof stackersForSignerInCycle;
1146
1367
  };
1147
1368
 
1148
- declare const smartContracts: {
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: {
1149
1375
  readOnly: typeof readOnly;
1150
1376
  };
1151
1377
 
1378
+ declare namespace index$5 {
1379
+ export { readOnly$1 as ReadOnly, smartContracts$1 as smartContracts };
1380
+ }
1381
+
1152
1382
  declare const stackingPool: {
1153
1383
  members: typeof members;
1154
1384
  };
1155
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
+
1156
1391
  declare const transactions: {
1157
1392
  addressTransactions: typeof addressTransactions;
1158
1393
  getTransaction: typeof getTransaction;
1159
1394
  };
1160
1395
 
1161
- declare const index_accounts: typeof accounts;
1162
- declare const index_blocks: typeof blocks;
1163
- declare const index_info: typeof info;
1164
- declare const index_proofOfTransfer: typeof proofOfTransfer;
1165
- declare const index_smartContracts: typeof smartContracts;
1166
- declare const index_stackingPool: typeof stackingPool;
1167
- declare const index_transactions: typeof transactions;
1168
- declare namespace index {
1169
- 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 };
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 };
1170
1399
  }
1171
1400
 
1172
- type Options = {
1173
- startingDelay?: number;
1174
- numOfAttempts?: number;
1175
- };
1176
- declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
1177
- declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
1178
-
1179
1401
  declare const stacksApi: {
1180
1402
  accounts: {
1181
1403
  balances: typeof balances;
1404
+ latestNonce: typeof latestNonce;
1182
1405
  };
1183
1406
  blocks: {
1184
1407
  getBlock: typeof getBlock;
1185
1408
  };
1409
+ faucets: {
1410
+ stx: typeof stx;
1411
+ };
1186
1412
  info: {
1187
1413
  coreApi: typeof coreApi;
1188
1414
  poxDetails: typeof poxDetails;
@@ -1206,4 +1432,85 @@ declare const stacksApi: {
1206
1432
  };
1207
1433
  };
1208
1434
 
1209
- export { type Result$1 as Result, type SafeError, index as StacksApi, callRateLimitedApi, error, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, success };
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
+ /**
1445
+ * Hex-encoded string of the map key Clarity value.
1446
+ */
1447
+ mapKey: string;
1448
+ } & ApiRequestOptions & ProofAndTip;
1449
+ declare const mapEntryResponseSchema: v.ObjectSchema<{
1450
+ /**
1451
+ * Hex-encoded string of clarity value. It is always an optional tuple.
1452
+ */
1453
+ readonly data: v.StringSchema<undefined>;
1454
+ /**
1455
+ * Hex-encoded string of the MARF proof for the data
1456
+ */
1457
+ readonly proof: v.OptionalSchema<v.StringSchema<undefined>, never>;
1458
+ }, undefined>;
1459
+ type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
1460
+ declare function mapEntry(args: Args$1): Promise<Result$1<MapEntryResponse>>;
1461
+
1462
+ type mapEntry$1_MapEntryResponse = MapEntryResponse;
1463
+ declare const mapEntry$1_mapEntry: typeof mapEntry;
1464
+ declare namespace mapEntry$1 {
1465
+ export { type Args$1 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
1466
+ }
1467
+
1468
+ declare const smartContracts: {
1469
+ mapEntry: typeof mapEntry;
1470
+ };
1471
+
1472
+ declare const index$1_smartContracts: typeof smartContracts;
1473
+ declare namespace index$1 {
1474
+ export { mapEntry$1 as MapEntry, index$1_smartContracts as smartContracts };
1475
+ }
1476
+
1477
+ declare const stacksRpcApi: {
1478
+ smartContracts: {
1479
+ mapEntry: typeof mapEntry;
1480
+ };
1481
+ };
1482
+
1483
+ declare const index_stacksRpcApi: typeof stacksRpcApi;
1484
+ declare namespace index {
1485
+ export { index$1 as SmartContracts, index_stacksRpcApi as stacksRpcApi };
1486
+ }
1487
+
1488
+ type Identifier = {
1489
+ type: "address";
1490
+ signerAddress: string;
1491
+ } | {
1492
+ type: "publicKey";
1493
+ signerPublicKey: string;
1494
+ };
1495
+ type Args = {
1496
+ identifier: Identifier;
1497
+ } & {
1498
+ cycleNumber: number;
1499
+ } & ApiRequestOptions;
1500
+ /**
1501
+ * Return the total locked amount for a signer in a PoX cycle.
1502
+ */
1503
+ declare function getSignerStackedAmount(args: Args): Promise<Result$1<bigint, SafeError<"SignerNotFound" | string>>>;
1504
+
1505
+ declare const queries: {
1506
+ getSignerStackedAmount: typeof getSignerStackedAmount;
1507
+ };
1508
+
1509
+ type Options = {
1510
+ startingDelay?: number;
1511
+ numOfAttempts?: number;
1512
+ };
1513
+ declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
1514
+ declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
1515
+
1516
+ export { type Result$1 as Result, type SafeError, index$2 as StacksApi, index as StacksRpcApi, callRateLimitedApi, error, queries, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, stacksRpcApi, success };