@secretkeylabs/stacks-tools 0.6.0 → 0.7.0-6184ecb

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
@@ -1,18 +1,7 @@
1
- import { MempoolTransaction, OperationResponse } from '@stacks/blockchain-api-client';
1
+ import { OperationResponse } from '@stacks/blockchain-api-client';
2
2
  import * as v from 'valibot';
3
3
  import { ClarityAbi, OptionalCV, TupleCV, BufferCV, UIntCV, PrincipalCV, ListCV } from '@stacks/transactions';
4
4
 
5
- type SafeError<TName extends string = string, TData = unknown> = {
6
- readonly name: TName;
7
- readonly message: string;
8
- readonly data?: TData;
9
- };
10
- type Result$1<TData = unknown, E extends SafeError = SafeError> = [E, null] | [null, TData];
11
- declare function success<D>(data: D): Result$1<D, never>;
12
- declare function error<const E extends SafeError>(error: E): Result$1<never, E>;
13
- declare function safePromise<TData>(promise: Promise<TData>): Promise<Result$1<TData, SafeError<"SafePromiseError">>>;
14
- declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<"SafeCallError">>;
15
-
16
5
  type ApiKeyConfig = {
17
6
  key: string;
18
7
  /**
@@ -42,14 +31,42 @@ type ApiPaginationOptions = {
42
31
  limit?: number;
43
32
  offset?: number;
44
33
  };
45
- type ListResponse<T = unknown> = {
46
- limit: number;
47
- offset: number;
48
- total: number;
49
- results: T[];
34
+
35
+ type SafeError<TName extends string = string, TData = unknown> = {
36
+ readonly name: TName;
37
+ readonly message: string;
38
+ readonly data?: TData;
39
+ };
40
+ type SuccessResult<Data = unknown> = [null, Data];
41
+ type ErrorResult<Error extends SafeError = SafeError> = [Error, null];
42
+ type Result$1<Data = unknown, Error extends SafeError = SafeError> = SuccessResult<Data> | ErrorResult<Error>;
43
+ declare function success<Data>(data: Data): Result$1<Data, never>;
44
+ declare function error<const E extends SafeError>(errorArg: E): Result$1<never, E>;
45
+ declare function safePromise<T>(promise: Promise<T>): Promise<Result$1<T, SafeError<"SafeError">>>;
46
+ type Options$1 = {
47
+ startingDelay?: number;
48
+ numOfAttempts?: number;
50
49
  };
50
+ declare function safeBackOff<T>(promise: Promise<Result$1<T>>, options?: Options$1): Promise<Result$1<T, SafeError<"BackoffError" | string>>>;
51
+ declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<"SafeCallError">>;
52
+ declare function flatResults<T>(results: Array<Result$1<T>>): Result$1<Array<T>>;
53
+ /**
54
+ * Safely extracts response body by trying JSON first, then text, then undefined
55
+ */
56
+ declare function safeExtractResponseBody(response: Response): Promise<unknown>;
51
57
 
52
- type Args$k = {
58
+ type Args$n = {
59
+ transactionId: string;
60
+ } & ApiRequestOptions;
61
+ type Response$9 = OperationResponse["get_raw_transaction_by_id"];
62
+ declare function getRawTransaction(args: Args$n): Promise<Result$1<Response$9>>;
63
+
64
+ declare const getRawTransaction$1_getRawTransaction: typeof getRawTransaction;
65
+ declare namespace getRawTransaction$1 {
66
+ export { type Args$n as Args, type Response$9 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
67
+ }
68
+
69
+ type Args$m = {
53
70
  /**
54
71
  * Filter to only return transactions with this sender address.
55
72
  */
@@ -73,8 +90,8 @@ type Args$k = {
73
90
  */
74
91
  order?: "asc" | "desc";
75
92
  } & ApiRequestOptions & ApiPaginationOptions;
76
- type MempoolTransactionsResponse = ListResponse<MempoolTransaction>;
77
- declare function mempoolTransactions(args: Args$k): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
93
+ type MempoolTransactionsResponse = OperationResponse["/extended/v1/tx/mempool"];
94
+ declare function mempoolTransactions(args: Args$m): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
78
95
 
79
96
  type mempoolTransactions$1_MempoolTransactionsResponse = MempoolTransactionsResponse;
80
97
  declare const mempoolTransactions$1_mempoolTransactions: typeof mempoolTransactions;
@@ -82,929 +99,69 @@ declare namespace mempoolTransactions$1 {
82
99
  export { type mempoolTransactions$1_MempoolTransactionsResponse as MempoolTransactionsResponse, mempoolTransactions$1_mempoolTransactions as mempoolTransactions };
83
100
  }
84
101
 
85
- declare const baseTransactionSchema: v.ObjectSchema<{
86
- readonly tx_id: v.StringSchema<undefined>;
87
- readonly nonce: v.NumberSchema<undefined>;
88
- readonly fee_rate: v.StringSchema<undefined>;
89
- readonly sender_address: v.StringSchema<undefined>;
90
- readonly sponsored: v.BooleanSchema<undefined>;
91
- readonly post_condition_mode: v.StringSchema<undefined>;
92
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
93
- readonly anchor_mode: v.StringSchema<undefined>;
94
- readonly is_unanchored: v.BooleanSchema<undefined>;
95
- readonly block_hash: v.StringSchema<undefined>;
96
- readonly parent_block_hash: v.StringSchema<undefined>;
97
- readonly block_height: v.NumberSchema<undefined>;
98
- readonly block_time: v.NumberSchema<undefined>;
99
- readonly block_time_iso: v.StringSchema<undefined>;
100
- readonly burn_block_height: v.NumberSchema<undefined>;
101
- readonly burn_block_time: v.NumberSchema<undefined>;
102
- readonly burn_block_time_iso: v.StringSchema<undefined>;
103
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
104
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
105
- readonly canonical: v.BooleanSchema<undefined>;
106
- readonly tx_index: v.NumberSchema<undefined>;
107
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
108
- readonly tx_result: v.ObjectSchema<{
109
- readonly hex: v.StringSchema<undefined>;
110
- readonly repr: v.StringSchema<undefined>;
111
- }, undefined>;
112
- readonly microblock_hash: v.StringSchema<undefined>;
113
- readonly microblock_sequence: v.NumberSchema<undefined>;
114
- readonly microblock_canonical: v.BooleanSchema<undefined>;
115
- readonly event_count: v.NumberSchema<undefined>;
116
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
117
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
118
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
119
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
120
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
121
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
122
- }, undefined>;
123
- declare const contractCallTransactionSchema: v.ObjectSchema<{
124
- readonly tx_id: v.StringSchema<undefined>;
125
- readonly nonce: v.NumberSchema<undefined>;
126
- readonly fee_rate: v.StringSchema<undefined>;
127
- readonly sender_address: v.StringSchema<undefined>;
128
- readonly sponsored: v.BooleanSchema<undefined>;
129
- readonly post_condition_mode: v.StringSchema<undefined>;
130
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
131
- readonly anchor_mode: v.StringSchema<undefined>;
132
- readonly is_unanchored: v.BooleanSchema<undefined>;
133
- readonly block_hash: v.StringSchema<undefined>;
134
- readonly parent_block_hash: v.StringSchema<undefined>;
135
- readonly block_height: v.NumberSchema<undefined>;
136
- readonly block_time: v.NumberSchema<undefined>;
137
- readonly block_time_iso: v.StringSchema<undefined>;
138
- readonly burn_block_height: v.NumberSchema<undefined>;
139
- readonly burn_block_time: v.NumberSchema<undefined>;
140
- readonly burn_block_time_iso: v.StringSchema<undefined>;
141
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
142
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
143
- readonly canonical: v.BooleanSchema<undefined>;
144
- readonly tx_index: v.NumberSchema<undefined>;
145
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
146
- readonly tx_result: v.ObjectSchema<{
147
- readonly hex: v.StringSchema<undefined>;
148
- readonly repr: v.StringSchema<undefined>;
149
- }, undefined>;
150
- readonly microblock_hash: v.StringSchema<undefined>;
151
- readonly microblock_sequence: v.NumberSchema<undefined>;
152
- readonly microblock_canonical: v.BooleanSchema<undefined>;
153
- readonly event_count: v.NumberSchema<undefined>;
154
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
155
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
156
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
157
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
158
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
159
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
160
- readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
161
- readonly contract_call: v.ObjectSchema<{
162
- readonly contract_id: v.StringSchema<undefined>;
163
- readonly function_name: v.StringSchema<undefined>;
164
- readonly function_signature: v.StringSchema<undefined>;
165
- readonly function_args: v.ArraySchema<v.ObjectSchema<{
166
- readonly hex: v.StringSchema<undefined>;
167
- readonly repr: v.StringSchema<undefined>;
168
- readonly name: v.StringSchema<undefined>;
169
- readonly type: v.StringSchema<undefined>;
170
- }, undefined>, undefined>;
171
- }, undefined>;
172
- }, undefined>;
173
- type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
174
- declare const smartContractTransactionSchema: v.ObjectSchema<{
175
- readonly tx_id: v.StringSchema<undefined>;
176
- readonly nonce: v.NumberSchema<undefined>;
177
- readonly fee_rate: v.StringSchema<undefined>;
178
- readonly sender_address: v.StringSchema<undefined>;
179
- readonly sponsored: v.BooleanSchema<undefined>;
180
- readonly post_condition_mode: v.StringSchema<undefined>;
181
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
182
- readonly anchor_mode: v.StringSchema<undefined>;
183
- readonly is_unanchored: v.BooleanSchema<undefined>;
184
- readonly block_hash: v.StringSchema<undefined>;
185
- readonly parent_block_hash: v.StringSchema<undefined>;
186
- readonly block_height: v.NumberSchema<undefined>;
187
- readonly block_time: v.NumberSchema<undefined>;
188
- readonly block_time_iso: v.StringSchema<undefined>;
189
- readonly burn_block_height: v.NumberSchema<undefined>;
190
- readonly burn_block_time: v.NumberSchema<undefined>;
191
- readonly burn_block_time_iso: v.StringSchema<undefined>;
192
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
193
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
194
- readonly canonical: v.BooleanSchema<undefined>;
195
- readonly tx_index: v.NumberSchema<undefined>;
196
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
197
- readonly tx_result: v.ObjectSchema<{
198
- readonly hex: v.StringSchema<undefined>;
199
- readonly repr: v.StringSchema<undefined>;
200
- }, undefined>;
201
- readonly microblock_hash: v.StringSchema<undefined>;
202
- readonly microblock_sequence: v.NumberSchema<undefined>;
203
- readonly microblock_canonical: v.BooleanSchema<undefined>;
204
- readonly event_count: v.NumberSchema<undefined>;
205
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
206
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
207
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
208
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
209
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
210
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
211
- readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
212
- readonly smart_contract: v.ObjectSchema<{
213
- /**
214
- * NOTE: The types may be wrong, not sure what type of value is used when
215
- * the version is not `null`.
216
- */
217
- readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
218
- readonly contract_id: v.StringSchema<undefined>;
219
- readonly source_code: v.StringSchema<undefined>;
220
- }, undefined>;
221
- }, undefined>;
222
- type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
223
- declare const tokenTransferSchema: v.ObjectSchema<{
224
- readonly tx_id: v.StringSchema<undefined>;
225
- readonly nonce: v.NumberSchema<undefined>;
226
- readonly fee_rate: v.StringSchema<undefined>;
227
- readonly sender_address: v.StringSchema<undefined>;
228
- readonly sponsored: v.BooleanSchema<undefined>;
229
- readonly post_condition_mode: v.StringSchema<undefined>;
230
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
231
- readonly anchor_mode: v.StringSchema<undefined>;
232
- readonly is_unanchored: v.BooleanSchema<undefined>;
233
- readonly block_hash: v.StringSchema<undefined>;
234
- readonly parent_block_hash: v.StringSchema<undefined>;
235
- readonly block_height: v.NumberSchema<undefined>;
236
- readonly block_time: v.NumberSchema<undefined>;
237
- readonly block_time_iso: v.StringSchema<undefined>;
238
- readonly burn_block_height: v.NumberSchema<undefined>;
239
- readonly burn_block_time: v.NumberSchema<undefined>;
240
- readonly burn_block_time_iso: v.StringSchema<undefined>;
241
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
242
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
243
- readonly canonical: v.BooleanSchema<undefined>;
244
- readonly tx_index: v.NumberSchema<undefined>;
245
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
246
- readonly tx_result: v.ObjectSchema<{
247
- readonly hex: v.StringSchema<undefined>;
248
- readonly repr: v.StringSchema<undefined>;
249
- }, undefined>;
250
- readonly microblock_hash: v.StringSchema<undefined>;
251
- readonly microblock_sequence: v.NumberSchema<undefined>;
252
- readonly microblock_canonical: v.BooleanSchema<undefined>;
253
- readonly event_count: v.NumberSchema<undefined>;
254
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
255
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
256
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
257
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
258
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
259
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
260
- readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
261
- readonly token_transfer: v.ObjectSchema<{
262
- readonly recipient_address: v.StringSchema<undefined>;
263
- readonly amount: v.StringSchema<undefined>;
264
- readonly memo: v.StringSchema<undefined>;
265
- }, undefined>;
266
- }, undefined>;
267
- /**
268
- * Incomplete schema of some transaction types.
269
- */
270
- declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
271
- readonly tx_id: v.StringSchema<undefined>;
272
- readonly nonce: v.NumberSchema<undefined>;
273
- readonly fee_rate: v.StringSchema<undefined>;
274
- readonly sender_address: v.StringSchema<undefined>;
275
- readonly sponsored: v.BooleanSchema<undefined>;
276
- readonly post_condition_mode: v.StringSchema<undefined>;
277
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
278
- readonly anchor_mode: v.StringSchema<undefined>;
279
- readonly is_unanchored: v.BooleanSchema<undefined>;
280
- readonly block_hash: v.StringSchema<undefined>;
281
- readonly parent_block_hash: v.StringSchema<undefined>;
282
- readonly block_height: v.NumberSchema<undefined>;
283
- readonly block_time: v.NumberSchema<undefined>;
284
- readonly block_time_iso: v.StringSchema<undefined>;
285
- readonly burn_block_height: v.NumberSchema<undefined>;
286
- readonly burn_block_time: v.NumberSchema<undefined>;
287
- readonly burn_block_time_iso: v.StringSchema<undefined>;
288
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
289
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
290
- readonly canonical: v.BooleanSchema<undefined>;
291
- readonly tx_index: v.NumberSchema<undefined>;
292
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
293
- readonly tx_result: v.ObjectSchema<{
294
- readonly hex: v.StringSchema<undefined>;
295
- readonly repr: v.StringSchema<undefined>;
296
- }, undefined>;
297
- readonly microblock_hash: v.StringSchema<undefined>;
298
- readonly microblock_sequence: v.NumberSchema<undefined>;
299
- readonly microblock_canonical: v.BooleanSchema<undefined>;
300
- readonly event_count: v.NumberSchema<undefined>;
301
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
302
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
303
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
304
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
305
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
306
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
307
- readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
308
- readonly contract_call: v.ObjectSchema<{
309
- readonly contract_id: v.StringSchema<undefined>;
310
- readonly function_name: v.StringSchema<undefined>;
311
- readonly function_signature: v.StringSchema<undefined>;
312
- readonly function_args: v.ArraySchema<v.ObjectSchema<{
313
- readonly hex: v.StringSchema<undefined>;
314
- readonly repr: v.StringSchema<undefined>;
315
- readonly name: v.StringSchema<undefined>;
316
- readonly type: v.StringSchema<undefined>;
317
- }, undefined>, undefined>;
318
- }, undefined>;
319
- }, undefined>, v.ObjectSchema<{
320
- readonly tx_id: v.StringSchema<undefined>;
321
- readonly nonce: v.NumberSchema<undefined>;
322
- readonly fee_rate: v.StringSchema<undefined>;
323
- readonly sender_address: v.StringSchema<undefined>;
324
- readonly sponsored: v.BooleanSchema<undefined>;
325
- readonly post_condition_mode: v.StringSchema<undefined>;
326
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
327
- readonly anchor_mode: v.StringSchema<undefined>;
328
- readonly is_unanchored: v.BooleanSchema<undefined>;
329
- readonly block_hash: v.StringSchema<undefined>;
330
- readonly parent_block_hash: v.StringSchema<undefined>;
331
- readonly block_height: v.NumberSchema<undefined>;
332
- readonly block_time: v.NumberSchema<undefined>;
333
- readonly block_time_iso: v.StringSchema<undefined>;
334
- readonly burn_block_height: v.NumberSchema<undefined>;
335
- readonly burn_block_time: v.NumberSchema<undefined>;
336
- readonly burn_block_time_iso: v.StringSchema<undefined>;
337
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
338
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
339
- readonly canonical: v.BooleanSchema<undefined>;
340
- readonly tx_index: v.NumberSchema<undefined>;
341
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
342
- readonly tx_result: v.ObjectSchema<{
343
- readonly hex: v.StringSchema<undefined>;
344
- readonly repr: v.StringSchema<undefined>;
345
- }, undefined>;
346
- readonly microblock_hash: v.StringSchema<undefined>;
347
- readonly microblock_sequence: v.NumberSchema<undefined>;
348
- readonly microblock_canonical: v.BooleanSchema<undefined>;
349
- readonly event_count: v.NumberSchema<undefined>;
350
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
351
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
352
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
353
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
354
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
355
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
356
- readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
357
- readonly smart_contract: v.ObjectSchema<{
358
- /**
359
- * NOTE: The types may be wrong, not sure what type of value is used when
360
- * the version is not `null`.
361
- */
362
- readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
363
- readonly contract_id: v.StringSchema<undefined>;
364
- readonly source_code: v.StringSchema<undefined>;
365
- }, undefined>;
366
- }, undefined>, v.ObjectSchema<{
367
- readonly tx_id: v.StringSchema<undefined>;
368
- readonly nonce: v.NumberSchema<undefined>;
369
- readonly fee_rate: v.StringSchema<undefined>;
370
- readonly sender_address: v.StringSchema<undefined>;
371
- readonly sponsored: v.BooleanSchema<undefined>;
372
- readonly post_condition_mode: v.StringSchema<undefined>;
373
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
374
- readonly anchor_mode: v.StringSchema<undefined>;
375
- readonly is_unanchored: v.BooleanSchema<undefined>;
376
- readonly block_hash: v.StringSchema<undefined>;
377
- readonly parent_block_hash: v.StringSchema<undefined>;
378
- readonly block_height: v.NumberSchema<undefined>;
379
- readonly block_time: v.NumberSchema<undefined>;
380
- readonly block_time_iso: v.StringSchema<undefined>;
381
- readonly burn_block_height: v.NumberSchema<undefined>;
382
- readonly burn_block_time: v.NumberSchema<undefined>;
383
- readonly burn_block_time_iso: v.StringSchema<undefined>;
384
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
385
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
386
- readonly canonical: v.BooleanSchema<undefined>;
387
- readonly tx_index: v.NumberSchema<undefined>;
388
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
389
- readonly tx_result: v.ObjectSchema<{
390
- readonly hex: v.StringSchema<undefined>;
391
- readonly repr: v.StringSchema<undefined>;
392
- }, undefined>;
393
- readonly microblock_hash: v.StringSchema<undefined>;
394
- readonly microblock_sequence: v.NumberSchema<undefined>;
395
- readonly microblock_canonical: v.BooleanSchema<undefined>;
396
- readonly event_count: v.NumberSchema<undefined>;
397
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
398
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
399
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
400
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
401
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
402
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
403
- readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
404
- readonly token_transfer: v.ObjectSchema<{
405
- readonly recipient_address: v.StringSchema<undefined>;
406
- readonly amount: v.StringSchema<undefined>;
407
- readonly memo: v.StringSchema<undefined>;
408
- }, undefined>;
409
- }, undefined>], undefined>;
410
- type Transaction = v.InferOutput<typeof transactionSchema>;
411
-
412
- type schemas_ContractCallTransaction = ContractCallTransaction;
413
- type schemas_SmartContractTransaction = SmartContractTransaction;
414
- type schemas_Transaction = Transaction;
415
- declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
416
- declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
417
- declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
418
- declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
419
- declare const schemas_transactionSchema: typeof transactionSchema;
420
- declare namespace schemas {
421
- 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 };
422
- }
423
-
424
- type Args$j = {
102
+ type Args$l = {
425
103
  transactionId: string;
426
104
  } & ApiRequestOptions;
427
- declare function getTransaction(args: Args$j): Promise<Result$1<Transaction>>;
105
+ type Response$8 = OperationResponse["get_transaction_by_id"];
106
+ declare function getTransaction(args: Args$l): Promise<Result$1<Response$8>>;
428
107
 
429
108
  declare const getTransaction$1_getTransaction: typeof getTransaction;
430
109
  declare namespace getTransaction$1 {
431
110
  export { getTransaction$1_getTransaction as getTransaction };
432
111
  }
433
112
 
434
- type Args$i = {
113
+ type Args$k = {
435
114
  address: string;
115
+ transactionId: string;
436
116
  } & ApiRequestOptions & ApiPaginationOptions;
437
- declare const resultSchema: v.ObjectSchema<{
438
- readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
439
- readonly tx_id: v.StringSchema<undefined>;
440
- readonly nonce: v.NumberSchema<undefined>;
441
- readonly fee_rate: v.StringSchema<undefined>;
442
- readonly sender_address: v.StringSchema<undefined>;
443
- readonly sponsored: v.BooleanSchema<undefined>;
444
- readonly post_condition_mode: v.StringSchema<undefined>;
445
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
446
- readonly anchor_mode: v.StringSchema<undefined>;
447
- readonly is_unanchored: v.BooleanSchema<undefined>;
448
- readonly block_hash: v.StringSchema<undefined>;
449
- readonly parent_block_hash: v.StringSchema<undefined>;
450
- readonly block_height: v.NumberSchema<undefined>;
451
- readonly block_time: v.NumberSchema<undefined>;
452
- readonly block_time_iso: v.StringSchema<undefined>;
453
- readonly burn_block_height: v.NumberSchema<undefined>;
454
- readonly burn_block_time: v.NumberSchema<undefined>;
455
- readonly burn_block_time_iso: v.StringSchema<undefined>;
456
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
457
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
458
- readonly canonical: v.BooleanSchema<undefined>;
459
- readonly tx_index: v.NumberSchema<undefined>;
460
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
461
- readonly tx_result: v.ObjectSchema<{
462
- readonly hex: v.StringSchema<undefined>;
463
- readonly repr: v.StringSchema<undefined>;
464
- }, undefined>;
465
- readonly microblock_hash: v.StringSchema<undefined>;
466
- readonly microblock_sequence: v.NumberSchema<undefined>;
467
- readonly microblock_canonical: v.BooleanSchema<undefined>;
468
- readonly event_count: v.NumberSchema<undefined>;
469
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
470
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
471
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
472
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
473
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
474
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
475
- readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
476
- readonly contract_call: v.ObjectSchema<{
477
- readonly contract_id: v.StringSchema<undefined>;
478
- readonly function_name: v.StringSchema<undefined>;
479
- readonly function_signature: v.StringSchema<undefined>;
480
- readonly function_args: v.ArraySchema<v.ObjectSchema<{
481
- readonly hex: v.StringSchema<undefined>;
482
- readonly repr: v.StringSchema<undefined>;
483
- readonly name: v.StringSchema<undefined>;
484
- readonly type: v.StringSchema<undefined>;
485
- }, undefined>, undefined>;
486
- }, undefined>;
487
- }, undefined>, v.ObjectSchema<{
488
- readonly tx_id: v.StringSchema<undefined>;
489
- readonly nonce: v.NumberSchema<undefined>;
490
- readonly fee_rate: v.StringSchema<undefined>;
491
- readonly sender_address: v.StringSchema<undefined>;
492
- readonly sponsored: v.BooleanSchema<undefined>;
493
- readonly post_condition_mode: v.StringSchema<undefined>;
494
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
495
- readonly anchor_mode: v.StringSchema<undefined>;
496
- readonly is_unanchored: v.BooleanSchema<undefined>;
497
- readonly block_hash: v.StringSchema<undefined>;
498
- readonly parent_block_hash: v.StringSchema<undefined>;
499
- readonly block_height: v.NumberSchema<undefined>;
500
- readonly block_time: v.NumberSchema<undefined>;
501
- readonly block_time_iso: v.StringSchema<undefined>;
502
- readonly burn_block_height: v.NumberSchema<undefined>;
503
- readonly burn_block_time: v.NumberSchema<undefined>;
504
- readonly burn_block_time_iso: v.StringSchema<undefined>;
505
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
506
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
507
- readonly canonical: v.BooleanSchema<undefined>;
508
- readonly tx_index: v.NumberSchema<undefined>;
509
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
510
- readonly tx_result: v.ObjectSchema<{
511
- readonly hex: v.StringSchema<undefined>;
512
- readonly repr: v.StringSchema<undefined>;
513
- }, undefined>;
514
- readonly microblock_hash: v.StringSchema<undefined>;
515
- readonly microblock_sequence: v.NumberSchema<undefined>;
516
- readonly microblock_canonical: v.BooleanSchema<undefined>;
517
- readonly event_count: v.NumberSchema<undefined>;
518
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
519
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
520
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
521
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
522
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
523
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
524
- readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
525
- readonly smart_contract: v.ObjectSchema<{
526
- readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
527
- readonly contract_id: v.StringSchema<undefined>;
528
- readonly source_code: v.StringSchema<undefined>;
529
- }, undefined>;
530
- }, undefined>, v.ObjectSchema<{
531
- readonly tx_id: v.StringSchema<undefined>;
532
- readonly nonce: v.NumberSchema<undefined>;
533
- readonly fee_rate: v.StringSchema<undefined>;
534
- readonly sender_address: v.StringSchema<undefined>;
535
- readonly sponsored: v.BooleanSchema<undefined>;
536
- readonly post_condition_mode: v.StringSchema<undefined>;
537
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
538
- readonly anchor_mode: v.StringSchema<undefined>;
539
- readonly is_unanchored: v.BooleanSchema<undefined>;
540
- readonly block_hash: v.StringSchema<undefined>;
541
- readonly parent_block_hash: v.StringSchema<undefined>;
542
- readonly block_height: v.NumberSchema<undefined>;
543
- readonly block_time: v.NumberSchema<undefined>;
544
- readonly block_time_iso: v.StringSchema<undefined>;
545
- readonly burn_block_height: v.NumberSchema<undefined>;
546
- readonly burn_block_time: v.NumberSchema<undefined>;
547
- readonly burn_block_time_iso: v.StringSchema<undefined>;
548
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
549
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
550
- readonly canonical: v.BooleanSchema<undefined>;
551
- readonly tx_index: v.NumberSchema<undefined>;
552
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
553
- readonly tx_result: v.ObjectSchema<{
554
- readonly hex: v.StringSchema<undefined>;
555
- readonly repr: v.StringSchema<undefined>;
556
- }, undefined>;
557
- readonly microblock_hash: v.StringSchema<undefined>;
558
- readonly microblock_sequence: v.NumberSchema<undefined>;
559
- readonly microblock_canonical: v.BooleanSchema<undefined>;
560
- readonly event_count: v.NumberSchema<undefined>;
561
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
562
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
563
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
564
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
565
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
566
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
567
- readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
568
- readonly token_transfer: v.ObjectSchema<{
569
- readonly recipient_address: v.StringSchema<undefined>;
570
- readonly amount: v.StringSchema<undefined>;
571
- readonly memo: v.StringSchema<undefined>;
572
- }, undefined>;
573
- }, undefined>], undefined>;
574
- readonly stx_sent: v.StringSchema<undefined>;
575
- readonly stx_received: v.StringSchema<undefined>;
576
- readonly events: v.ObjectSchema<{
577
- readonly stx: v.ObjectSchema<{
578
- readonly transfer: v.NumberSchema<undefined>;
579
- readonly mint: v.NumberSchema<undefined>;
580
- readonly burn: v.NumberSchema<undefined>;
581
- }, undefined>;
582
- readonly ft: v.ObjectSchema<{
583
- readonly transfer: v.NumberSchema<undefined>;
584
- readonly mint: v.NumberSchema<undefined>;
585
- readonly burn: v.NumberSchema<undefined>;
586
- }, undefined>;
587
- readonly nft: v.ObjectSchema<{
588
- readonly transfer: v.NumberSchema<undefined>;
589
- readonly mint: v.NumberSchema<undefined>;
590
- readonly burn: v.NumberSchema<undefined>;
591
- }, undefined>;
592
- }, undefined>;
593
- }, undefined>;
594
- type Result = v.InferOutput<typeof resultSchema>;
595
- declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
596
- readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
597
- readonly tx_id: v.StringSchema<undefined>;
598
- readonly nonce: v.NumberSchema<undefined>;
599
- readonly fee_rate: v.StringSchema<undefined>;
600
- readonly sender_address: v.StringSchema<undefined>;
601
- readonly sponsored: v.BooleanSchema<undefined>;
602
- readonly post_condition_mode: v.StringSchema<undefined>;
603
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
604
- readonly anchor_mode: v.StringSchema<undefined>;
605
- readonly is_unanchored: v.BooleanSchema<undefined>;
606
- readonly block_hash: v.StringSchema<undefined>;
607
- readonly parent_block_hash: v.StringSchema<undefined>;
608
- readonly block_height: v.NumberSchema<undefined>;
609
- readonly block_time: v.NumberSchema<undefined>;
610
- readonly block_time_iso: v.StringSchema<undefined>;
611
- readonly burn_block_height: v.NumberSchema<undefined>;
612
- readonly burn_block_time: v.NumberSchema<undefined>;
613
- readonly burn_block_time_iso: v.StringSchema<undefined>;
614
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
615
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
616
- readonly canonical: v.BooleanSchema<undefined>;
617
- readonly tx_index: v.NumberSchema<undefined>;
618
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
619
- readonly tx_result: v.ObjectSchema<{
620
- readonly hex: v.StringSchema<undefined>;
621
- readonly repr: v.StringSchema<undefined>;
622
- }, undefined>;
623
- readonly microblock_hash: v.StringSchema<undefined>;
624
- readonly microblock_sequence: v.NumberSchema<undefined>;
625
- readonly microblock_canonical: v.BooleanSchema<undefined>;
626
- readonly event_count: v.NumberSchema<undefined>;
627
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
628
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
629
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
630
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
631
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
632
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
633
- readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
634
- readonly contract_call: v.ObjectSchema<{
635
- readonly contract_id: v.StringSchema<undefined>;
636
- readonly function_name: v.StringSchema<undefined>;
637
- readonly function_signature: v.StringSchema<undefined>;
638
- readonly function_args: v.ArraySchema<v.ObjectSchema<{
639
- readonly hex: v.StringSchema<undefined>;
640
- readonly repr: v.StringSchema<undefined>;
641
- readonly name: v.StringSchema<undefined>;
642
- readonly type: v.StringSchema<undefined>;
643
- }, undefined>, undefined>;
644
- }, undefined>;
645
- }, undefined>, v.ObjectSchema<{
646
- readonly tx_id: v.StringSchema<undefined>;
647
- readonly nonce: v.NumberSchema<undefined>;
648
- readonly fee_rate: v.StringSchema<undefined>;
649
- readonly sender_address: v.StringSchema<undefined>;
650
- readonly sponsored: v.BooleanSchema<undefined>;
651
- readonly post_condition_mode: v.StringSchema<undefined>;
652
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
653
- readonly anchor_mode: v.StringSchema<undefined>;
654
- readonly is_unanchored: v.BooleanSchema<undefined>;
655
- readonly block_hash: v.StringSchema<undefined>;
656
- readonly parent_block_hash: v.StringSchema<undefined>;
657
- readonly block_height: v.NumberSchema<undefined>;
658
- readonly block_time: v.NumberSchema<undefined>;
659
- readonly block_time_iso: v.StringSchema<undefined>;
660
- readonly burn_block_height: v.NumberSchema<undefined>;
661
- readonly burn_block_time: v.NumberSchema<undefined>;
662
- readonly burn_block_time_iso: v.StringSchema<undefined>;
663
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
664
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
665
- readonly canonical: v.BooleanSchema<undefined>;
666
- readonly tx_index: v.NumberSchema<undefined>;
667
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
668
- readonly tx_result: v.ObjectSchema<{
669
- readonly hex: v.StringSchema<undefined>;
670
- readonly repr: v.StringSchema<undefined>;
671
- }, undefined>;
672
- readonly microblock_hash: v.StringSchema<undefined>;
673
- readonly microblock_sequence: v.NumberSchema<undefined>;
674
- readonly microblock_canonical: v.BooleanSchema<undefined>;
675
- readonly event_count: v.NumberSchema<undefined>;
676
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
677
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
678
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
679
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
680
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
681
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
682
- readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
683
- readonly smart_contract: v.ObjectSchema<{
684
- readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
685
- readonly contract_id: v.StringSchema<undefined>;
686
- readonly source_code: v.StringSchema<undefined>;
687
- }, undefined>;
688
- }, undefined>, v.ObjectSchema<{
689
- readonly tx_id: v.StringSchema<undefined>;
690
- readonly nonce: v.NumberSchema<undefined>;
691
- readonly fee_rate: v.StringSchema<undefined>;
692
- readonly sender_address: v.StringSchema<undefined>;
693
- readonly sponsored: v.BooleanSchema<undefined>;
694
- readonly post_condition_mode: v.StringSchema<undefined>;
695
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
696
- readonly anchor_mode: v.StringSchema<undefined>;
697
- readonly is_unanchored: v.BooleanSchema<undefined>;
698
- readonly block_hash: v.StringSchema<undefined>;
699
- readonly parent_block_hash: v.StringSchema<undefined>;
700
- readonly block_height: v.NumberSchema<undefined>;
701
- readonly block_time: v.NumberSchema<undefined>;
702
- readonly block_time_iso: v.StringSchema<undefined>;
703
- readonly burn_block_height: v.NumberSchema<undefined>;
704
- readonly burn_block_time: v.NumberSchema<undefined>;
705
- readonly burn_block_time_iso: v.StringSchema<undefined>;
706
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
707
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
708
- readonly canonical: v.BooleanSchema<undefined>;
709
- readonly tx_index: v.NumberSchema<undefined>;
710
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
711
- readonly tx_result: v.ObjectSchema<{
712
- readonly hex: v.StringSchema<undefined>;
713
- readonly repr: v.StringSchema<undefined>;
714
- }, undefined>;
715
- readonly microblock_hash: v.StringSchema<undefined>;
716
- readonly microblock_sequence: v.NumberSchema<undefined>;
717
- readonly microblock_canonical: v.BooleanSchema<undefined>;
718
- readonly event_count: v.NumberSchema<undefined>;
719
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
720
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
721
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
722
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
723
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
724
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
725
- readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
726
- readonly token_transfer: v.ObjectSchema<{
727
- readonly recipient_address: v.StringSchema<undefined>;
728
- readonly amount: v.StringSchema<undefined>;
729
- readonly memo: v.StringSchema<undefined>;
730
- }, undefined>;
731
- }, undefined>], undefined>;
732
- readonly stx_sent: v.StringSchema<undefined>;
733
- readonly stx_received: v.StringSchema<undefined>;
734
- readonly events: v.ObjectSchema<{
735
- readonly stx: v.ObjectSchema<{
736
- readonly transfer: v.NumberSchema<undefined>;
737
- readonly mint: v.NumberSchema<undefined>;
738
- readonly burn: v.NumberSchema<undefined>;
739
- }, undefined>;
740
- readonly ft: v.ObjectSchema<{
741
- readonly transfer: v.NumberSchema<undefined>;
742
- readonly mint: v.NumberSchema<undefined>;
743
- readonly burn: v.NumberSchema<undefined>;
744
- }, undefined>;
745
- readonly nft: v.ObjectSchema<{
746
- readonly transfer: v.NumberSchema<undefined>;
747
- readonly mint: v.NumberSchema<undefined>;
748
- readonly burn: v.NumberSchema<undefined>;
749
- }, undefined>;
750
- }, undefined>;
751
- }, undefined>, undefined>;
752
- type Results$3 = v.InferOutput<typeof resultsSchema$3>;
753
- declare const addressTransactionsResponseSchema: v.ObjectSchema<{
754
- readonly results: v.ArraySchema<v.ObjectSchema<{
755
- readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
756
- readonly tx_id: v.StringSchema<undefined>;
757
- readonly nonce: v.NumberSchema<undefined>;
758
- readonly fee_rate: v.StringSchema<undefined>;
759
- readonly sender_address: v.StringSchema<undefined>;
760
- readonly sponsored: v.BooleanSchema<undefined>;
761
- readonly post_condition_mode: v.StringSchema<undefined>;
762
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
763
- readonly anchor_mode: v.StringSchema<undefined>;
764
- readonly is_unanchored: v.BooleanSchema<undefined>;
765
- readonly block_hash: v.StringSchema<undefined>;
766
- readonly parent_block_hash: v.StringSchema<undefined>;
767
- readonly block_height: v.NumberSchema<undefined>;
768
- readonly block_time: v.NumberSchema<undefined>;
769
- readonly block_time_iso: v.StringSchema<undefined>;
770
- readonly burn_block_height: v.NumberSchema<undefined>;
771
- readonly burn_block_time: v.NumberSchema<undefined>;
772
- readonly burn_block_time_iso: v.StringSchema<undefined>;
773
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
774
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
775
- readonly canonical: v.BooleanSchema<undefined>;
776
- readonly tx_index: v.NumberSchema<undefined>;
777
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
778
- readonly tx_result: v.ObjectSchema<{
779
- readonly hex: v.StringSchema<undefined>;
780
- readonly repr: v.StringSchema<undefined>;
781
- }, undefined>;
782
- readonly microblock_hash: v.StringSchema<undefined>;
783
- readonly microblock_sequence: v.NumberSchema<undefined>;
784
- readonly microblock_canonical: v.BooleanSchema<undefined>;
785
- readonly event_count: v.NumberSchema<undefined>;
786
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
787
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
788
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
789
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
790
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
791
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
792
- readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
793
- readonly contract_call: v.ObjectSchema<{
794
- readonly contract_id: v.StringSchema<undefined>;
795
- readonly function_name: v.StringSchema<undefined>;
796
- readonly function_signature: v.StringSchema<undefined>;
797
- readonly function_args: v.ArraySchema<v.ObjectSchema<{
798
- readonly hex: v.StringSchema<undefined>;
799
- readonly repr: v.StringSchema<undefined>;
800
- readonly name: v.StringSchema<undefined>;
801
- readonly type: v.StringSchema<undefined>;
802
- }, undefined>, undefined>;
803
- }, undefined>;
804
- }, undefined>, v.ObjectSchema<{
805
- readonly tx_id: v.StringSchema<undefined>;
806
- readonly nonce: v.NumberSchema<undefined>;
807
- readonly fee_rate: v.StringSchema<undefined>;
808
- readonly sender_address: v.StringSchema<undefined>;
809
- readonly sponsored: v.BooleanSchema<undefined>;
810
- readonly post_condition_mode: v.StringSchema<undefined>;
811
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
812
- readonly anchor_mode: v.StringSchema<undefined>;
813
- readonly is_unanchored: v.BooleanSchema<undefined>;
814
- readonly block_hash: v.StringSchema<undefined>;
815
- readonly parent_block_hash: v.StringSchema<undefined>;
816
- readonly block_height: v.NumberSchema<undefined>;
817
- readonly block_time: v.NumberSchema<undefined>;
818
- readonly block_time_iso: v.StringSchema<undefined>;
819
- readonly burn_block_height: v.NumberSchema<undefined>;
820
- readonly burn_block_time: v.NumberSchema<undefined>;
821
- readonly burn_block_time_iso: v.StringSchema<undefined>;
822
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
823
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
824
- readonly canonical: v.BooleanSchema<undefined>;
825
- readonly tx_index: v.NumberSchema<undefined>;
826
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
827
- readonly tx_result: v.ObjectSchema<{
828
- readonly hex: v.StringSchema<undefined>;
829
- readonly repr: v.StringSchema<undefined>;
830
- }, undefined>;
831
- readonly microblock_hash: v.StringSchema<undefined>;
832
- readonly microblock_sequence: v.NumberSchema<undefined>;
833
- readonly microblock_canonical: v.BooleanSchema<undefined>;
834
- readonly event_count: v.NumberSchema<undefined>;
835
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
836
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
837
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
838
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
839
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
840
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
841
- readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
842
- readonly smart_contract: v.ObjectSchema<{
843
- readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
844
- readonly contract_id: v.StringSchema<undefined>;
845
- readonly source_code: v.StringSchema<undefined>;
846
- }, undefined>;
847
- }, undefined>, v.ObjectSchema<{
848
- readonly tx_id: v.StringSchema<undefined>;
849
- readonly nonce: v.NumberSchema<undefined>;
850
- readonly fee_rate: v.StringSchema<undefined>;
851
- readonly sender_address: v.StringSchema<undefined>;
852
- readonly sponsored: v.BooleanSchema<undefined>;
853
- readonly post_condition_mode: v.StringSchema<undefined>;
854
- readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
855
- readonly anchor_mode: v.StringSchema<undefined>;
856
- readonly is_unanchored: v.BooleanSchema<undefined>;
857
- readonly block_hash: v.StringSchema<undefined>;
858
- readonly parent_block_hash: v.StringSchema<undefined>;
859
- readonly block_height: v.NumberSchema<undefined>;
860
- readonly block_time: v.NumberSchema<undefined>;
861
- readonly block_time_iso: v.StringSchema<undefined>;
862
- readonly burn_block_height: v.NumberSchema<undefined>;
863
- readonly burn_block_time: v.NumberSchema<undefined>;
864
- readonly burn_block_time_iso: v.StringSchema<undefined>;
865
- readonly parent_burn_block_time: v.NumberSchema<undefined>;
866
- readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
867
- readonly canonical: v.BooleanSchema<undefined>;
868
- readonly tx_index: v.NumberSchema<undefined>;
869
- readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
870
- readonly tx_result: v.ObjectSchema<{
871
- readonly hex: v.StringSchema<undefined>;
872
- readonly repr: v.StringSchema<undefined>;
873
- }, undefined>;
874
- readonly microblock_hash: v.StringSchema<undefined>;
875
- readonly microblock_sequence: v.NumberSchema<undefined>;
876
- readonly microblock_canonical: v.BooleanSchema<undefined>;
877
- readonly event_count: v.NumberSchema<undefined>;
878
- readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
879
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
880
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
881
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
882
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
883
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
884
- readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
885
- readonly token_transfer: v.ObjectSchema<{
886
- readonly recipient_address: v.StringSchema<undefined>;
887
- readonly amount: v.StringSchema<undefined>;
888
- readonly memo: v.StringSchema<undefined>;
889
- }, undefined>;
890
- }, undefined>], undefined>;
891
- readonly stx_sent: v.StringSchema<undefined>;
892
- readonly stx_received: v.StringSchema<undefined>;
893
- readonly events: v.ObjectSchema<{
894
- readonly stx: v.ObjectSchema<{
895
- readonly transfer: v.NumberSchema<undefined>;
896
- readonly mint: v.NumberSchema<undefined>;
897
- readonly burn: v.NumberSchema<undefined>;
898
- }, undefined>;
899
- readonly ft: v.ObjectSchema<{
900
- readonly transfer: v.NumberSchema<undefined>;
901
- readonly mint: v.NumberSchema<undefined>;
902
- readonly burn: v.NumberSchema<undefined>;
903
- }, undefined>;
904
- readonly nft: v.ObjectSchema<{
905
- readonly transfer: v.NumberSchema<undefined>;
906
- readonly mint: v.NumberSchema<undefined>;
907
- readonly burn: v.NumberSchema<undefined>;
908
- }, undefined>;
909
- }, undefined>;
910
- }, undefined>, undefined>;
911
- readonly limit: v.NumberSchema<undefined>;
912
- readonly offset: v.NumberSchema<undefined>;
913
- readonly total: v.NumberSchema<undefined>;
914
- }, undefined>;
915
- type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
916
- declare function addressTransactions(args: Args$i): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
117
+ type Response$7 = OperationResponse["/extended/v2/addresses/{address}/transactions/{tx_id}/events"];
118
+ declare function eventsForAnAddressTransaction(args: Args$k): Promise<Result$1<Response$7>>;
119
+
120
+ declare const eventsForAnAddressTransaction$1_eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
121
+ declare namespace eventsForAnAddressTransaction$1 {
122
+ export { eventsForAnAddressTransaction$1_eventsForAnAddressTransaction as eventsForAnAddressTransaction };
123
+ }
124
+
125
+ type Args$j = {
126
+ address: string;
127
+ } & ApiRequestOptions & ApiPaginationOptions;
128
+ type Result = OperationResponse["/extended/v2/addresses/{address}/transactions"];
129
+ declare function addressTransactions(args: Args$j): Promise<Result$1<Result, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
917
130
 
