@secretkeylabs/stacks-tools 0.7.0 → 0.8.0-907b20e

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.ts CHANGED
@@ -18,7 +18,7 @@ type ProofAndTip = {
18
18
  /**
19
19
  * Returns object without the proof field when set to 0.
20
20
  */
21
- proof?: number;
21
+ proof?: 0 | 1;
22
22
  tip?: "latest" | string;
23
23
  };
24
24
  type ApiPaginationOptions = {
@@ -55,18 +55,18 @@ declare function flatResults<T>(results: Array<Result$1<T>>): Result$1<Array<T>>
55
55
  */
56
56
  declare function safeExtractResponseBody(response: Response): Promise<unknown>;
57
57
 
58
- type Args$m = {
58
+ type Args$o = {
59
59
  transactionId: string;
60
60
  } & ApiRequestOptions;
61
- type Response$8 = OperationResponse["get_raw_transaction_by_id"];
62
- declare function getRawTransaction(args: Args$m): Promise<Result$1<Response$8>>;
61
+ type Response$9 = OperationResponse["get_raw_transaction_by_id"];
62
+ declare function getRawTransaction(args: Args$o): Promise<Result$1<Response$9>>;
63
63
 
64
64
  declare const getRawTransaction$1_getRawTransaction: typeof getRawTransaction;
65
65
  declare namespace getRawTransaction$1 {
66
- export { type Args$m as Args, type Response$8 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
66
+ export { type Args$o as Args, type Response$9 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
67
67
  }
68
68
 
69
- type Args$l = {
69
+ type Args$n = {
70
70
  /**
71
71
  * Filter to only return transactions with this sender address.
72
72
  */
@@ -91,7 +91,7 @@ type Args$l = {
91
91
  order?: "asc" | "desc";
92
92
  } & ApiRequestOptions & ApiPaginationOptions;
93
93
  type MempoolTransactionsResponse = OperationResponse["/extended/v1/tx/mempool"];
94
- declare function mempoolTransactions(args: Args$l): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
94
+ declare function mempoolTransactions(args: Args$n): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
95
95
 
96
96
  type mempoolTransactions$1_MempoolTransactionsResponse = MempoolTransactionsResponse;
97
97
  declare const mempoolTransactions$1_mempoolTransactions: typeof mempoolTransactions;
@@ -99,34 +99,34 @@ declare namespace mempoolTransactions$1 {
99
99
  export { type mempoolTransactions$1_MempoolTransactionsResponse as MempoolTransactionsResponse, mempoolTransactions$1_mempoolTransactions as mempoolTransactions };
100
100
  }
101
101
 
102
- type Args$k = {
102
+ type Args$m = {
103
103
  transactionId: string;
104
104
  } & ApiRequestOptions;
105
- type Response$7 = OperationResponse["get_transaction_by_id"];
106
- declare function getTransaction(args: Args$k): Promise<Result$1<Response$7>>;
105
+ type Response$8 = OperationResponse["get_transaction_by_id"];
106
+ declare function getTransaction(args: Args$m): Promise<Result$1<Response$8>>;
107
107
 
108
108
  declare const getTransaction$1_getTransaction: typeof getTransaction;
109
109
  declare namespace getTransaction$1 {
110
110
  export { getTransaction$1_getTransaction as getTransaction };
111
111
  }
112
112
 
113
- type Args$j = {
113
+ type Args$l = {
114
114
  address: string;
115
115
  transactionId: string;
116
116
  } & ApiRequestOptions & ApiPaginationOptions;
117
- type Response$6 = OperationResponse["/extended/v2/addresses/{address}/transactions/{tx_id}/events"];
118
- declare function eventsForAnAddressTransaction(args: Args$j): Promise<Result$1<Response$6>>;
117
+ type Response$7 = OperationResponse["/extended/v2/addresses/{address}/transactions/{tx_id}/events"];
118
+ declare function eventsForAnAddressTransaction(args: Args$l): Promise<Result$1<Response$7>>;
119
119
 
120
120
  declare const eventsForAnAddressTransaction$1_eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
121
121
  declare namespace eventsForAnAddressTransaction$1 {
122
122
  export { eventsForAnAddressTransaction$1_eventsForAnAddressTransaction as eventsForAnAddressTransaction };
123
123
  }
124
124
 
125
- type Args$i = {
125
+ type Args$k = {
126
126
  address: string;
127
127
  } & ApiRequestOptions & ApiPaginationOptions;
128
128
  type Result = OperationResponse["/extended/v2/addresses/{address}/transactions"];
129
- declare function addressTransactions(args: Args$i): Promise<Result$1<Result, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
129
+ declare function addressTransactions(args: Args$k): Promise<Result$1<Result, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
130
130
 
131
131
  type addressTransactions$1_Result = Result;
132
132
  declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
@@ -134,34 +134,34 @@ declare namespace addressTransactions$1 {
134
134
  export { type addressTransactions$1_Result as Result, addressTransactions$1_addressTransactions as addressTransactions };
135
135
  }
136
136
 
137
- type Args$h = {
137
+ type Args$j = {
138
138
  poolPrincipal: string;
139
139
  afterBlock?: string | number | bigint;
140
140
  unanchored?: boolean;
141
141
  limit?: number;
142
142
  offset?: number;
143
143
  } & ApiRequestOptions & ApiPaginationOptions;
144
- type Response$5 = OperationResponse["get_pool_delegations"];
145
- declare function members(args: Args$h): Promise<Result$1<Response$5>>;
144
+ type Response$6 = OperationResponse["get_pool_delegations"];
145
+ declare function members(args: Args$j): Promise<Result$1<Response$6>>;
146
146
 
147
147
  declare const members$1_members: typeof members;
148
148
  declare namespace members$1 {
149
- export { type Args$h as Args, type Response$5 as Response, members$1_members as members };
149
+ export { type Args$j as Args, type Response$6 as Response, members$1_members as members };
150
150
  }
151
151
 
152
- type Args$g = {
152
+ type Args$i = {
153
153
  cycleNumber: string | number | bigint;
154
154
  signerPublicKey: string;
155
155
  } & ApiRequestOptions & ApiPaginationOptions;
156
- type Response$4 = OperationResponse["get_pox_cycle_signer_stackers"];
157
- declare function stackersForSignerInCycle(opts: Args$g): Promise<Result$1<Response$4, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError">>>;
156
+ type Response$5 = OperationResponse["get_pox_cycle_signer_stackers"];
157
+ declare function stackersForSignerInCycle(opts: Args$i): Promise<Result$1<Response$5, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError">>>;
158
158
 
159
159
  declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
160
160
  declare namespace stackersForSignerInCycle$1 {
161
- export { type Args$g as Args, type Response$4 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
161
+ export { type Args$i as Args, type Response$5 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
162
162
  }
163
163
 
164
- type Args$f = {
164
+ type Args$h = {
165
165
  cycleNumber: number;
166
166
  } & ApiRequestOptions & ApiPaginationOptions;
167
167
  declare const signerSchema: v.ObjectSchema<{
@@ -202,7 +202,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
202
202
  readonly total: v.NumberSchema<undefined>;
203
203
  }, undefined>;
204
204
  type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
205
- declare function signersInCycle(args: Args$f): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
205
+ declare function signersInCycle(args: Args$h): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
206
206
 
207
207
  type signersInCycle$1_Signer = Signer;
208
208
  type signersInCycle$1_SignersResponse = SignersResponse;
@@ -210,10 +210,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
210
210
  declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
211
211
  declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
212
212
  declare namespace signersInCycle$1 {
213
- 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$h 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 };
214
214
  }
215
215
 
216
- type Args$e = {
216
+ type Args$g = {
217
217
  /**
218
218
  * The signers public key as a hex string, with or without a '0x' prefix.
219
219
  */
@@ -231,16 +231,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
231
231
  readonly pooled_stacker_count: v.NumberSchema<undefined>;
232
232
  }, undefined>;
233
233
  type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
234
- declare function signerInCycle(args: Args$e): Promise<Result$1<SignerInCycleResponse>>;
234
+ declare function signerInCycle(args: Args$g): Promise<Result$1<SignerInCycleResponse>>;
235
235
 
236
236
  type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
237
237
  declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
238
238
  declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
239
239
  declare namespace signerInCycle$1 {
240
- 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$g as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
241
241
  }
242
242
 
243
- type Args$d = ApiRequestOptions & ApiPaginationOptions;
243
+ type Args$f = ApiRequestOptions & ApiPaginationOptions;
244
244
  declare const cycleInfoSchema: v.ObjectSchema<{
245
245
  readonly block_height: v.NumberSchema<undefined>;
246
246
  readonly index_block_hash: v.StringSchema<undefined>;
@@ -273,7 +273,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
273
273
  readonly total: v.NumberSchema<undefined>;
274
274
  }, undefined>;
275
275
  type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
276
- declare function cycles(args: Args$d): Promise<Result$1<CyclesResponse>>;
276
+ declare function cycles(args: Args$f): Promise<Result$1<CyclesResponse>>;
277
277
 
278
278
  type cycles$1_CycleInfo = CycleInfo;
279
279
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -283,13 +283,13 @@ declare const cycles$1_cycles: typeof cycles;
283
283
  declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
284
284
  declare const cycles$1_resultsSchema: typeof resultsSchema;
285
285
  declare namespace cycles$1 {
286
- 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$f 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 };
287
287
  }
288
288
 
289
- type Args$c = {
289
+ type Args$e = {
290
290
  cycleNumber: number;
291
291
  } & ApiRequestOptions;
292
- declare const responseSchema$2: v.ObjectSchema<{
292
+ declare const responseSchema$1: v.ObjectSchema<{
293
293
  readonly block_height: v.NumberSchema<undefined>;
294
294
  readonly index_block_hash: v.StringSchema<undefined>;
295
295
  readonly cycle_number: v.NumberSchema<undefined>;
@@ -297,12 +297,12 @@ declare const responseSchema$2: v.ObjectSchema<{
297
297
  readonly total_stacked_amount: v.StringSchema<undefined>;
298
298
  readonly total_signers: v.NumberSchema<undefined>;
299
299
  }, undefined>;
300
- type Response$3 = v.InferOutput<typeof responseSchema$2>;
301
- declare function cycle(opts: Args$c): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
300
+ type Response$4 = v.InferOutput<typeof responseSchema$1>;
301
+ declare function cycle(opts: Args$e): Promise<Result$1<Response$4, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
302
302
 
303
303
  declare const cycle$1_cycle: typeof cycle;
304
304
  declare namespace cycle$1 {
305
- export { type Args$c as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
305
+ export { type Args$e as Args, type Response$4 as Response, cycle$1_cycle as cycle, responseSchema$1 as responseSchema };
306
306
  }
307
307
 
308
308
  type FeePrioritiesResponse = {
@@ -364,50 +364,40 @@ declare namespace coreApi$1 {
364
364
  export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
365
365
  }
366
366
 
367
- type Args$b = {
367
+ type Args$d = {
368
368
  address: string;
369
369
  stacking?: boolean;
370
370
  } & ApiRequestOptions;
371
- declare function stx(opts: Args$b): Promise<Result$1<any>>;
371
+ declare function stx(opts: Args$d): Promise<Result$1<any>>;
372
372
 
373
373
  declare const stx$1_stx: typeof stx;
374
374
  declare namespace stx$1 {
375
- export { type Args$b as Args, stx$1_stx as stx };
375
+ export { type Args$d as Args, stx$1_stx as stx };
376
376
  }
377
377
 
378
- type Args$a = {
378
+ type Args$c = {
379
+ heightOrHash: string | number | bigint;
380
+ } & ApiRequestOptions;
381
+ type Response$3 = OperationResponse["get_burn_block"];
382
+ declare function getBurnBlock(args: Args$c): Promise<Result$1<Response$3>>;
383
+
384
+ declare const getBurnBlock$1_getBurnBlock: typeof getBurnBlock;
385
+ declare namespace getBurnBlock$1 {
386
+ export { type Args$c as Args, type Response$3 as Response, getBurnBlock$1_getBurnBlock as getBurnBlock };
387
+ }
388
+
389
+ type Args$b = {
379
390
  heightOrHash: string | number;
380
391
  } & ApiRequestOptions;
381
- declare const responseSchema$1: v.ObjectSchema<{
382
- readonly canonical: v.BooleanSchema<undefined>;
383
- readonly height: v.NumberSchema<undefined>;
384
- readonly hash: v.StringSchema<undefined>;
385
- readonly block_time: v.NumberSchema<undefined>;
386
- readonly block_time_iso: v.StringSchema<undefined>;
387
- readonly index_block_hash: v.StringSchema<undefined>;
388
- readonly parent_block_hash: v.StringSchema<undefined>;
389
- readonly parent_index_block_hash: v.StringSchema<undefined>;
390
- readonly burn_block_time: v.NumberSchema<undefined>;
391
- readonly burn_block_time_iso: v.StringSchema<undefined>;
392
- readonly burn_block_hash: v.StringSchema<undefined>;
393
- readonly burn_block_height: v.NumberSchema<undefined>;
394
- readonly miner_txid: v.StringSchema<undefined>;
395
- readonly tx_count: v.NumberSchema<undefined>;
396
- readonly execution_cost_read_count: v.NumberSchema<undefined>;
397
- readonly execution_cost_read_length: v.NumberSchema<undefined>;
398
- readonly execution_cost_runtime: v.NumberSchema<undefined>;
399
- readonly execution_cost_write_count: v.NumberSchema<undefined>;
400
- readonly execution_cost_write_length: v.NumberSchema<undefined>;
401
- }, undefined>;
402
- type Response$2 = v.InferOutput<typeof responseSchema$1>;
403
- declare function getBlock(opts: Args$a): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
392
+ type Response$2 = OperationResponse["get_block"];
393
+ declare function getBlock(opts: Args$b): Promise<Result$1<Response$2>>;
404
394
 
405
395
  declare const getBlock$1_getBlock: typeof getBlock;
406
396
  declare namespace getBlock$1 {
407
- export { type Args$a as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
397
+ export { type Args$b as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock };
408
398
  }
409
399
 
410
- type Args$9 = {
400
+ type Args$a = {
411
401
  principal: string;
412
402
  } & ApiRequestOptions;
413
403
  declare const responseSchema: v.ObjectSchema<{
@@ -418,61 +408,68 @@ declare const responseSchema: v.ObjectSchema<{
418
408
  readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
419
409
  }, undefined>;
420
410
  type Response$1 = v.InferOutput<typeof responseSchema>;
421
- declare function latestNonce(opts: Args$9): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
411
+ declare function latestNonce(opts: Args$a): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
422
412
 
423
413
  declare const latestNonce$1_latestNonce: typeof latestNonce;
424
414
  declare const latestNonce$1_responseSchema: typeof responseSchema;
425
415
  declare namespace latestNonce$1 {
426
- export { type Args$9 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
416
+ export { type Args$a as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
427
417
  }
428
418
 
429
- type Args$8 = {
419
+ type Args$9 = {
430
420
  principal: string;
431
421
  unanchored?: boolean;
432
422
  untilBlock?: number;
433
423
  } & ApiRequestOptions;
434
- declare function balances(opts: Args$8): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
424
+ declare function balances(opts: Args$9): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
435
425
 
436
426
  declare const balances$1_balances: typeof balances;
437
427
  declare namespace balances$1 {
438
- export { type Args$8 as Args, balances$1_balances as balances };
428
+ export { type Args$9 as Args, balances$1_balances as balances };
439
429
  }
440
430
 
441
- declare const accounts: {
431
+ declare const accounts$1: {
442
432
  balances: typeof balances;
443
433
  latestNonce: typeof latestNonce;
444
434
  };
445
435
 
446
- declare const index$e_accounts: typeof accounts;
447
- declare namespace index$e {
448
- export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$e_accounts as accounts };
436
+ declare namespace index$g {
437
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, accounts$1 as accounts };
449
438
  }
450
439
 
451
440
  declare const blocks: {
452
441
  getBlock: typeof getBlock;
453
442
  };
454
443
 
455
- declare const index$d_blocks: typeof blocks;
456
- declare namespace index$d {
457
- export { getBlock$1 as GetBlock, index$d_blocks as blocks };
444
+ declare const index$f_blocks: typeof blocks;
445
+ declare namespace index$f {
446
+ export { getBlock$1 as GetBlock, index$f_blocks as blocks };
447
+ }
448
+
449
+ declare const burnBlocks: {
450
+ getBurnBlock: typeof getBurnBlock;
451
+ };
452
+
453
+ declare const index$e_burnBlocks: typeof burnBlocks;
454
+ declare namespace index$e {
455
+ export { getBurnBlock$1 as GetBurnBlock, index$e_burnBlocks as burnBlocks };
458
456
  }
459
457
 
460
458
  declare const faucets: {
461
459
  stx: typeof stx;
462
460
  };
463
461
 
464
- declare const index$c_faucets: typeof faucets;
465
- declare namespace index$c {
466
- export { stx$1 as Stx, index$c_faucets as faucets };
462
+ declare const index$d_faucets: typeof faucets;
463
+ declare namespace index$d {
464
+ export { stx$1 as Stx, index$d_faucets as faucets };
467
465
  }
468
466
 
469
- declare const info: {
467
+ declare const info$2: {
470
468
  coreApi: typeof coreApi;
471
469
  };
472
470
 
473
- declare const index$b_info: typeof info;
474
- declare namespace index$b {
475
- export { coreApi$1 as CoreApi, index$b_info as info };
471
+ declare namespace index$c {
472
+ export { coreApi$1 as CoreApi, info$2 as info };
476
473
  }
477
474
 
478
475
  declare const proofOfTransfer: {
@@ -483,18 +480,18 @@ declare const proofOfTransfer: {
483
480
  stackersForSignerInCycle: typeof stackersForSignerInCycle;
484
481
  };
485
482
 
486
- declare const index$a_proofOfTransfer: typeof proofOfTransfer;
487
- declare namespace index$a {
488
- export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$a_proofOfTransfer as proofOfTransfer };
483
+ declare const index$b_proofOfTransfer: typeof proofOfTransfer;
484
+ declare namespace index$b {
485
+ export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$b_proofOfTransfer as proofOfTransfer };
489
486
  }
490
487
 
491
488
  declare const stackingPool: {
492
489
  members: typeof members;
493
490
  };
494
491
 
495
- declare const index$9_stackingPool: typeof stackingPool;
496
- declare namespace index$9 {
497
- export { members$1 as Members, index$9_stackingPool as stackingPool };
492
+ declare const index$a_stackingPool: typeof stackingPool;
493
+ declare namespace index$a {
494
+ export { members$1 as Members, index$a_stackingPool as stackingPool };
498
495
  }
499
496
 
500
497
  declare const transactions: {
@@ -505,18 +502,18 @@ declare const transactions: {
505
502
  getRawTransaction: typeof getRawTransaction;
506
503
  };
507
504
 
508
- declare const index$8_transactions: typeof transactions;
509
- declare namespace index$8 {
510
- 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 };
505
+ declare const index$9_transactions: typeof transactions;
506
+ declare namespace index$9 {
507
+ export { addressTransactions$1 as AddressTransactions, eventsForAnAddressTransaction$1 as EventsForAnAddressTransaction, getRawTransaction$1 as GetRawTransaction, getTransaction$1 as GetTransaction, mempoolTransactions$1 as MempoolTransactions, index$9_transactions as transactions };
511
508
  }
512
509
 
513
510
  declare const mempool: {
514
511
  transactionFeePriorities: typeof transactionFeePriorities;
515
512
  };
516
513
 
517
- declare const index$7_mempool: typeof mempool;
518
- declare namespace index$7 {
519
- export { transactionFeePriorities$1 as TransactionFeePriorities, index$7_mempool as mempool };
514
+ declare const index$8_mempool: typeof mempool;
515
+ declare namespace index$8 {
516
+ export { transactionFeePriorities$1 as TransactionFeePriorities, index$8_mempool as mempool };
520
517
  }
521
518
 
522
519
  declare const stacksApi: {
@@ -527,6 +524,9 @@ declare const stacksApi: {
527
524
  blocks: {
528
525
  getBlock: typeof getBlock;
529
526
  };
527
+ burnBlocks: {
528
+ getBurnBlock: typeof getBurnBlock;
529
+ };
530
530
  faucets: {
531
531
  stx: typeof stx;
532
532
  };
@@ -555,12 +555,12 @@ declare const stacksApi: {
555
555
  };
556
556
  };
557
557
 
558
- declare const index$6_stacksApi: typeof stacksApi;
559
- declare namespace index$6 {
560
- 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 };
558
+ declare const index$7_stacksApi: typeof stacksApi;
559
+ declare namespace index$7 {
560
+ export { index$g as Accounts, index$f as Blocks, index$e as BurnBlocks, index$d as Faucets, index$c as Info, index$8 as Mempool, index$b as ProofOfTransfer, index$a as StackingPool, index$9 as Transactions, index$7_stacksApi as stacksApi };
561
561
  }
562
562
 
563
- type Args$7 = {
563
+ type Args$8 = {
564
564
  sender: string;
565
565
  arguments: string[];
566
566
  contractAddress: string;
@@ -577,15 +577,15 @@ interface ReadOnlyContractCallFailResponse {
577
577
  }
578
578
  type ReadOnlyContractCallResponse = ReadOnlyContractCallSuccessResponse | ReadOnlyContractCallFailResponse;
579
579
  type ReadOnlyResponse = ReadOnlyContractCallResponse;
580
- declare function readOnly$1(args: Args$7): Promise<Result$1<ReadOnlyResponse>>;
580
+ declare function readOnly$1(args: Args$8): Promise<Result$1<ReadOnlyResponse>>;
581
581
 
582
582
  type readOnly$2_ReadOnlyContractCallResponse = ReadOnlyContractCallResponse;
583
583
  type readOnly$2_ReadOnlyResponse = ReadOnlyResponse;
584
584
  declare namespace readOnly$2 {
585
- export { type Args$7 as Args, type readOnly$2_ReadOnlyContractCallResponse as ReadOnlyContractCallResponse, type readOnly$2_ReadOnlyResponse as ReadOnlyResponse, readOnly$1 as readOnly };
585
+ export { type Args$8 as Args, type readOnly$2_ReadOnlyContractCallResponse as ReadOnlyContractCallResponse, type readOnly$2_ReadOnlyResponse as ReadOnlyResponse, readOnly$1 as readOnly };
586
586
  }
587
587
 
588
- type Args$6 = {
588
+ type Args$7 = {
589
589
  contractAddress: string;
590
590
  contractName: string;
591
591
  mapName: string;
@@ -605,28 +605,28 @@ declare const mapEntryResponseSchema: v.ObjectSchema<{
605
605
  readonly proof: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
606
  }, undefined>;
607
607
  type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
608
- declare function mapEntry(args: Args$6): Promise<Result$1<MapEntryResponse>>;
608
+ declare function mapEntry(args: Args$7): Promise<Result$1<MapEntryResponse>>;
609
609
 
610
610
  type mapEntry$1_MapEntryResponse = MapEntryResponse;
611
611
  declare const mapEntry$1_mapEntry: typeof mapEntry;
612
612
  declare namespace mapEntry$1 {
613
- export { type Args$6 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
613
+ export { type Args$7 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
614
614
  }
615
615
 
616
- type Args$5 = {
616
+ type Args$6 = {
617
617
  contractAddress: string;
618
618
  contractName: string;
619
619
  } & ApiRequestOptions & ProofAndTip;
620
620
  type InterfaceResponse = ClarityAbi;
621
- declare function contractInterface(args: Args$5): Promise<Result$1<InterfaceResponse>>;
621
+ declare function contractInterface(args: Args$6): Promise<Result$1<InterfaceResponse>>;
622
622
 
623
623
  type _interface_InterfaceResponse = InterfaceResponse;
624
624
  declare const _interface_contractInterface: typeof contractInterface;
625
625
  declare namespace _interface {
626
- export { type Args$5 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
626
+ export { type Args$6 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
627
627
  }
628
628
 
629
- type Args$4 = ApiRequestOptions;
629
+ type Args$5 = ApiRequestOptions;
630
630
  /**
631
631
  * Get Proof of Transfer (PoX) information
632
632
  */
@@ -771,7 +771,7 @@ interface CoreNodePoxResponse {
771
771
  }[];
772
772
  }
773
773
  type PoxDetailsResponse = CoreNodePoxResponse;
774
- declare function poxDetails(args: Args$4): Promise<Result$1<PoxDetailsResponse>>;
774
+ declare function poxDetails(args: Args$5): Promise<Result$1<PoxDetailsResponse>>;
775
775
 
776
776
  type poxDetails$1_CoreNodePoxResponse = CoreNodePoxResponse;
777
777
  type poxDetails$1_PoxDetailsResponse = PoxDetailsResponse;
@@ -780,27 +780,105 @@ declare namespace poxDetails$1 {
780
780
  export { type poxDetails$1_CoreNodePoxResponse as CoreNodePoxResponse, type poxDetails$1_PoxDetailsResponse as PoxDetailsResponse, poxDetails$1_poxDetails as poxDetails };
781
781
  }
782
782
 
783
+ type Args$4 = {
784
+ /** Stacks principal. */
785
+ principal: string;
786
+ } & ApiRequestOptions & ProofAndTip;
787
+ type InfoResponse = {
788
+ /** Micro-STX as a hex-encoded string. */
789
+ balance: string;
790
+ /** Micro-STX as a hex-encoded string. */
791
+ locked: string;
792
+ unlock_height: number;
793
+ nonce: number;
794
+ balance_proof: string;
795
+ nonce_proof: string;
796
+ };
797
+ type InfoReturn = Promise<InfoResponse>;
798
+ declare const info: (args: Args$4) => Promise<[null, unknown] | [{
799
+ readonly name: "InfoFetchError";
800
+ readonly message: "Failed to fetch info.";
801
+ readonly data: {
802
+ readonly init: RequestInit;
803
+ readonly status: number;
804
+ readonly statusText: string;
805
+ readonly endpoint: string;
806
+ readonly body: unknown;
807
+ };
808
+ }, null] | [{
809
+ readonly name: "ParseBodyError";
810
+ readonly message: "Failed to parse response body as JSON.";
811
+ readonly data: SafeError<"SafeError", unknown>;
812
+ }, null]>;
813
+
814
+ type info$1_InfoResponse = InfoResponse;
815
+ type info$1_InfoReturn = InfoReturn;
816
+ declare const info$1_info: typeof info;
817
+ declare namespace info$1 {
818
+ export { type Args$4 as Args, type info$1_InfoResponse as InfoResponse, type info$1_InfoReturn as InfoReturn, info$1_info as info };
819
+ }
820
+
783
821
  declare const smartContracts: {
784
822
  contractInterface: typeof contractInterface;
785
823
  mapEntry: typeof mapEntry;
786
824
  readOnly: typeof readOnly$1;
787
825
  };
788
826
 
789
- declare const index$5_smartContracts: typeof smartContracts;
790
- declare namespace index$5 {
791
- export { _interface as ContractInterface, mapEntry$1 as MapEntry, readOnly$2 as ReadOnly, index$5_smartContracts as smartContracts };
827
+ declare const index$6_smartContracts: typeof smartContracts;
828
+ declare namespace index$6 {
829
+ export { _interface as ContractInterface, mapEntry$1 as MapEntry, readOnly$2 as ReadOnly, index$6_smartContracts as smartContracts };
792
830
  }
793
831
 
794
832
  declare const pox: {
795
833
  poxDetails: typeof poxDetails;
796
834
  };
797
835
 
798
- declare const index$4_pox: typeof pox;
836
+ declare const index$5_pox: typeof pox;
837
+ declare namespace index$5 {
838
+ export { poxDetails$1 as PoxDetails, index$5_pox as pox };
839
+ }
840
+
841
+ declare const accounts: {
842
+ info: (args: Args$4) => Promise<[null, unknown] | [{
843
+ readonly name: "InfoFetchError";
844
+ readonly message: "Failed to fetch info.";
845
+ readonly data: {
846
+ readonly init: RequestInit;
847
+ readonly status: number;
848
+ readonly statusText: string;
849
+ readonly endpoint: string;
850
+ readonly body: unknown;
851
+ };
852
+ }, null] | [{
853
+ readonly name: "ParseBodyError";
854
+ readonly message: "Failed to parse response body as JSON.";
855
+ readonly data: SafeError<"SafeError", unknown>;
856
+ }, null]>;
857
+ };
858
+
859
+ declare const index$4_accounts: typeof accounts;
799
860
  declare namespace index$4 {
800
- export { poxDetails$1 as PoxDetails, index$4_pox as pox };
861
+ export { info$1 as Info, index$4_accounts as accounts };
801
862
  }
802
863
 
803
864
  declare const stacksRpcApi: {
865
+ accounts: {
866
+ info: (args: Args$4) => Promise<[null, unknown] | [{
867
+ readonly name: "InfoFetchError";
868
+ readonly message: "Failed to fetch info.";
869
+ readonly data: {
870
+ readonly init: RequestInit;
871
+ readonly status: number;
872
+ readonly statusText: string;
873
+ readonly endpoint: string;
874
+ readonly body: unknown;
875
+ };
876
+ }, null] | [{
877
+ readonly name: "ParseBodyError";
878
+ readonly message: "Failed to parse response body as JSON.";
879
+ readonly data: SafeError<"SafeError", unknown>;
880
+ }, null]>;
881
+ };
804
882
  pox: {
805
883
  poxDetails: typeof poxDetails;
806
884
  };
@@ -813,7 +891,7 @@ declare const stacksRpcApi: {
813
891
 
814
892
  declare const index$3_stacksRpcApi: typeof stacksRpcApi;
815
893
  declare namespace index$3 {
816
- export { index$4 as Pox, index$5 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
894
+ export { index$4 as Accounts, index$5 as Pox, index$6 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
817
895
  }
818
896
 
819
897
  type Identifier = {
@@ -952,4 +1030,4 @@ declare namespace index {
952
1030
  export { index$2 as Maps, index$1 as ReadOnly, index_pox4Api as pox4Api };
953
1031
  }
954
1032
 
955
- 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 };
1033
+ export { index as Pox4Api, type Result$1 as Result, type SafeError, index$7 as StacksApi, index$3 as StacksRpcApi, callRateLimitedApi, error, flatResults, pox4Api, queries, safeBackOff, safeCall, safeCallRateLimitedApi, safeExtractResponseBody, safePromise, stacksApi, stacksRpcApi, success };