@secretkeylabs/stacks-tools 0.7.0-73ae437 → 0.7.0-f2b5b8d

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.cjs CHANGED
@@ -1131,8 +1131,51 @@ var pox = {
1131
1131
  poxDetails
1132
1132
  };
1133
1133
 
1134
+ // src/stacks-rpc-api/accounts/info.ts
1135
+ var info2 = async (args) => {
1136
+ const search = new URLSearchParams();
1137
+ if (args.proof === 0) search.append("proof", "0");
1138
+ if (args.tip) search.append("tip", args.tip);
1139
+ const init = {};
1140
+ if (args.apiKeyConfig) {
1141
+ init.headers = {
1142
+ [args.apiKeyConfig.header]: args.apiKeyConfig.key
1143
+ };
1144
+ }
1145
+ init.method = "GET";
1146
+ const endpoint = `${args.baseUrl}/v2/accounts/${args.principal}`;
1147
+ const res = await fetch(endpoint, init);
1148
+ if (!res.ok)
1149
+ return error({
1150
+ name: "InfoFetchError",
1151
+ message: "Failed to fetch info.",
1152
+ data: {
1153
+ init,
1154
+ status: res.status,
1155
+ statusText: res.statusText,
1156
+ endpoint,
1157
+ body: await safeExtractResponseBody(res)
1158
+ }
1159
+ });
1160
+ const [jsonError, data] = await safePromise(res.json());
1161
+ if (jsonError) {
1162
+ return error({
1163
+ name: "ParseBodyError",
1164
+ message: "Failed to parse response body as JSON.",
1165
+ data: jsonError
1166
+ });
1167
+ }
1168
+ return success(data);
1169
+ };
1170
+
1171
+ // src/stacks-rpc-api/accounts/index.ts
1172
+ var accounts2 = {
1173
+ info: info2
1174
+ };
1175
+
1134
1176
  // src/stacks-rpc-api/index.ts
1135
1177
  var stacksRpcApi = {
1178
+ accounts: accounts2,
1136
1179
  pox,
1137
1180
  smartContracts
1138
1181
  };
package/dist/index.d.cts 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$n = {
59
59
  transactionId: string;
60
60
  } & ApiRequestOptions;
61
61
  type Response$8 = OperationResponse["get_raw_transaction_by_id"];
62
- declare function getRawTransaction(args: Args$m): Promise<Result$1<Response$8>>;
62
+ declare function getRawTransaction(args: Args$n): Promise<Result$1<Response$8>>;
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$n as Args, type Response$8 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
67
67
  }
68
68
 
69
- type Args$l = {
69
+ type Args$m = {
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$m): 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$l = {
103
103
  transactionId: string;
104
104
  } & ApiRequestOptions;
105
105
  type Response$7 = OperationResponse["get_transaction_by_id"];
106
- declare function getTransaction(args: Args$k): Promise<Result$1<Response$7>>;
106
+ declare function getTransaction(args: Args$l): Promise<Result$1<Response$7>>;
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$k = {
114
114
  address: string;
115
115
  transactionId: string;
116
116
  } & ApiRequestOptions & ApiPaginationOptions;
117
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>>;
118
+ declare function eventsForAnAddressTransaction(args: Args$k): Promise<Result$1<Response$6>>;
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$j = {
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$j): 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,7 +134,7 @@ 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$i = {
138
138
  poolPrincipal: string;
139
139
  afterBlock?: string | number | bigint;
140
140
  unanchored?: boolean;
@@ -142,26 +142,26 @@ type Args$h = {
142
142
  offset?: number;
143
143
  } & ApiRequestOptions & ApiPaginationOptions;
144
144
  type Response$5 = OperationResponse["get_pool_delegations"];
145
- declare function members(args: Args$h): Promise<Result$1<Response$5>>;
145
+ declare function members(args: Args$i): Promise<Result$1<Response$5>>;
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$i as Args, type Response$5 as Response, members$1_members as members };
150
150
  }
151
151
 
152
- type Args$g = {
152
+ type Args$h = {
153
153
  cycleNumber: string | number | bigint;
154
154
  signerPublicKey: string;
155
155
  } & ApiRequestOptions & ApiPaginationOptions;
156
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">>>;
157
+ declare function stackersForSignerInCycle(opts: Args$h): Promise<Result$1<Response$4, 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$h as Args, type Response$4 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
162
162
  }
163
163
 
164
- type Args$f = {
164
+ type Args$g = {
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$g): 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$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 };
214
214
  }
215
215
 
216
- type Args$e = {
216
+ type Args$f = {
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$f): 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$f 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$e = 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$e): Promise<Result$1<CyclesResponse>>;
277
277
 
278
278
  type cycles$1_CycleInfo = CycleInfo;
279
279
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -283,10 +283,10 @@ 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$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 };
287
287
  }
288
288
 