918
- type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
919
131
  type addressTransactions$1_Result = Result;
920
132
  declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
921
133
  declare namespace addressTransactions$1 {
922
- export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
134
+ export { type addressTransactions$1_Result as Result, addressTransactions$1_addressTransactions as addressTransactions };
923
135
  }
924
136
 
925
- type Args$h = {
137
+ type Args$i = {
926
138
  poolPrincipal: string;
927
- afterBlock?: number;
139
+ afterBlock?: string | number | bigint;
928
140
  unanchored?: boolean;
929
141
  limit?: number;
930
142
  offset?: number;
931
143
  } & ApiRequestOptions & ApiPaginationOptions;
932
- declare const memberSchema: v.ObjectSchema<{
933
- readonly stacker: v.StringSchema<undefined>;
934
- readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
935
- readonly amount_ustx: v.StringSchema<undefined>;
936
- readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
937
- readonly block_height: v.NumberSchema<undefined>;
938
- readonly tx_id: v.StringSchema<undefined>;
939
- }, undefined>;
940
- type Member = v.InferOutput<typeof memberSchema>;
941
- declare const membersResponseSchema: v.ObjectSchema<{
942
- readonly limit: v.NumberSchema<undefined>;
943
- readonly offset: v.NumberSchema<undefined>;
944
- readonly total: v.NumberSchema<undefined>;
945
- readonly results: v.ArraySchema<v.ObjectSchema<{
946
- readonly stacker: v.StringSchema<undefined>;
947
- readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
948
- readonly amount_ustx: v.StringSchema<undefined>;
949
- readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
950
- readonly block_height: v.NumberSchema<undefined>;
951
- readonly tx_id: v.StringSchema<undefined>;
952
- }, undefined>, undefined>;
953
- }, undefined>;
954
- type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
955
- declare function members(args: Args$h): Promise<Result$1<MembersResponse>>;
144
+ type Response$6 = OperationResponse["get_pool_delegations"];
145
+ declare function members(args: Args$i): Promise<Result$1<Response$6>>;
956
146
 
957
- type members$1_Member = Member;
958
- type members$1_MembersResponse = MembersResponse;
959
- declare const members$1_memberSchema: typeof memberSchema;
960
147
  declare const members$1_members: typeof members;
961
- declare const members$1_membersResponseSchema: typeof membersResponseSchema;
962
148
  declare namespace members$1 {
963
- export { type Args$h 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 };
149
+ export { type Args$i as Args, type Response$6 as Response, members$1_members as members };
964
150
  }
965
151
 
966
- type Args$g = {
967
- cycleNumber: number;
152
+ type Args$h = {
153
+ cycleNumber: string | number | bigint;
968
154
  signerPublicKey: string;
969
155
  } & ApiRequestOptions & ApiPaginationOptions;
970
- declare const stackerInfoSchema: v.ObjectSchema<{
971
- readonly stacker_address: v.StringSchema<undefined>;
972
- readonly stacked_amount: v.StringSchema<undefined>;
973
- readonly pox_address: v.StringSchema<undefined>;
974
- readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
975
- }, undefined>;
976
- type StackerInfo = v.InferOutput<typeof stackerInfoSchema>;
977
- declare const resultsSchema$2: v.ArraySchema<v.ObjectSchema<{
978
- readonly stacker_address: v.StringSchema<undefined>;
979
- readonly stacked_amount: v.StringSchema<undefined>;
980
- readonly pox_address: v.StringSchema<undefined>;
981
- readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
982
- }, undefined>, undefined>;
983
- type Results$2 = v.InferOutput<typeof resultsSchema$2>;
984
- declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
985
- readonly results: v.ArraySchema<v.ObjectSchema<{
986
- readonly stacker_address: v.StringSchema<undefined>;
987
- readonly stacked_amount: v.StringSchema<undefined>;
988
- readonly pox_address: v.StringSchema<undefined>;
989
- readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
990
- }, undefined>, undefined>;
991
- readonly limit: v.NumberSchema<undefined>;
992
- readonly offset: v.NumberSchema<undefined>;
993
- readonly total: v.NumberSchema<undefined>;
994
- }, undefined>;
995
- type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
996
- declare function stackersForSignerInCycle(opts: Args$g): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
156
+ type Response$5 = OperationResponse["get_pox_cycle_signer_stackers"];
157
+ declare function stackersForSignerInCycle(opts: Args$h): Promise<Result$1<Response$5, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError">>>;
997
158
 
998
- type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
999
- type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
1000
- declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
1001
159
  declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
1002
- declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
1003
160
  declare namespace stackersForSignerInCycle$1 {
1004
- export { type Args$g 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 };
161
+ export { type Args$h as Args, type Response$5 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
1005
162
  }
1006
163
 
1007
- type Args$f = {
164
+ type Args$g = {
1008
165
  cycleNumber: number;
1009
166
  } & ApiRequestOptions & ApiPaginationOptions;
1010
167
  declare const signerSchema: v.ObjectSchema<{
@@ -1045,7 +202,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
1045
202
  readonly total: v.NumberSchema<undefined>;
1046
203
  }, undefined>;
1047
204
  type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
1048
- declare function signersInCycle(args: Args$f): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
205
+ declare function signersInCycle(args: Args$g): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
1049
206
 
1050
207
  type signersInCycle$1_Signer = Signer;
1051
208
  type signersInCycle$1_SignersResponse = SignersResponse;
@@ -1053,10 +210,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
1053
210
  declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
1054
211
  declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
1055
212
  declare namespace signersInCycle$1 {
1056
- export { type Args$f 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 };
213
+ export { type Args$g 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 };
1057
214
  }
1058
215
 
1059
- type Args$e = {
216
+ type Args$f = {
1060
217
  /**
1061
218
  * The signers public key as a hex string, with or without a '0x' prefix.
1062
219
  */
@@ -1074,16 +231,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
1074
231
  readonly pooled_stacker_count: v.NumberSchema<undefined>;
1075
232
  }, undefined>;
1076
233
  type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
1077
- declare function signerInCycle(args: Args$e): Promise<Result$1<SignerInCycleResponse>>;
234
+ declare function signerInCycle(args: Args$f): Promise<Result$1<SignerInCycleResponse>>;
1078
235
 
1079
236
  type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
1080
237
  declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
1081
238
  declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
1082
239
  declare namespace signerInCycle$1 {
1083
- export { type Args$e as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
240
+ export { type Args$f as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
1084
241
  }
1085
242
 
1086
- type Args$d = ApiRequestOptions & ApiPaginationOptions;
243
+ type Args$e = ApiRequestOptions & ApiPaginationOptions;
1087
244
  declare const cycleInfoSchema: v.ObjectSchema<{
1088
245
  readonly block_height: v.NumberSchema<undefined>;
1089
246
  readonly index_block_hash: v.StringSchema<undefined>;
@@ -1116,7 +273,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
1116
273
  readonly total: v.NumberSchema<undefined>;
1117
274
  }, undefined>;
1118
275
  type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
1119
- declare function cycles(args: Args$d): Promise<Result$1<CyclesResponse>>;
276
+ declare function cycles(args: Args$e): Promise<Result$1<CyclesResponse>>;
1120
277
 
1121
278
  type cycles$1_CycleInfo = CycleInfo;
1122
279
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -1126,13 +283,13 @@ declare const cycles$1_cycles: typeof cycles;
1126
283
  declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
1127
284
  declare const cycles$1_resultsSchema: typeof resultsSchema;
1128
285
  declare namespace cycles$1 {
1129
- export { type Args$d 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 };
286
+ export { type Args$e 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 };
1130
287
  }
1131
288
 
1132
- type Args$c = {
289
+ type Args$d = {
1133
290
  cycleNumber: number;
1134
291
  } & ApiRequestOptions;
1135
- declare const responseSchema$2: v.ObjectSchema<{
292
+ declare const responseSchema$1: v.ObjectSchema<{
1136
293
  readonly block_height: v.NumberSchema<undefined>;
1137
294
  readonly index_block_hash: v.StringSchema<undefined>;
1138
295
  readonly cycle_number: v.NumberSchema<undefined>;
@@ -1140,12 +297,12 @@ declare const responseSchema$2: v.ObjectSchema<{
1140
297
  readonly total_stacked_amount: v.StringSchema<undefined>;
1141
298
  readonly total_signers: v.NumberSchema<undefined>;
1142
299
  }, undefined>;
1143
- type Response$2 = v.InferOutput<typeof responseSchema$2>;
1144
- declare function cycle(opts: Args$c): Promise<Result$1<Response$2, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
300
+ type Response$4 = v.InferOutput<typeof responseSchema$1>;
301
+ declare function cycle(opts: Args$d): Promise<Result$1<Response$4, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
1145
302
 
1146
303
  declare const cycle$1_cycle: typeof cycle;
1147
304
  declare namespace cycle$1 {
1148
- export { type Args$c as Args, type Response$2 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
305
+ export { type Args$d as Args, type Response$4 as Response, cycle$1_cycle as cycle, responseSchema$1 as responseSchema };
1149
306
  }
1150
307
 
1151
308
  type FeePrioritiesResponse = {
@@ -1194,9 +351,9 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
1194
351
  readonly stacks_tip_height: v.NumberSchema<undefined>;
1195
352
  readonly stacks_tip: v.StringSchema<undefined>;
1196
353
  readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
1197
- readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, never>;
1198
- readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, never>;
1199
- readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, never>;
354
+ readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, undefined>;
355
+ readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, undefined>;
356
+ readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
1200
357
  }, undefined>;
1201
358
  type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
1202
359
  declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
@@ -1207,67 +364,56 @@ declare namespace coreApi$1 {
1207
364
  export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
1208
365
  }
1209
366
 
1210
- type Args$b = {
367
+ type Args$c = {
1211
368
  address: string;
1212
369
  stacking?: boolean;
1213
370
  } & ApiRequestOptions;
1214
- declare function stx(opts: Args$b): Promise<Result$1<any>>;
371
+ declare function stx(opts: Args$c): Promise<Result$1<any>>;
1215
372
 
1216
373
  declare const stx$1_stx: typeof stx;
1217
374
  declare namespace stx$1 {
1218
- export { type Args$b as Args, stx$1_stx as stx };
375
+ export { type Args$c as Args, stx$1_stx as stx };
376
+ }
377
+
378
+ type Args$b = {
379
+ heightOrHash: string | number | bigint;
380
+ } & ApiRequestOptions;
381
+ type Response$3 = OperationResponse["get_burn_block"];
382
+ declare function getBurnBlock(args: Args$b): Promise<Result$1<Response$3>>;
383
+
384
+ declare const getBurnBlock$1_getBurnBlock: typeof getBurnBlock;
385
+ declare namespace getBurnBlock$1 {
386
+ export { type Args$b as Args, type Response$3 as Response, getBurnBlock$1_getBurnBlock as getBurnBlock };
1219
387
  }
1220
388
 
1221
389
  type Args$a = {
1222
390
  heightOrHash: string | number;
1223
391
  } & ApiRequestOptions;
1224
- declare const responseSchema$1: v.ObjectSchema<{
1225
- readonly canonical: v.BooleanSchema<undefined>;
1226
- readonly height: v.NumberSchema<undefined>;
1227
- readonly hash: v.StringSchema<undefined>;
1228
- readonly block_time: v.NumberSchema<undefined>;
1229
- readonly block_time_iso: v.StringSchema<undefined>;
1230
- readonly index_block_hash: v.StringSchema<undefined>;
1231
- readonly parent_block_hash: v.StringSchema<undefined>;
1232
- readonly parent_index_block_hash: v.StringSchema<undefined>;
1233
- readonly burn_block_time: v.NumberSchema<undefined>;
1234
- readonly burn_block_time_iso: v.StringSchema<undefined>;
1235
- readonly burn_block_hash: v.StringSchema<undefined>;
1236
- readonly burn_block_height: v.NumberSchema<undefined>;
1237
- readonly miner_txid: v.StringSchema<undefined>;
1238
- readonly tx_count: v.NumberSchema<undefined>;
1239
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
1240
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
1241
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
1242
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
1243
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
1244
- }, undefined>;
1245
- type Response$1 = v.InferOutput<typeof responseSchema$1>;
1246
- declare function getBlock(opts: Args$a): Promise<Result$1<Response$1, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
392
+ type Response$2 = OperationResponse["get_block"];
393
+ declare function getBlock(opts: Args$a): Promise<Result$1<Response$2>>;
1247
394
 
1248
395
  declare const getBlock$1_getBlock: typeof getBlock;
1249
396
  declare namespace getBlock$1 {
1250
- export { type Args$a as Args, type Response$1 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
397
+ export { type Args$a as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock };
1251
398
  }
1252
399
 
1253
400
  type Args$9 = {
1254
401
  principal: string;
1255
402
  } & ApiRequestOptions;
1256
403
  declare const responseSchema: v.ObjectSchema<{
1257
- readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
1258
- readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
404
+ readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
405
+ readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
1259
406
  readonly possible_next_nonce: v.NumberSchema<undefined>;
1260
407
  readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1261
408
  readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
1262
409
  }, undefined>;
1263
- type Response = v.InferOutput<typeof responseSchema>;
1264
- declare function latestNonce(opts: Args$9): Promise<Result$1<Response, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
410
+ type Response$1 = v.InferOutput<typeof responseSchema>;
411
+ declare function latestNonce(opts: Args$9): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
1265
412
 
1266
- type latestNonce$1_Response = Response;
1267
413
  declare const latestNonce$1_latestNonce: typeof latestNonce;
1268
414
  declare const latestNonce$1_responseSchema: typeof responseSchema;
1269
415
  declare namespace latestNonce$1 {
1270
- export { type Args$9 as Args, type latestNonce$1_Response as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
416
+ export { type Args$9 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
1271
417
  }
1272
418
 
1273
419
  type Args$8 = {
@@ -1287,18 +433,27 @@ declare const accounts: {
1287
433
  latestNonce: typeof latestNonce;
1288
434
  };
1289
435
 
1290
- declare const index$e_accounts: typeof accounts;
1291
- declare namespace index$e {
1292
- export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$e_accounts as accounts };
436
+ declare const index$f_accounts: typeof accounts;
437
+ declare namespace index$f {
438
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$f_accounts as accounts };
1293
439
  }
1294
440
 
1295
441
  declare const blocks: {
1296
442
  getBlock: typeof getBlock;
1297
443
  };
1298
444
 
1299
- declare const index$d_blocks: typeof blocks;
445
+ declare const index$e_blocks: typeof blocks;
446
+ declare namespace index$e {
447
+ export { getBlock$1 as GetBlock, index$e_blocks as blocks };
448
+ }
449
+
450
+ declare const burnBlocks: {
451
+ getBurnBlock: typeof getBurnBlock;
452
+ };
453
+
454
+ declare const index$d_burnBlocks: typeof burnBlocks;
1300
455
  declare namespace index$d {
1301
- export { getBlock$1 as GetBlock, index$d_blocks as blocks };
456
+ export { getBurnBlock$1 as GetBurnBlock, index$d_burnBlocks as burnBlocks };
1302
457
  }
1303
458
 
1304
459
  declare const faucets: {
@@ -1343,13 +498,15 @@ declare namespace index$9 {
1343
498
 
1344
499
  declare const transactions: {
1345
500
  addressTransactions: typeof addressTransactions;
501
+ eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
1346
502
  getTransaction: typeof getTransaction;
1347
503
  mempoolTransactions: typeof mempoolTransactions;
504
+ getRawTransaction: typeof getRawTransaction;
1348
505
  };
1349
506
 
1350
507
  declare const index$8_transactions: typeof transactions;
1351
508
  declare namespace index$8 {
1352
- export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, mempoolTransactions$1 as MempoolTransactions, index$8_transactions as transactions };
509
+ export { addressTransactions$1 as AddressTransactions, eventsForAnAddressTransaction$1 as EventsForAnAddressTransaction, getRawTransaction$1 as GetRawTransaction, getTransaction$1 as GetTransaction, mempoolTransactions$1 as MempoolTransactions, index$8_transactions as transactions };
1353
510
  }
1354
511
 
1355
512
  declare const mempool: {
@@ -1369,6 +526,9 @@ declare const stacksApi: {
1369
526
  blocks: {
1370
527
  getBlock: typeof getBlock;
1371
528
  };
529
+ burnBlocks: {
530
+ getBurnBlock: typeof getBurnBlock;
531
+ };
1372
532
  faucets: {
1373
533
  stx: typeof stx;
1374
534
  };
@@ -1390,14 +550,16 @@ declare const stacksApi: {
1390
550
  };
1391
551
  transactions: {
1392
552
  addressTransactions: typeof addressTransactions;
553
+ eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
1393
554
  getTransaction: typeof getTransaction;
1394
555
  mempoolTransactions: typeof mempoolTransactions;
556
+ getRawTransaction: typeof getRawTransaction;
1395
557
  };
1396
558
  };
1397
559
 
1398
560
  declare const index$6_stacksApi: typeof stacksApi;
1399
561
  declare namespace index$6 {
1400
- export { index$e as Accounts, index$d as Blocks, index$c as Faucets, index$b as Info, index$7 as Mempool, index$a as ProofOfTransfer, index$9 as StackingPool, index$8 as Transactions, index$6_stacksApi as stacksApi };
562
+ export { index$f as Accounts, index$e as Blocks, index$d as BurnBlocks, index$c as Faucets, index$b as Info, index$7 as Mempool, index$a as ProofOfTransfer, index$9 as StackingPool, index$8 as Transactions, index$6_stacksApi as stacksApi };
1401
563
  }
1402
564
 
1403
565
  type Args$7 = {
@@ -1442,7 +604,7 @@ declare const mapEntryResponseSchema: v.ObjectSchema<{
1442
604
  /**
1443
605
  * Hex-encoded string of the MARF proof for the data
1444
606
  */
1445
- readonly proof: v.OptionalSchema<v.StringSchema<undefined>, never>;
607
+ readonly proof: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1446
608
  }, undefined>;
1447
609
  type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
1448
610
  declare function mapEntry(args: Args$6): Promise<Result$1<MapEntryResponse>>;
@@ -1792,4 +954,4 @@ declare namespace index {
1792
954
  export { index$2 as Maps, index$1 as ReadOnly, index_pox4Api as pox4Api };
1793
955
  }
1794
956
 
1795
- export { index as Pox4Api, type Result$1 as Result, type SafeError, index$6 as StacksApi, index$3 as StacksRpcApi, callRateLimitedApi, error, pox4Api, queries, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, stacksRpcApi, success };
957
+ export { index as Pox4Api, type Result$1 as Result, type SafeError, index$6 as StacksApi, index$3 as StacksRpcApi, callRateLimitedApi, error, flatResults, pox4Api, queries, safeBackOff, safeCall, safeCallRateLimitedApi, safeExtractResponseBody, safePromise, stacksApi, stacksRpcApi, success };