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

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,6 +13,10 @@ 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 = {
@@ -30,6 +34,188 @@ type ApiPaginationOptions = {
30
34
  offset?: number;
31
35
  };
32
36
 
37
+ declare const baseTransactionSchema: v.ObjectSchema<{
38
+ readonly tx_id: v.StringSchema<undefined>;
39
+ readonly nonce: v.NumberSchema<undefined>;
40
+ readonly fee_rate: v.StringSchema<undefined>;
41
+ readonly sender_address: v.StringSchema<undefined>;
42
+ readonly sponsored: v.BooleanSchema<undefined>;
43
+ readonly post_condition_mode: v.StringSchema<undefined>;
44
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
45
+ readonly anchor_mode: v.StringSchema<undefined>;
46
+ readonly is_unanchored: v.BooleanSchema<undefined>;
47
+ readonly block_hash: v.StringSchema<undefined>;
48
+ readonly parent_block_hash: v.StringSchema<undefined>;
49
+ readonly block_height: v.NumberSchema<undefined>;
50
+ readonly block_time: v.NumberSchema<undefined>;
51
+ readonly block_time_iso: v.StringSchema<undefined>;
52
+ readonly burn_block_height: v.NumberSchema<undefined>;
53
+ readonly burn_block_time: v.NumberSchema<undefined>;
54
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
55
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
56
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
57
+ readonly canonical: v.BooleanSchema<undefined>;
58
+ readonly tx_index: v.NumberSchema<undefined>;
59
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
60
+ readonly tx_result: v.ObjectSchema<{
61
+ readonly hex: v.StringSchema<undefined>;
62
+ readonly repr: v.StringSchema<undefined>;
63
+ }, undefined>;
64
+ readonly microblock_hash: v.StringSchema<undefined>;
65
+ readonly microblock_sequence: v.NumberSchema<undefined>;
66
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
67
+ readonly event_count: v.NumberSchema<undefined>;
68
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
69
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
70
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
71
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
72
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
73
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
74
+ }, undefined>;
75
+ declare const contractCallTransactionSchema: v.ObjectSchema<{
76
+ readonly tx_id: v.StringSchema<undefined>;
77
+ readonly nonce: v.NumberSchema<undefined>;
78
+ readonly fee_rate: v.StringSchema<undefined>;
79
+ readonly sender_address: v.StringSchema<undefined>;
80
+ readonly sponsored: v.BooleanSchema<undefined>;
81
+ readonly post_condition_mode: v.StringSchema<undefined>;
82
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
83
+ readonly anchor_mode: v.StringSchema<undefined>;
84
+ readonly is_unanchored: v.BooleanSchema<undefined>;
85
+ readonly block_hash: v.StringSchema<undefined>;
86
+ readonly parent_block_hash: v.StringSchema<undefined>;
87
+ readonly block_height: v.NumberSchema<undefined>;
88
+ readonly block_time: v.NumberSchema<undefined>;
89
+ readonly block_time_iso: v.StringSchema<undefined>;
90
+ readonly burn_block_height: v.NumberSchema<undefined>;
91
+ readonly burn_block_time: v.NumberSchema<undefined>;
92
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
93
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
94
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
95
+ readonly canonical: v.BooleanSchema<undefined>;
96
+ readonly tx_index: v.NumberSchema<undefined>;
97
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
98
+ readonly tx_result: v.ObjectSchema<{
99
+ readonly hex: v.StringSchema<undefined>;
100
+ readonly repr: v.StringSchema<undefined>;
101
+ }, undefined>;
102
+ readonly microblock_hash: v.StringSchema<undefined>;
103
+ readonly microblock_sequence: v.NumberSchema<undefined>;
104
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
105
+ readonly event_count: v.NumberSchema<undefined>;
106
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
107
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
108
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
109
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
110
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
111
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
112
+ readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
113
+ readonly contract_call: v.ObjectSchema<{
114
+ readonly contract_id: v.StringSchema<undefined>;
115
+ readonly function_name: v.StringSchema<undefined>;
116
+ readonly function_signature: v.StringSchema<undefined>;
117
+ readonly function_args: v.ArraySchema<v.ObjectSchema<{
118
+ readonly hex: v.StringSchema<undefined>;
119
+ readonly repr: v.StringSchema<undefined>;
120
+ readonly name: v.StringSchema<undefined>;
121
+ readonly type: v.StringSchema<undefined>;
122
+ }, undefined>, undefined>;
123
+ }, undefined>;
124
+ }, undefined>;
125
+ type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
126
+ declare const smartContractTransactionSchema: v.ObjectSchema<{
127
+ readonly tx_id: v.StringSchema<undefined>;
128
+ readonly nonce: v.NumberSchema<undefined>;
129
+ readonly fee_rate: v.StringSchema<undefined>;
130
+ readonly sender_address: v.StringSchema<undefined>;
131
+ readonly sponsored: v.BooleanSchema<undefined>;
132
+ readonly post_condition_mode: v.StringSchema<undefined>;
133
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
134
+ readonly anchor_mode: v.StringSchema<undefined>;
135
+ readonly is_unanchored: v.BooleanSchema<undefined>;
136
+ readonly block_hash: v.StringSchema<undefined>;
137
+ readonly parent_block_hash: v.StringSchema<undefined>;
138
+ readonly block_height: v.NumberSchema<undefined>;
139
+ readonly block_time: v.NumberSchema<undefined>;
140
+ readonly block_time_iso: v.StringSchema<undefined>;
141
+ readonly burn_block_height: v.NumberSchema<undefined>;
142
+ readonly burn_block_time: v.NumberSchema<undefined>;
143
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
144
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
145
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
146
+ readonly canonical: v.BooleanSchema<undefined>;
147
+ readonly tx_index: v.NumberSchema<undefined>;
148
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
149
+ readonly tx_result: v.ObjectSchema<{
150
+ readonly hex: v.StringSchema<undefined>;
151
+ readonly repr: v.StringSchema<undefined>;
152
+ }, undefined>;
153
+ readonly microblock_hash: v.StringSchema<undefined>;
154
+ readonly microblock_sequence: v.NumberSchema<undefined>;
155
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
156
+ readonly event_count: v.NumberSchema<undefined>;
157
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
158
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
159
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
160
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
161
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
162
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
163
+ readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
164
+ readonly smart_contract: v.ObjectSchema<{
165
+ /**
166
+ * NOTE: The types may be wrong, not sure what type of value is used when
167
+ * the version is not `null`.
168
+ */
169
+ readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
170
+ readonly contract_id: v.StringSchema<undefined>;
171
+ readonly source_code: v.StringSchema<undefined>;
172
+ }, undefined>;
173
+ }, undefined>;
174
+ type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
175
+ declare const tokenTransferSchema: v.ObjectSchema<{
176
+ readonly tx_id: v.StringSchema<undefined>;
177
+ readonly nonce: v.NumberSchema<undefined>;
178
+ readonly fee_rate: v.StringSchema<undefined>;
179
+ readonly sender_address: v.StringSchema<undefined>;
180
+ readonly sponsored: v.BooleanSchema<undefined>;
181
+ readonly post_condition_mode: v.StringSchema<undefined>;
182
+ readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
183
+ readonly anchor_mode: v.StringSchema<undefined>;
184
+ readonly is_unanchored: v.BooleanSchema<undefined>;
185
+ readonly block_hash: v.StringSchema<undefined>;
186
+ readonly parent_block_hash: v.StringSchema<undefined>;
187
+ readonly block_height: v.NumberSchema<undefined>;
188
+ readonly block_time: v.NumberSchema<undefined>;
189
+ readonly block_time_iso: v.StringSchema<undefined>;
190
+ readonly burn_block_height: v.NumberSchema<undefined>;
191
+ readonly burn_block_time: v.NumberSchema<undefined>;
192
+ readonly burn_block_time_iso: v.StringSchema<undefined>;
193
+ readonly parent_burn_block_time: v.NumberSchema<undefined>;
194
+ readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
195
+ readonly canonical: v.BooleanSchema<undefined>;
196
+ readonly tx_index: v.NumberSchema<undefined>;
197
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
198
+ readonly tx_result: v.ObjectSchema<{
199
+ readonly hex: v.StringSchema<undefined>;
200
+ readonly repr: v.StringSchema<undefined>;
201
+ }, undefined>;
202
+ readonly microblock_hash: v.StringSchema<undefined>;
203
+ readonly microblock_sequence: v.NumberSchema<undefined>;
204
+ readonly microblock_canonical: v.BooleanSchema<undefined>;
205
+ readonly event_count: v.NumberSchema<undefined>;
206
+ readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
207
+ readonly execution_cost_read_count: v.NumberSchema<undefined>;
208
+ readonly execution_cost_read_length: v.NumberSchema<undefined>;
209
+ readonly execution_cost_runtime: v.NumberSchema<undefined>;
210
+ readonly execution_cost_write_count: v.NumberSchema<undefined>;
211
+ readonly execution_cost_write_length: v.NumberSchema<undefined>;
212
+ readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
213
+ readonly token_transfer: v.ObjectSchema<{
214
+ readonly recipient_address: v.StringSchema<undefined>;
215
+ readonly amount: v.StringSchema<undefined>;
216
+ readonly memo: v.StringSchema<undefined>;
217
+ }, undefined>;
218
+ }, undefined>;
33
219
  /**
34
220
  * Incomplete schema of some transaction types.
35
221
  */
@@ -55,7 +241,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
55
241
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
56
242
  readonly canonical: v.BooleanSchema<undefined>;
57
243
  readonly tx_index: v.NumberSchema<undefined>;
58
- readonly tx_status: v.StringSchema<undefined>;
244
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
59
245
  readonly tx_result: v.ObjectSchema<{
60
246
  readonly hex: v.StringSchema<undefined>;
61
247
  readonly repr: v.StringSchema<undefined>;
@@ -104,7 +290,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
104
290
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
105
291
  readonly canonical: v.BooleanSchema<undefined>;
106
292
  readonly tx_index: v.NumberSchema<undefined>;
107
- readonly tx_status: v.StringSchema<undefined>;
293
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
108
294
  readonly tx_result: v.ObjectSchema<{
109
295
  readonly hex: v.StringSchema<undefined>;
110
296
  readonly repr: v.StringSchema<undefined>;
@@ -151,7 +337,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
151
337
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
152
338
  readonly canonical: v.BooleanSchema<undefined>;
153
339
  readonly tx_index: v.NumberSchema<undefined>;
154
- readonly tx_status: v.StringSchema<undefined>;
340
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
155
341
  readonly tx_result: v.ObjectSchema<{
156
342
  readonly hex: v.StringSchema<undefined>;
157
343
  readonly repr: v.StringSchema<undefined>;
@@ -175,17 +361,29 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
175
361
  }, undefined>], undefined>;
176
362
  type Transaction = v.InferOutput<typeof transactionSchema>;
177
363
 
178
- type Args$9 = {
364
+ type schemas_ContractCallTransaction = ContractCallTransaction;
365
+ type schemas_SmartContractTransaction = SmartContractTransaction;
366
+ type schemas_Transaction = Transaction;
367
+ declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
368
+ declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
369
+ declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
370
+ declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
371
+ declare const schemas_transactionSchema: typeof transactionSchema;
372
+ declare namespace schemas {
373
+ export { type schemas_ContractCallTransaction as ContractCallTransaction, type schemas_SmartContractTransaction as SmartContractTransaction, type schemas_Transaction as Transaction, schemas_baseTransactionSchema as baseTransactionSchema, schemas_contractCallTransactionSchema as contractCallTransactionSchema, schemas_smartContractTransactionSchema as smartContractTransactionSchema, schemas_tokenTransferSchema as tokenTransferSchema, schemas_transactionSchema as transactionSchema };
374
+ }
375
+
376
+ type Args$b = {
179
377
  transactionId: string;
180
378
  } & ApiRequestOptions;
181
- declare function getTransaction(args: Args$9): Promise<Result$1<Transaction>>;
379
+ declare function getTransaction(args: Args$b): Promise<Result$1<Transaction>>;
182
380
 
183
381
  declare const getTransaction$1_getTransaction: typeof getTransaction;
184
382
  declare namespace getTransaction$1 {
185
383
  export { getTransaction$1_getTransaction as getTransaction };
186
384
  }
187
385
 
188
- type Args$8 = {
386
+ type Args$a = {
189
387
  address: string;
190
388
  } & ApiRequestOptions & ApiPaginationOptions;
191
389
  declare const resultSchema: v.ObjectSchema<{
@@ -211,7 +409,7 @@ declare const resultSchema: v.ObjectSchema<{
211
409
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
212
410
  readonly canonical: v.BooleanSchema<undefined>;
213
411
  readonly tx_index: v.NumberSchema<undefined>;
214
- readonly tx_status: v.StringSchema<undefined>;
412
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
215
413
  readonly tx_result: v.ObjectSchema<{
216
414
  readonly hex: v.StringSchema<undefined>;
217
415
  readonly repr: v.StringSchema<undefined>;
@@ -260,7 +458,7 @@ declare const resultSchema: v.ObjectSchema<{
260
458
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
261
459
  readonly canonical: v.BooleanSchema<undefined>;
262
460
  readonly tx_index: v.NumberSchema<undefined>;
263
- readonly tx_status: v.StringSchema<undefined>;
461
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
264
462
  readonly tx_result: v.ObjectSchema<{
265
463
  readonly hex: v.StringSchema<undefined>;
266
464
  readonly repr: v.StringSchema<undefined>;
@@ -303,7 +501,7 @@ declare const resultSchema: v.ObjectSchema<{
303
501
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
304
502
  readonly canonical: v.BooleanSchema<undefined>;
305
503
  readonly tx_index: v.NumberSchema<undefined>;
306
- readonly tx_status: v.StringSchema<undefined>;
504
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
307
505
  readonly tx_result: v.ObjectSchema<{
308
506
  readonly hex: v.StringSchema<undefined>;
309
507
  readonly repr: v.StringSchema<undefined>;
@@ -369,7 +567,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
369
567
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
370
568
  readonly canonical: v.BooleanSchema<undefined>;
371
569
  readonly tx_index: v.NumberSchema<undefined>;
372
- readonly tx_status: v.StringSchema<undefined>;
570
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
373
571
  readonly tx_result: v.ObjectSchema<{
374
572
  readonly hex: v.StringSchema<undefined>;
375
573
  readonly repr: v.StringSchema<undefined>;
@@ -418,7 +616,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
418
616
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
419
617
  readonly canonical: v.BooleanSchema<undefined>;
420
618
  readonly tx_index: v.NumberSchema<undefined>;
421
- readonly tx_status: v.StringSchema<undefined>;
619
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
422
620
  readonly tx_result: v.ObjectSchema<{
423
621
  readonly hex: v.StringSchema<undefined>;
424
622
  readonly repr: v.StringSchema<undefined>;
@@ -461,7 +659,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
461
659
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
462
660
  readonly canonical: v.BooleanSchema<undefined>;
463
661
  readonly tx_index: v.NumberSchema<undefined>;
464
- readonly tx_status: v.StringSchema<undefined>;
662
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
465
663
  readonly tx_result: v.ObjectSchema<{
466
664
  readonly hex: v.StringSchema<undefined>;
467
665
  readonly repr: v.StringSchema<undefined>;
@@ -528,7 +726,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
528
726
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
529
727
  readonly canonical: v.BooleanSchema<undefined>;
530
728
  readonly tx_index: v.NumberSchema<undefined>;
531
- readonly tx_status: v.StringSchema<undefined>;
729
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
532
730
  readonly tx_result: v.ObjectSchema<{
533
731
  readonly hex: v.StringSchema<undefined>;
534
732
  readonly repr: v.StringSchema<undefined>;
@@ -577,7 +775,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
577
775
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
578
776
  readonly canonical: v.BooleanSchema<undefined>;
579
777
  readonly tx_index: v.NumberSchema<undefined>;
580
- readonly tx_status: v.StringSchema<undefined>;
778
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
581
779
  readonly tx_result: v.ObjectSchema<{
582
780
  readonly hex: v.StringSchema<undefined>;
583
781
  readonly repr: v.StringSchema<undefined>;
@@ -620,7 +818,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
620
818
  readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
621
819
  readonly canonical: v.BooleanSchema<undefined>;
622
820
  readonly tx_index: v.NumberSchema<undefined>;
623
- readonly tx_status: v.StringSchema<undefined>;
821
+ readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
624
822
  readonly tx_result: v.ObjectSchema<{
625
823
  readonly hex: v.StringSchema<undefined>;
626
824
  readonly repr: v.StringSchema<undefined>;
@@ -667,7 +865,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
667
865
  readonly total: v.NumberSchema<undefined>;
668
866
  }, undefined>;
669
867
  type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
670
- declare function addressTransactions(args: Args$8): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
868
+ declare function addressTransactions(args: Args$a): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
671
869
 
672
870
  type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
673
871
  type addressTransactions$1_Result = Result;
@@ -676,7 +874,7 @@ declare namespace addressTransactions$1 {
676
874
  export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
677
875
  }
678
876
 
679
- type Options$2 = {
877
+ type Options$1 = {
680
878
  poolPrincipal: string;
681
879
  afterBlock?: number;
682
880
  unanchored?: boolean;
@@ -706,7 +904,7 @@ declare const membersResponseSchema: v.ObjectSchema<{
706
904
  }, undefined>, undefined>;
707
905
  }, undefined>;
708
906
  type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
709
- declare function members(opts: Options$2, apiOpts: ApiRequestOptions): Promise<Result$1<MembersResponse>>;
907
+ declare function members(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result$1<MembersResponse>>;
710
908
 
711
909
  type members$1_Member = Member;
712
910
  type members$1_MembersResponse = MembersResponse;
@@ -714,34 +912,37 @@ declare const members$1_memberSchema: typeof memberSchema;
714
912
  declare const members$1_members: typeof members;
715
913
  declare const members$1_membersResponseSchema: typeof membersResponseSchema;
716
914
  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 };
915
+ export { type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, type Options$1 as Options, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
718
916
  }
719
917
 
720
- type Options$1 = {
918
+ type Args$9 = {
721
919
  sender: string;
722
920
  arguments: string[];
723
921
  contractAddress: string;
724
922
  contractName: string;
725
923
  functionName: string;
726
- };
924
+ } & ApiRequestOptions;
727
925
  declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
728
926
  readonly okay: v.LiteralSchema<true, undefined>;
927
+ /**
928
+ * A Clarity value as a hex-encoded string.
929
+ */
729
930
  readonly result: v.StringSchema<undefined>;
730
931
  }, undefined>, v.ObjectSchema<{
731
932
  readonly okay: v.LiteralSchema<false, undefined>;
732
933
  readonly cause: v.UnknownSchema;
733
934
  }, undefined>], undefined>;
734
935
  type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
735
- declare function readOnly(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result$1<ReadOnlyResponse>>;
936
+ declare function readOnly(args: Args$9): Promise<Result$1<ReadOnlyResponse>>;
736
937
 
737
938
  type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
738
939
  declare const readOnly$1_readOnly: typeof readOnly;
739
940
  declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
740
941
  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 };
942
+ export { type Args$9 as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
742
943
  }
743
944
 
744
- type Args$7 = {
945
+ type Args$8 = {
745
946
  cycleNumber: number;
746
947
  signerPublicKey: string;
747
948
  } & ApiRequestOptions & ApiPaginationOptions;
@@ -771,7 +972,7 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
771
972
  readonly total: v.NumberSchema<undefined>;
772
973
  }, undefined>;
773
974
  type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
774
- declare function stackersForSignerInCycle(opts: Args$7): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
975
+ declare function stackersForSignerInCycle(opts: Args$8): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
775
976
 
776
977
  type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
777
978
  type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
@@ -779,10 +980,10 @@ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSc
779
980
  declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
780
981
  declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
781
982
  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 };
983
+ export { type Args$8 as Args, type Results$2 as Results, type stackersForSignerInCycle$1_StackerInfo as StackerInfo, type stackersForSignerInCycle$1_StackersForSignerInCycleResponse as StackersForSignerInCycleResponse, resultsSchema$2 as resultsSchema, stackersForSignerInCycle$1_stackerInfoSchema as stackerInfoSchema, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle, stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema as stackersForSignerInCycleResponseSchema };
783
984
  }
784
985
 
785
- type Args$6 = {
986
+ type Args$7 = {
786
987
  cycleNumber: number;
787
988
  } & ApiRequestOptions & ApiPaginationOptions;
788
989
  declare const signerSchema: v.ObjectSchema<{
@@ -823,7 +1024,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
823
1024
  readonly total: v.NumberSchema<undefined>;
824
1025
  }, undefined>;
825
1026
  type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
826
- declare function signersInCycle(args: Args$6): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1027
+ declare function signersInCycle(args: Args$7): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
827
1028
 
828
1029
  type signersInCycle$1_Signer = Signer;
829
1030
  type signersInCycle$1_SignersResponse = SignersResponse;
@@ -831,10 +1032,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
831
1032
  declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
832
1033
  declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
833
1034
  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 };
1035
+ export { type Args$7 as Args, type Results$1 as Results, type signersInCycle$1_Signer as Signer, type signersInCycle$1_SignersResponse as SignersResponse, resultsSchema$1 as resultsSchema, signersInCycle$1_signerSchema as signerSchema, signersInCycle$1_signersInCycle as signersInCycle, signersInCycle$1_signersResponseSchema as signersResponseSchema };
835
1036
  }
836
1037
 
837
- type Args$5 = {
1038
+ type Args$6 = {
838
1039
  /**
839
1040
  * The signers public key as a hex string, with or without a '0x' prefix.
840
1041
  */
@@ -852,16 +1053,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
852
1053
  readonly pooled_stacker_count: v.NumberSchema<undefined>;
853
1054
  }, undefined>;
854
1055
  type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
855
- declare function signerInCycle(args: Args$5): Promise<Result$1<SignerInCycleResponse>>;
1056
+ declare function signerInCycle(args: Args$6): Promise<Result$1<SignerInCycleResponse>>;
856
1057
 
857
1058
  type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
858
1059
  declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
859
1060
  declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
860
1061
  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 };
1062
+ export { type Args$6 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
862
1063
  }
863
1064
 
864
- type Args$4 = ApiRequestOptions & ApiPaginationOptions;
1065
+ type Args$5 = ApiRequestOptions & ApiPaginationOptions;
865
1066
  declare const cycleInfoSchema: v.ObjectSchema<{
866
1067
  readonly block_height: v.NumberSchema<undefined>;
867
1068
  readonly index_block_hash: v.StringSchema<undefined>;
@@ -894,7 +1095,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
894
1095
  readonly total: v.NumberSchema<undefined>;
895
1096
  }, undefined>;
896
1097
  type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
897
- declare function cycles(args: Args$4): Promise<Result$1<CyclesResponse>>;
1098
+ declare function cycles(args: Args$5): Promise<Result$1<CyclesResponse>>;
898
1099
 
899
1100
  type cycles$1_CycleInfo = CycleInfo;
900
1101
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -904,13 +1105,13 @@ declare const cycles$1_cycles: typeof cycles;
904
1105
  declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
905
1106
  declare const cycles$1_resultsSchema: typeof resultsSchema;
906
1107
  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 };
1108
+ export { type Args$5 as Args, type cycles$1_CycleInfo as CycleInfo, type cycles$1_CyclesResponse as CyclesResponse, type cycles$1_Results as Results, cycles$1_cycleInfoSchema as cycleInfoSchema, cycles$1_cycles as cycles, cycles$1_cyclesResponseSchema as cyclesResponseSchema, cycles$1_resultsSchema as resultsSchema };
908
1109
  }
909
1110
 
910
- type Args$3 = {
1111
+ type Args$4 = {
911
1112
  cycleNumber: number;
912
1113
  } & ApiRequestOptions;
913
- declare const responseSchema$2: v.ObjectSchema<{
1114
+ declare const responseSchema$3: v.ObjectSchema<{
914
1115
  readonly block_height: v.NumberSchema<undefined>;
915
1116
  readonly index_block_hash: v.StringSchema<undefined>;
916
1117
  readonly cycle_number: v.NumberSchema<undefined>;
@@ -918,15 +1119,15 @@ declare const responseSchema$2: v.ObjectSchema<{
918
1119
  readonly total_stacked_amount: v.StringSchema<undefined>;
919
1120
  readonly total_signers: v.NumberSchema<undefined>;
920
1121
  }, 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">>>;
1122
+ type Response$3 = v.InferOutput<typeof responseSchema$3>;
1123
+ declare function cycle(opts: Args$4): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
923
1124
 
924
1125
  declare const cycle$1_cycle: typeof cycle;
925
1126
  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 };
1127
+ export { type Args$4 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
927
1128
  }
928
1129
 
929
- type Args$2 = ApiRequestOptions;
1130
+ type Args$3 = ApiRequestOptions;
930
1131
  declare const poxDetailsResponseSchema: v.ObjectSchema<{
931
1132
  readonly contract_id: v.StringSchema<undefined>;
932
1133
  readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
@@ -980,7 +1181,7 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
980
1181
  }, undefined>, undefined>;
981
1182
  }, undefined>;
982
1183
  type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
983
- declare function poxDetails(args: Args$2): Promise<Result$1<PoxDetailsResponse>>;
1184
+ declare function poxDetails(args: Args$3): Promise<Result$1<PoxDetailsResponse>>;
984
1185
 
985
1186
  declare const poxDetails$1_poxDetails: typeof poxDetails;
986
1187
  declare namespace poxDetails$1 {
@@ -999,8 +1200,9 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
999
1200
  readonly stacks_tip_height: v.NumberSchema<undefined>;
1000
1201
  readonly stacks_tip: v.StringSchema<undefined>;
1001
1202
  readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
1002
- readonly unanchored_tip: v.StringSchema<undefined>;
1003
- readonly exit_at_block_height: v.NumberSchema<undefined>;
1203
+ readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, never>;
1204
+ readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, never>;
1205
+ readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, never>;
1004
1206
  }, undefined>;
1005
1207
  type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
1006
1208
  declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
@@ -1011,10 +1213,10 @@ declare namespace coreApi$1 {
1011
1213
  export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
1012
1214
  }
1013
1215
 
1014
- type Args$1 = {
1216
+ type Args$2 = {
1015
1217
  heightOrHash: string | number;
1016
1218
  } & ApiRequestOptions;
1017
- declare const responseSchema$1: v.ObjectSchema<{
1219
+ declare const responseSchema$2: v.ObjectSchema<{
1018
1220
  readonly canonical: v.BooleanSchema<undefined>;
1019
1221
  readonly height: v.NumberSchema<undefined>;
1020
1222
  readonly hash: v.StringSchema<undefined>;
@@ -1035,12 +1237,30 @@ declare const responseSchema$1: v.ObjectSchema<{
1035
1237
  readonly execution_cost_write_count: v.NumberSchema<undefined>;
1036
1238
  readonly execution_cost_write_length: v.NumberSchema<undefined>;
1037
1239
  }, 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">>>;
1240
+ type Response$2 = v.InferOutput<typeof responseSchema$2>;
1241
+ declare function getBlock(opts: Args$2): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
1040
1242
 
1041
1243
  declare const getBlock$1_getBlock: typeof getBlock;
1042
1244
  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 };
1245
+ export { type Args$2 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
1246
+ }
1247
+
1248
+ type Args$1 = {
1249
+ principal: string;
1250
+ } & ApiRequestOptions;
1251
+ declare const responseSchema$1: v.ObjectSchema<{
1252
+ readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1253
+ readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1254
+ readonly possible_next_nonce: v.NumberSchema<undefined>;
1255
+ readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1256
+ readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1257
+ }, undefined>;
1258
+ type Response$1 = v.InferOutput<typeof responseSchema$1>;
1259
+ declare function latestNonce(opts: Args$1): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
1260
+
1261
+ declare const latestNonce$1_latestNonce: typeof latestNonce;
1262
+ declare namespace latestNonce$1 {
1263
+ export { type Args$1 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
1044
1264
  }
1045
1265
 
1046
1266
  type Args = {
@@ -1084,8 +1304,9 @@ declare namespace balances$1 {
1084
1304
  }
1085
1305
 
1086
1306
  declare const index$7_balances: typeof balances;
1307
+ declare const index$7_latestNonce: typeof latestNonce;
1087
1308
  declare namespace index$7 {
1088
- export { balances$1 as Balances, index$7_balances as balances };
1309
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$7_balances as balances, index$7_latestNonce as latestNonce };
1089
1310
  }
1090
1311
 
1091
1312
  declare const index$6_getBlock: typeof getBlock;
@@ -1121,11 +1342,12 @@ declare namespace index$2 {
1121
1342
  declare const index$1_addressTransactions: typeof addressTransactions;
1122
1343
  declare const index$1_getTransaction: typeof getTransaction;
1123
1344
  declare namespace index$1 {
1124
- export { addressTransactions$1 as AddressTransactions, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
1345
+ export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
1125
1346
  }
1126
1347
 
1127
1348
  declare const accounts: {
1128
1349
  balances: typeof balances;
1350
+ latestNonce: typeof latestNonce;
1129
1351
  };
1130
1352
 
1131
1353
  declare const blocks: {
@@ -1179,6 +1401,7 @@ declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, optio
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;