289
- type Args$c = {
289
+ type Args$d = {
290
290
  cycleNumber: number;
291
291
  } & ApiRequestOptions;
292
292
  declare const responseSchema$2: v.ObjectSchema<{
@@ -298,11 +298,11 @@ declare const responseSchema$2: v.ObjectSchema<{
298
298
  readonly total_signers: v.NumberSchema<undefined>;
299
299
  }, undefined>;
300
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">>>;
301
+ declare function cycle(opts: Args$d): Promise<Result$1<Response$3, 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$d as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
306
306
  }
307
307
 
308
308
  type FeePrioritiesResponse = {
@@ -364,18 +364,18 @@ 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$c = {
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$c): 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$c as Args, stx$1_stx as stx };
376
376
  }
377
377
 
378
- type Args$a = {
378
+ type Args$b = {
379
379
  heightOrHash: string | number;
380
380
  } & ApiRequestOptions;
381
381
  declare const responseSchema$1: v.ObjectSchema<{
@@ -400,14 +400,14 @@ declare const responseSchema$1: v.ObjectSchema<{
400
400
  readonly execution_cost_write_length: v.NumberSchema<undefined>;
401
401
  }, undefined>;
402
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">>>;
403
+ declare function getBlock(opts: Args$b): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
404
404
 
405
405
  declare const getBlock$1_getBlock: typeof getBlock;
406
406
  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 };
407
+ export { type Args$b as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
408
408
  }
409
409
 
410
- type Args$9 = {
410
+ type Args$a = {
411
411
  principal: string;
412
412
  } & ApiRequestOptions;
413
413
  declare const responseSchema: v.ObjectSchema<{
@@ -418,61 +418,59 @@ declare const responseSchema: v.ObjectSchema<{
418
418
  readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
419
419
  }, undefined>;
420
420
  type Response$1 = v.InferOutput<typeof responseSchema>;
421
- declare function latestNonce(opts: Args$9): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
421
+ declare function latestNonce(opts: Args$a): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
422
422
 
423
423
  declare const latestNonce$1_latestNonce: typeof latestNonce;
424
424
  declare const latestNonce$1_responseSchema: typeof responseSchema;
425
425
  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 };
426
+ export { type Args$a as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
427
427
  }
428
428
 
429
- type Args$8 = {
429
+ type Args$9 = {
430
430
  principal: string;
431
431
  unanchored?: boolean;
432
432
  untilBlock?: number;
433
433
  } & ApiRequestOptions;
434
- declare function balances(opts: Args$8): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
434
+ declare function balances(opts: Args$9): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
435
435
 
436
436
  declare const balances$1_balances: typeof balances;
437
437
  declare namespace balances$1 {
438
- export { type Args$8 as Args, balances$1_balances as balances };
438
+ export { type Args$9 as Args, balances$1_balances as balances };
439
439
  }
440
440
 
441
- declare const accounts: {
441
+ declare const accounts$1: {
442
442
  balances: typeof balances;
443
443
  latestNonce: typeof latestNonce;
444
444
  };
445
445
 
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 };
446
+ declare namespace index$f {
447
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, accounts$1 as accounts };
449
448
  }
450
449
 
451
450
  declare const blocks: {
452
451
  getBlock: typeof getBlock;
453
452
  };
454
453
 
455
- declare const index$d_blocks: typeof blocks;
456
- declare namespace index$d {
457
- export { getBlock$1 as GetBlock, index$d_blocks as blocks };
454
+ declare const index$e_blocks: typeof blocks;
455
+ declare namespace index$e {
456
+ export { getBlock$1 as GetBlock, index$e_blocks as blocks };
458
457
  }
459
458
 
460
459
  declare const faucets: {
461
460
  stx: typeof stx;
462
461
  };
463
462
 
464
- declare const index$c_faucets: typeof faucets;
465
- declare namespace index$c {
466
- export { stx$1 as Stx, index$c_faucets as faucets };
463
+ declare const index$d_faucets: typeof faucets;
464
+ declare namespace index$d {
465
+ export { stx$1 as Stx, index$d_faucets as faucets };
467
466
  }
468
467
 
469
- declare const info: {
468
+ declare const info$2: {
470
469
  coreApi: typeof coreApi;
471
470
  };
472
471
 
473
- declare const index$b_info: typeof info;
474
- declare namespace index$b {
475
- export { coreApi$1 as CoreApi, index$b_info as info };
472
+ declare namespace index$c {
473
+ export { coreApi$1 as CoreApi, info$2 as info };
476
474
  }
477
475
 
478
476
  declare const proofOfTransfer: {
@@ -483,18 +481,18 @@ declare const proofOfTransfer: {
483
481
  stackersForSignerInCycle: typeof stackersForSignerInCycle;
484
482
  };
485
483
 
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 };
484
+ declare const index$b_proofOfTransfer: typeof proofOfTransfer;
485
+ declare namespace index$b {
486
+ 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
487
  }
490
488
 
491
489
  declare const stackingPool: {
492
490
  members: typeof members;
493
491
  };
494
492
 
495
- declare const index$9_stackingPool: typeof stackingPool;
496
- declare namespace index$9 {
497
- export { members$1 as Members, index$9_stackingPool as stackingPool };
493
+ declare const index$a_stackingPool: typeof stackingPool;
494
+ declare namespace index$a {
495
+ export { members$1 as Members, index$a_stackingPool as stackingPool };
498
496
  }
499
497
 
500
498
  declare const transactions: {
@@ -505,18 +503,18 @@ declare const transactions: {
505
503
  getRawTransaction: typeof getRawTransaction;
506
504
  };
507
505
 
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 };
506
+ declare const index$9_transactions: typeof transactions;
507
+ declare namespace index$9 {
508
+ 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
509
  }
512
510
 
513
511
  declare const mempool: {
514
512
  transactionFeePriorities: typeof transactionFeePriorities;
515
513
  };
516
514
 
517
- declare const index$7_mempool: typeof mempool;
518
- declare namespace index$7 {
519
- export { transactionFeePriorities$1 as TransactionFeePriorities, index$7_mempool as mempool };
515
+ declare const index$8_mempool: typeof mempool;
516
+ declare namespace index$8 {
517
+ export { transactionFeePriorities$1 as TransactionFeePriorities, index$8_mempool as mempool };
520
518
  }
521
519
 
522
520
  declare const stacksApi: {
@@ -555,12 +553,12 @@ declare const stacksApi: {
555
553
  };
556
554
  };
557
555
 
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 };
556
+ declare const index$7_stacksApi: typeof stacksApi;
557
+ declare namespace index$7 {
558
+ export { index$f as Accounts, index$e as Blocks, 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
559
  }
562
560
 
563
- type Args$7 = {
561
+ type Args$8 = {
564
562
  sender: string;
565
563
  arguments: string[];
566
564
  contractAddress: string;
@@ -577,15 +575,15 @@ interface ReadOnlyContractCallFailResponse {
577
575
  }
578
576
  type ReadOnlyContractCallResponse = ReadOnlyContractCallSuccessResponse | ReadOnlyContractCallFailResponse;
579
577
  type ReadOnlyResponse = ReadOnlyContractCallResponse;
580
- declare function readOnly$1(args: Args$7): Promise<Result$1<ReadOnlyResponse>>;
578
+ declare function readOnly$1(args: Args$8): Promise<Result$1<ReadOnlyResponse>>;
581
579
 
582
580
  type readOnly$2_ReadOnlyContractCallResponse = ReadOnlyContractCallResponse;
583
581
  type readOnly$2_ReadOnlyResponse = ReadOnlyResponse;
584
582
  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 };
583
+ export { type Args$8 as Args, type readOnly$2_ReadOnlyContractCallResponse as ReadOnlyContractCallResponse, type readOnly$2_ReadOnlyResponse as ReadOnlyResponse, readOnly$1 as readOnly };
586
584
  }
587
585
 
588
- type Args$6 = {
586
+ type Args$7 = {
589
587
  contractAddress: string;
590
588
  contractName: string;
591
589
  mapName: string;
@@ -605,28 +603,28 @@ declare const mapEntryResponseSchema: v.ObjectSchema<{
605
603
  readonly proof: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
604
  }, undefined>;
607
605
  type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
608
- declare function mapEntry(args: Args$6): Promise<Result$1<MapEntryResponse>>;
606
+ declare function mapEntry(args: Args$7): Promise<Result$1<MapEntryResponse>>;
609
607
 
610
608
  type mapEntry$1_MapEntryResponse = MapEntryResponse;
611
609
  declare const mapEntry$1_mapEntry: typeof mapEntry;
612
610
  declare namespace mapEntry$1 {
613
- export { type Args$6 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
611
+ export { type Args$7 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
614
612
  }
615
613
 
616
- type Args$5 = {
614
+ type Args$6 = {
617
615
  contractAddress: string;
618
616
  contractName: string;
619
617
  } & ApiRequestOptions & ProofAndTip;
620
618
  type InterfaceResponse = ClarityAbi;
621
- declare function contractInterface(args: Args$5): Promise<Result$1<InterfaceResponse>>;
619
+ declare function contractInterface(args: Args$6): Promise<Result$1<InterfaceResponse>>;
622
620
 
623
621
  type _interface_InterfaceResponse = InterfaceResponse;
624
622
  declare const _interface_contractInterface: typeof contractInterface;
625
623
  declare namespace _interface {
626
- export { type Args$5 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
624
+ export { type Args$6 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
627
625
  }
628
626
 
629
- type Args$4 = ApiRequestOptions;
627
+ type Args$5 = ApiRequestOptions;
630
628
  /**
631
629
  * Get Proof of Transfer (PoX) information
632
630
  */
@@ -771,7 +769,7 @@ interface CoreNodePoxResponse {
771
769
  }[];
772
770
  }
773
771
  type PoxDetailsResponse = CoreNodePoxResponse;
774
- declare function poxDetails(args: Args$4): Promise<Result$1<PoxDetailsResponse>>;
772
+ declare function poxDetails(args: Args$5): Promise<Result$1<PoxDetailsResponse>>;
775
773
 
776
774
  type poxDetails$1_CoreNodePoxResponse = CoreNodePoxResponse;
777
775
  type poxDetails$1_PoxDetailsResponse = PoxDetailsResponse;
@@ -780,27 +778,103 @@ declare namespace poxDetails$1 {
780
778
  export { type poxDetails$1_CoreNodePoxResponse as CoreNodePoxResponse, type poxDetails$1_PoxDetailsResponse as PoxDetailsResponse, poxDetails$1_poxDetails as poxDetails };
781
779
  }
782
780
 
781
+ type Args$4 = {
782
+ /** Stacks principal. */
783
+ principal: string;
784
+ } & ApiRequestOptions & ProofAndTip;
785
+ type InfoResponse = {
786
+ balance: string;
787
+ locked: string;
788
+ unlock_height: number;
789
+ nonce: number;
790
+ balance_proof: string;
791
+ nonce_proof: string;
792
+ };
793
+ type InfoReturn = Promise<InfoResponse>;
794
+ declare const info: (args: Args$4) => Promise<[null, unknown] | [{
795
+ readonly name: "InfoFetchError";
796
+ readonly message: "Failed to fetch info.";
797
+ readonly data: {
798
+ readonly init: RequestInit;
799
+ readonly status: number;
800
+ readonly statusText: string;
801
+ readonly endpoint: string;
802
+ readonly body: unknown;
803
+ };
804
+ }, null] | [{
805
+ readonly name: "ParseBodyError";
806
+ readonly message: "Failed to parse response body as JSON.";
807
+ readonly data: SafeError<"SafeError", unknown>;
808
+ }, null]>;
809
+
810
+ type info$1_InfoResponse = InfoResponse;
811
+ type info$1_InfoReturn = InfoReturn;
812
+ declare const info$1_info: typeof info;
813
+ declare namespace info$1 {
814
+ export { type Args$4 as Args, type info$1_InfoResponse as InfoResponse, type info$1_InfoReturn as InfoReturn, info$1_info as info };
815
+ }
816
+
783
817
  declare const smartContracts: {
784
818
  contractInterface: typeof contractInterface;
785
819
  mapEntry: typeof mapEntry;
786
820
  readOnly: typeof readOnly$1;
787
821
  };
788
822
 
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 };
823
+ declare const index$6_smartContracts: typeof smartContracts;
824
+ declare namespace index$6 {
825
+ export { _interface as ContractInterface, mapEntry$1 as MapEntry, readOnly$2 as ReadOnly, index$6_smartContracts as smartContracts };
792
826
  }
793
827
 
794
828
  declare const pox: {
795
829
  poxDetails: typeof poxDetails;
796
830
  };
797
831
 
798
- declare const index$4_pox: typeof pox;
832
+ declare const index$5_pox: typeof pox;
833
+ declare namespace index$5 {
834
+ export { poxDetails$1 as PoxDetails, index$5_pox as pox };
835
+ }
836
+
837
+ declare const accounts: {
838
+ info: (args: Args$4) => Promise<[null, unknown] | [{
839
+ readonly name: "InfoFetchError";
840
+ readonly message: "Failed to fetch info.";
841
+ readonly data: {
842
+ readonly init: RequestInit;
843
+ readonly status: number;
844
+ readonly statusText: string;
845
+ readonly endpoint: string;
846
+ readonly body: unknown;
847
+ };
848
+ }, null] | [{
849
+ readonly name: "ParseBodyError";
850
+ readonly message: "Failed to parse response body as JSON.";
851
+ readonly data: SafeError<"SafeError", unknown>;
852
+ }, null]>;
853
+ };
854
+
855
+ declare const index$4_accounts: typeof accounts;
799
856
  declare namespace index$4 {
800
- export { poxDetails$1 as PoxDetails, index$4_pox as pox };
857
+ export { info$1 as Info, index$4_accounts as accounts };
801
858
  }
802
859
 
803
860
  declare const stacksRpcApi: {
861
+ accounts: {
862
+ info: (args: Args$4) => Promise<[null, unknown] | [{
863
+ readonly name: "InfoFetchError";
864
+ readonly message: "Failed to fetch info.";
865
+ readonly data: {
866
+ readonly init: RequestInit;
867
+ readonly status: number;
868
+ readonly statusText: string;
869
+ readonly endpoint: string;
870
+ readonly body: unknown;
871
+ };
872
+ }, null] | [{
873
+ readonly name: "ParseBodyError";
874
+ readonly message: "Failed to parse response body as JSON.";
875
+ readonly data: SafeError<"SafeError", unknown>;
876
+ }, null]>;
877
+ };
804
878
  pox: {
805
879
  poxDetails: typeof poxDetails;
806
880
  };
@@ -813,7 +887,7 @@ declare const stacksRpcApi: {
813
887
 
814
888
  declare const index$3_stacksRpcApi: typeof stacksRpcApi;
815
889
  declare namespace index$3 {
816
- export { index$4 as Pox, index$5 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
890
+ export { index$4 as Accounts, index$5 as Pox, index$6 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
817
891
  }
818
892
 
819
893
  type Identifier = {
@@ -952,4 +1026,4 @@ declare namespace index {
952
1026
  export { index$2 as Maps, index$1 as ReadOnly, index_pox4Api as pox4Api };
953
1027
  }
954
1028
 
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 };
1029
+ 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 };
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$n = {
59
59
  transactionId: string;
60
60
  } & ApiRequestOptions;
61
61
  type Response$8 = OperationResponse["get_raw_transaction_by_id"];
62
- declare function getRawTransaction(args: Args$m): Promise<Result$1<Response$8>>;
62
+ declare function getRawTransaction(args: Args$n): Promise<Result$1<Response$8>>;
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$n as Args, type Response$8 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
67
67
  }
68
68
 
69
- type Args$l = {
69
+ type Args$m = {
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$m): 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$l = {
103
103
  transactionId: string;
104
104
  } & ApiRequestOptions;
105
105
  type Response$7 = OperationResponse["get_transaction_by_id"];
106
- declare function getTransaction(args: Args$k): Promise<Result$1<Response$7>>;
106
+ declare function getTransaction(args: Args$l): Promise<Result$1<Response$7>>;
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$k = {
114
114
  address: string;
115
115
  transactionId: string;
116
116
  } & ApiRequestOptions & ApiPaginationOptions;
117
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>>;
118
+ declare function eventsForAnAddressTransaction(args: Args$k): Promise<Result$1<Response$6>>;
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$j = {
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$j): 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,7 +134,7 @@ 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$i = {
138
138
  poolPrincipal: string;
139
139
  afterBlock?: string | number | bigint;
140
140
  unanchored?: boolean;
@@ -142,26 +142,26 @@ type Args$h = {
142
142
  offset?: number;
143
143
  } & ApiRequestOptions & ApiPaginationOptions;
144
144
  type Response$5 = OperationResponse["get_pool_delegations"];
145
- declare function members(args: Args$h): Promise<Result$1<Response$5>>;
145
+ declare function members(args: Args$i): Promise<Result$1<Response$5>>;
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$i as Args, type Response$5 as Response, members$1_members as members };
150
150
  }
151
151
 
152
- type Args$g = {
152
+ type Args$h = {
153
153
  cycleNumber: string | number | bigint;
154
154
  signerPublicKey: string;
155
155
  } & ApiRequestOptions & ApiPaginationOptions;
156
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">>>;
157
+ declare function stackersForSignerInCycle(opts: Args$h): Promise<Result$1<Response$4, 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$h as Args, type Response$4 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
162
162
  }
163
163
 
164
- type Args$f = {
164
+ type Args$g = {
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$g): 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$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 };
214
214
  }
215
215
 
216
- type Args$e = {
216
+ type Args$f = {
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$f): 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$f 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$e = 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$e): Promise<Result$1<CyclesResponse>>;
277
277
 
278
278
  type cycles$1_CycleInfo = CycleInfo;
279
279
  type cycles$1_CyclesResponse = CyclesResponse;
@@ -283,10 +283,10 @@ 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$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 };
287
287
  }
288
288
 
289
- type Args$c = {
289
+ type Args$d = {
290
290
  cycleNumber: number;
291
291
  } & ApiRequestOptions;
292
292
  declare const responseSchema$2: v.ObjectSchema<{
@@ -298,11 +298,11 @@ declare const responseSchema$2: v.ObjectSchema<{
298
298
  readonly total_signers: v.NumberSchema<undefined>;
299
299
  }, undefined>;
300
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">>>;
301
+ declare function cycle(opts: Args$d): Promise<Result$1<Response$3, 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$d as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
306
306
  }
307
307
 
308
308
  type FeePrioritiesResponse = {
@@ -364,18 +364,18 @@ 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$c = {
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$c): 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$c as Args, stx$1_stx as stx };
376
376
  }
377
377
 
378
- type Args$a = {
378
+ type Args$b = {
379
379
  heightOrHash: string | number;
380
380
  } & ApiRequestOptions;
381
381
  declare const responseSchema$1: v.ObjectSchema<{
@@ -400,14 +400,14 @@ declare const responseSchema$1: v.ObjectSchema<{
400
400
  readonly execution_cost_write_length: v.NumberSchema<undefined>;
401
401
  }, undefined>;
402
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">>>;
403
+ declare function getBlock(opts: Args$b): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
404
404
 
405
405
  declare const getBlock$1_getBlock: typeof getBlock;
406
406
  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 };
407
+ export { type Args$b as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
408
408
  }
409
409
 
410
- type Args$9 = {
410
+ type Args$a = {
411
411
  principal: string;
412
412
  } & ApiRequestOptions;
413
413
  declare const responseSchema: v.ObjectSchema<{
@@ -418,61 +418,59 @@ declare const responseSchema: v.ObjectSchema<{
418
418
  readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
419
419
  }, undefined>;
420
420
  type Response$1 = v.InferOutput<typeof responseSchema>;
421
- declare function latestNonce(opts: Args$9): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
421
+ declare function latestNonce(opts: Args$a): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
422
422
 
423
423
  declare const latestNonce$1_latestNonce: typeof latestNonce;
424
424
  declare const latestNonce$1_responseSchema: typeof responseSchema;
425
425
  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 };
426
+ export { type Args$a as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
427
427
  }
428
428
 
429
- type Args$8 = {
429
+ type Args$9 = {
430
430
  principal: string;
431
431
  unanchored?: boolean;
432
432
  untilBlock?: number;
433
433
  } & ApiRequestOptions;
434
- declare function balances(opts: Args$8): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
434
+ declare function balances(opts: Args$9): Promise<Result$1<OperationResponse["get_account_balance"], SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
435
435
 
436
436
  declare const balances$1_balances: typeof balances;
437
437
  declare namespace balances$1 {
438
- export { type Args$8 as Args, balances$1_balances as balances };
438
+ export { type Args$9 as Args, balances$1_balances as balances };
439
439
  }
440
440
 
441
- declare const accounts: {
441
+ declare const accounts$1: {
442
442
  balances: typeof balances;
443
443
  latestNonce: typeof latestNonce;
444
444
  };
445
445
 
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 };
446
+ declare namespace index$f {
447
+ export { balances$1 as Balances, latestNonce$1 as LatestNonce, accounts$1 as accounts };
449
448
  }
450
449
 
451
450
  declare const blocks: {
452
451
  getBlock: typeof getBlock;
453
452
  };
454
453
 
455
- declare const index$d_blocks: typeof blocks;
456
- declare namespace index$d {
457
- export { getBlock$1 as GetBlock, index$d_blocks as blocks };
454
+ declare const index$e_blocks: typeof blocks;
455
+ declare namespace index$e {
456
+ export { getBlock$1 as GetBlock, index$e_blocks as blocks };
458
457
  }
459
458
 
460
459
  declare const faucets: {
461
460
  stx: typeof stx;
462
461
  };
463
462
 
464
- declare const index$c_faucets: typeof faucets;
465
- declare namespace index$c {
466
- export { stx$1 as Stx, index$c_faucets as faucets };
463
+ declare const index$d_faucets: typeof faucets;
464
+ declare namespace index$d {
465
+ export { stx$1 as Stx, index$d_faucets as faucets };
467
466
  }
468
467
 
469
- declare const info: {
468
+ declare const info$2: {
470
469
  coreApi: typeof coreApi;
471
470
  };
472
471
 
473
- declare const index$b_info: typeof info;
474
- declare namespace index$b {
475
- export { coreApi$1 as CoreApi, index$b_info as info };
472
+ declare namespace index$c {
473
+ export { coreApi$1 as CoreApi, info$2 as info };
476
474
  }
477
475
 
478
476
  declare const proofOfTransfer: {
@@ -483,18 +481,18 @@ declare const proofOfTransfer: {
483
481
  stackersForSignerInCycle: typeof stackersForSignerInCycle;
484
482
  };
485
483
 
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 };
484
+ declare const index$b_proofOfTransfer: typeof proofOfTransfer;
485
+ declare namespace index$b {
486
+ 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
487
  }
490
488
 
491
489
  declare const stackingPool: {
492
490
  members: typeof members;
493
491
  };
494
492
 
495
- declare const index$9_stackingPool: typeof stackingPool;
496
- declare namespace index$9 {
497
- export { members$1 as Members, index$9_stackingPool as stackingPool };
493
+ declare const index$a_stackingPool: typeof stackingPool;
494
+ declare namespace index$a {
495
+ export { members$1 as Members, index$a_stackingPool as stackingPool };
498
496
  }
499
497
 
500
498
  declare const transactions: {
@@ -505,18 +503,18 @@ declare const transactions: {
505
503
  getRawTransaction: typeof getRawTransaction;
506
504
  };
507
505
 
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 };
506
+ declare const index$9_transactions: typeof transactions;
507
+ declare namespace index$9 {
508
+ 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
509
  }
512
510
 
513
511
  declare const mempool: {
514
512
  transactionFeePriorities: typeof transactionFeePriorities;
515
513
  };
516
514
 
517
- declare const index$7_mempool: typeof mempool;
518
- declare namespace index$7 {
519
- export { transactionFeePriorities$1 as TransactionFeePriorities, index$7_mempool as mempool };
515
+ declare const index$8_mempool: typeof mempool;
516
+ declare namespace index$8 {
517
+ export { transactionFeePriorities$1 as TransactionFeePriorities, index$8_mempool as mempool };
520
518
  }
521
519
 
522
520
  declare const stacksApi: {
@@ -555,12 +553,12 @@ declare const stacksApi: {
555
553
  };
556
554
  };
557
555
 
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 };
556
+ declare const index$7_stacksApi: typeof stacksApi;
557
+ declare namespace index$7 {
558
+ export { index$f as Accounts, index$e as Blocks, 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
559
  }
562
560
 
563
- type Args$7 = {
561
+ type Args$8 = {
564
562
  sender: string;
565
563
  arguments: string[];
566
564
  contractAddress: string;
@@ -577,15 +575,15 @@ interface ReadOnlyContractCallFailResponse {
577
575
  }
578
576
  type ReadOnlyContractCallResponse = ReadOnlyContractCallSuccessResponse | ReadOnlyContractCallFailResponse;
579
577
  type ReadOnlyResponse = ReadOnlyContractCallResponse;
580
- declare function readOnly$1(args: Args$7): Promise<Result$1<ReadOnlyResponse>>;
578
+ declare function readOnly$1(args: Args$8): Promise<Result$1<ReadOnlyResponse>>;
581
579
 
582
580
  type readOnly$2_ReadOnlyContractCallResponse = ReadOnlyContractCallResponse;
583
581
  type readOnly$2_ReadOnlyResponse = ReadOnlyResponse;
584
582
  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 };
583
+ export { type Args$8 as Args, type readOnly$2_ReadOnlyContractCallResponse as ReadOnlyContractCallResponse, type readOnly$2_ReadOnlyResponse as ReadOnlyResponse, readOnly$1 as readOnly };
586
584
  }
587
585
 
588
- type Args$6 = {
586
+ type Args$7 = {
589
587
  contractAddress: string;
590
588
  contractName: string;
591
589
  mapName: string;
@@ -605,28 +603,28 @@ declare const mapEntryResponseSchema: v.ObjectSchema<{
605
603
  readonly proof: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
604
  }, undefined>;
607
605
  type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
608
- declare function mapEntry(args: Args$6): Promise<Result$1<MapEntryResponse>>;
606
+ declare function mapEntry(args: Args$7): Promise<Result$1<MapEntryResponse>>;
609
607
 
610
608
  type mapEntry$1_MapEntryResponse = MapEntryResponse;
611
609
  declare const mapEntry$1_mapEntry: typeof mapEntry;
612
610
  declare namespace mapEntry$1 {
613
- export { type Args$6 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
611
+ export { type Args$7 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
614
612
  }
615
613
 
616
- type Args$5 = {
614
+ type Args$6 = {
617
615
  contractAddress: string;
618
616
  contractName: string;
619
617
  } & ApiRequestOptions & ProofAndTip;
620
618
  type InterfaceResponse = ClarityAbi;
621
- declare function contractInterface(args: Args$5): Promise<Result$1<InterfaceResponse>>;
619
+ declare function contractInterface(args: Args$6): Promise<Result$1<InterfaceResponse>>;
622
620
 
623
621
  type _interface_InterfaceResponse = InterfaceResponse;
624
622
  declare const _interface_contractInterface: typeof contractInterface;
625
623
  declare namespace _interface {
626
- export { type Args$5 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
624
+ export { type Args$6 as Args, type _interface_InterfaceResponse as InterfaceResponse, _interface_contractInterface as contractInterface };
627
625
  }
628
626
 
629
- type Args$4 = ApiRequestOptions;
627
+ type Args$5 = ApiRequestOptions;
630
628
  /**
631
629
  * Get Proof of Transfer (PoX) information
632
630
  */
@@ -771,7 +769,7 @@ interface CoreNodePoxResponse {
771
769
  }[];
772
770
  }
773
771
  type PoxDetailsResponse = CoreNodePoxResponse;
774
- declare function poxDetails(args: Args$4): Promise<Result$1<PoxDetailsResponse>>;
772
+ declare function poxDetails(args: Args$5): Promise<Result$1<PoxDetailsResponse>>;
775
773
 
776
774
  type poxDetails$1_CoreNodePoxResponse = CoreNodePoxResponse;
777
775
  type poxDetails$1_PoxDetailsResponse = PoxDetailsResponse;
@@ -780,27 +778,103 @@ declare namespace poxDetails$1 {
780
778
  export { type poxDetails$1_CoreNodePoxResponse as CoreNodePoxResponse, type poxDetails$1_PoxDetailsResponse as PoxDetailsResponse, poxDetails$1_poxDetails as poxDetails };
781
779
  }
782
780
 
781
+ type Args$4 = {
782
+ /** Stacks principal. */
783
+ principal: string;
784
+ } & ApiRequestOptions & ProofAndTip;
785
+ type InfoResponse = {
786
+ balance: string;
787
+ locked: string;
788
+ unlock_height: number;
789
+ nonce: number;
790
+ balance_proof: string;
791
+ nonce_proof: string;
792
+ };
793
+ type InfoReturn = Promise<InfoResponse>;
794
+ declare const info: (args: Args$4) => Promise<[null, unknown] | [{
795
+ readonly name: "InfoFetchError";
796
+ readonly message: "Failed to fetch info.";
797
+ readonly data: {
798
+ readonly init: RequestInit;
799
+ readonly status: number;
800
+ readonly statusText: string;
801
+ readonly endpoint: string;
802
+ readonly body: unknown;
803
+ };
804
+ }, null] | [{
805
+ readonly name: "ParseBodyError";
806
+ readonly message: "Failed to parse response body as JSON.";
807
+ readonly data: SafeError<"SafeError", unknown>;
808
+ }, null]>;
809
+
810
+ type info$1_InfoResponse = InfoResponse;
811
+ type info$1_InfoReturn = InfoReturn;
812
+ declare const info$1_info: typeof info;
813
+ declare namespace info$1 {
814
+ export { type Args$4 as Args, type info$1_InfoResponse as InfoResponse, type info$1_InfoReturn as InfoReturn, info$1_info as info };
815
+ }
816
+
783
817
  declare const smartContracts: {
784
818
  contractInterface: typeof contractInterface;
785
819
  mapEntry: typeof mapEntry;
786
820
  readOnly: typeof readOnly$1;
787
821
  };
788
822
 
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 };
823
+ declare const index$6_smartContracts: typeof smartContracts;
824
+ declare namespace index$6 {
825
+ export { _interface as ContractInterface, mapEntry$1 as MapEntry, readOnly$2 as ReadOnly, index$6_smartContracts as smartContracts };
792
826
  }
793
827
 
794
828
  declare const pox: {
795
829
  poxDetails: typeof poxDetails;
796
830
  };
797
831
 
798
- declare const index$4_pox: typeof pox;
832
+ declare const index$5_pox: typeof pox;
833
+ declare namespace index$5 {
834
+ export { poxDetails$1 as PoxDetails, index$5_pox as pox };
835
+ }
836
+
837
+ declare const accounts: {
838
+ info: (args: Args$4) => Promise<[null, unknown] | [{
839
+ readonly name: "InfoFetchError";
840
+ readonly message: "Failed to fetch info.";
841
+ readonly data: {
842
+ readonly init: RequestInit;
843
+ readonly status: number;
844
+ readonly statusText: string;
845
+ readonly endpoint: string;
846
+ readonly body: unknown;
847
+ };
848
+ }, null] | [{
849
+ readonly name: "ParseBodyError";
850
+ readonly message: "Failed to parse response body as JSON.";
851
+ readonly data: SafeError<"SafeError", unknown>;
852
+ }, null]>;
853
+ };
854
+
855
+ declare const index$4_accounts: typeof accounts;
799
856
  declare namespace index$4 {
800
- export { poxDetails$1 as PoxDetails, index$4_pox as pox };
857
+ export { info$1 as Info, index$4_accounts as accounts };
801
858
  }
802
859
 
803
860
  declare const stacksRpcApi: {
861
+ accounts: {
862
+ info: (args: Args$4) => Promise<[null, unknown] | [{
863
+ readonly name: "InfoFetchError";
864
+ readonly message: "Failed to fetch info.";
865
+ readonly data: {
866
+ readonly init: RequestInit;
867
+ readonly status: number;
868
+ readonly statusText: string;
869
+ readonly endpoint: string;
870
+ readonly body: unknown;
871
+ };
872
+ }, null] | [{
873
+ readonly name: "ParseBodyError";
874
+ readonly message: "Failed to parse response body as JSON.";
875
+ readonly data: SafeError<"SafeError", unknown>;
876
+ }, null]>;
877
+ };
804
878
  pox: {
805
879
  poxDetails: typeof poxDetails;
806
880
  };
@@ -813,7 +887,7 @@ declare const stacksRpcApi: {
813
887
 
814
888
  declare const index$3_stacksRpcApi: typeof stacksRpcApi;
815
889
  declare namespace index$3 {
816
- export { index$4 as Pox, index$5 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
890
+ export { index$4 as Accounts, index$5 as Pox, index$6 as SmartContracts, index$3_stacksRpcApi as stacksRpcApi };
817
891
  }
818
892
 
819
893
  type Identifier = {
@@ -952,4 +1026,4 @@ declare namespace index {
952
1026
  export { index$2 as Maps, index$1 as ReadOnly, index_pox4Api as pox4Api };
953
1027
  }
954
1028
 
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 };
1029
+ 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 };
package/dist/index.js CHANGED
@@ -1083,8 +1083,51 @@ var pox = {
1083
1083
  poxDetails
1084
1084
  };
1085
1085
 
1086
+ // src/stacks-rpc-api/accounts/info.ts
1087
+ var info2 = async (args) => {
1088
+ const search = new URLSearchParams();
1089
+ if (args.proof === 0) search.append("proof", "0");
1090
+ if (args.tip) search.append("tip", args.tip);
1091
+ const init = {};
1092
+ if (args.apiKeyConfig) {
1093
+ init.headers = {
1094
+ [args.apiKeyConfig.header]: args.apiKeyConfig.key
1095
+ };
1096
+ }
1097
+ init.method = "GET";
1098
+ const endpoint = `${args.baseUrl}/v2/accounts/${args.principal}`;
1099
+ const res = await fetch(endpoint, init);
1100
+ if (!res.ok)
1101
+ return error({
1102
+ name: "InfoFetchError",
1103
+ message: "Failed to fetch info.",
1104
+ data: {
1105
+ init,
1106
+ status: res.status,
1107
+ statusText: res.statusText,
1108
+ endpoint,
1109
+ body: await safeExtractResponseBody(res)
1110
+ }
1111
+ });
1112
+ const [jsonError, data] = await safePromise(res.json());
1113
+ if (jsonError) {
1114
+ return error({
1115
+ name: "ParseBodyError",
1116
+ message: "Failed to parse response body as JSON.",
1117
+ data: jsonError
1118
+ });
1119
+ }
1120
+ return success(data);
1121
+ };
1122
+
1123
+ // src/stacks-rpc-api/accounts/index.ts
1124
+ var accounts2 = {
1125
+ info: info2
1126
+ };
1127
+
1086
1128
  // src/stacks-rpc-api/index.ts
1087
1129
  var stacksRpcApi = {
1130
+ accounts: accounts2,
1088
1131
  pox,
1089
1132
  smartContracts
1090
1133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretkeylabs/stacks-tools",
3
- "version": "0.7.0-73ae437",
3
+ "version": "0.7.0-f2b5b8d",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"