@secretkeylabs/stacks-tools 0.8.0 → 0.9.0-87bc50c
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 +108 -101
- package/dist/index.d.cts +73 -113
- package/dist/index.d.ts +73 -113
- package/dist/index.js +108 -101
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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$
|
|
58
|
+
type Args$o = {
|
|
59
59
|
transactionId: string;
|
|
60
60
|
} & ApiRequestOptions;
|
|
61
|
-
type Response$
|
|
62
|
-
declare function getRawTransaction(args: Args$
|
|
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$
|
|
66
|
+
export { type Args$o as Args, type Response$9 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
type Args$
|
|
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$m = {
|
|
|
91
91
|
order?: "asc" | "desc";
|
|
92
92
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
93
93
|
type MempoolTransactionsResponse = OperationResponse["/extended/v1/tx/mempool"];
|
|
94
|
-
declare function mempoolTransactions(args: Args$
|
|
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$
|
|
102
|
+
type Args$m = {
|
|
103
103
|
transactionId: string;
|
|
104
104
|
} & ApiRequestOptions;
|
|
105
|
-
type Response$
|
|
106
|
-
declare function getTransaction(args: Args$
|
|
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$
|
|
113
|
+
type Args$l = {
|
|
114
114
|
address: string;
|
|
115
115
|
transactionId: string;
|
|
116
116
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
117
|
-
type Response$
|
|
118
|
-
declare function eventsForAnAddressTransaction(args: Args$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
145
|
-
declare function members(args: Args$
|
|
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$
|
|
149
|
+
export { type Args$j as Args, type Response$6 as Response, members$1_members as members };
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
type Args$
|
|
152
|
+
type Args$i = {
|
|
153
153
|
cycleNumber: string | number | bigint;
|
|
154
154
|
signerPublicKey: string;
|
|
155
155
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
156
|
-
type Response$
|
|
157
|
-
declare function stackersForSignerInCycle(opts: Args$
|
|
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$
|
|
161
|
+
export { type Args$i as Args, type Response$5 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
type Args$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
289
|
+
type Args$e = {
|
|
290
290
|
cycleNumber: number;
|
|
291
291
|
} & ApiRequestOptions;
|
|
292
|
-
declare const responseSchema$
|
|
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$
|
|
301
|
-
declare function cycle(opts: Args$
|
|
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$
|
|
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,47 +364,37 @@ 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$
|
|
367
|
+
type Args$d = {
|
|
368
368
|
address: string;
|
|
369
369
|
stacking?: boolean;
|
|
370
370
|
} & ApiRequestOptions;
|
|
371
|
-
declare function stx(opts: Args$
|
|
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$
|
|
375
|
+
export { type Args$d as Args, stx$1_stx as stx };
|
|
376
|
+
}
|
|
377
|
+
|
|
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 };
|
|
376
387
|
}
|
|
377
388
|
|
|
378
389
|
type Args$b = {
|
|
379
390
|
heightOrHash: string | number;
|
|
380
391
|
} & ApiRequestOptions;
|
|
381
|
-
|
|
382
|
-
|
|
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$b): 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$b as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock
|
|
397
|
+
export { type Args$b as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock };
|
|
408
398
|
}
|
|
409
399
|
|
|
410
400
|
type Args$a = {
|
|
@@ -443,7 +433,7 @@ declare const accounts$1: {
|
|
|
443
433
|
latestNonce: typeof latestNonce;
|
|
444
434
|
};
|
|
445
435
|
|
|
446
|
-
declare namespace index$
|
|
436
|
+
declare namespace index$g {
|
|
447
437
|
export { balances$1 as Balances, latestNonce$1 as LatestNonce, accounts$1 as accounts };
|
|
448
438
|
}
|
|
449
439
|
|
|
@@ -451,9 +441,18 @@ declare const blocks: {
|
|
|
451
441
|
getBlock: typeof getBlock;
|
|
452
442
|
};
|
|
453
443
|
|
|
454
|
-
declare const index$
|
|
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;
|
|
455
454
|
declare namespace index$e {
|
|
456
|
-
export {
|
|
455
|
+
export { getBurnBlock$1 as GetBurnBlock, index$e_burnBlocks as burnBlocks };
|
|
457
456
|
}
|
|
458
457
|
|
|
459
458
|
declare const faucets: {
|
|
@@ -525,6 +524,9 @@ declare const stacksApi: {
|
|
|
525
524
|
blocks: {
|
|
526
525
|
getBlock: typeof getBlock;
|
|
527
526
|
};
|
|
527
|
+
burnBlocks: {
|
|
528
|
+
getBurnBlock: typeof getBurnBlock;
|
|
529
|
+
};
|
|
528
530
|
faucets: {
|
|
529
531
|
stx: typeof stx;
|
|
530
532
|
};
|
|
@@ -555,7 +557,7 @@ declare const stacksApi: {
|
|
|
555
557
|
|
|
556
558
|
declare const index$7_stacksApi: typeof stacksApi;
|
|
557
559
|
declare namespace index$7 {
|
|
558
|
-
export { index$
|
|
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 };
|
|
559
561
|
}
|
|
560
562
|
|
|
561
563
|
type Args$8 = {
|
|
@@ -792,22 +794,8 @@ type InfoResponse = {
|
|
|
792
794
|
balance_proof: string;
|
|
793
795
|
nonce_proof: string;
|
|
794
796
|
};
|
|
795
|
-
type InfoReturn = Promise<InfoResponse
|
|
796
|
-
declare const info: (args: Args$4) =>
|
|
797
|
-
readonly name: "InfoFetchError";
|
|
798
|
-
readonly message: "Failed to fetch info.";
|
|
799
|
-
readonly data: {
|
|
800
|
-
readonly init: RequestInit;
|
|
801
|
-
readonly status: number;
|
|
802
|
-
readonly statusText: string;
|
|
803
|
-
readonly endpoint: string;
|
|
804
|
-
readonly body: unknown;
|
|
805
|
-
};
|
|
806
|
-
}, null] | [{
|
|
807
|
-
readonly name: "ParseBodyError";
|
|
808
|
-
readonly message: "Failed to parse response body as JSON.";
|
|
809
|
-
readonly data: SafeError<"SafeError", unknown>;
|
|
810
|
-
}, null]>;
|
|
797
|
+
type InfoReturn = Promise<Result$1<InfoResponse>>;
|
|
798
|
+
declare const info: (args: Args$4) => InfoReturn;
|
|
811
799
|
|
|
812
800
|
type info$1_InfoResponse = InfoResponse;
|
|
813
801
|
type info$1_InfoReturn = InfoReturn;
|
|
@@ -837,21 +825,7 @@ declare namespace index$5 {
|
|
|
837
825
|
}
|
|
838
826
|
|
|
839
827
|
declare const accounts: {
|
|
840
|
-
info: (args: Args$4) =>
|
|
841
|
-
readonly name: "InfoFetchError";
|
|
842
|
-
readonly message: "Failed to fetch info.";
|
|
843
|
-
readonly data: {
|
|
844
|
-
readonly init: RequestInit;
|
|
845
|
-
readonly status: number;
|
|
846
|
-
readonly statusText: string;
|
|
847
|
-
readonly endpoint: string;
|
|
848
|
-
readonly body: unknown;
|
|
849
|
-
};
|
|
850
|
-
}, null] | [{
|
|
851
|
-
readonly name: "ParseBodyError";
|
|
852
|
-
readonly message: "Failed to parse response body as JSON.";
|
|
853
|
-
readonly data: SafeError<"SafeError", unknown>;
|
|
854
|
-
}, null]>;
|
|
828
|
+
info: (args: Args$4) => InfoReturn;
|
|
855
829
|
};
|
|
856
830
|
|
|
857
831
|
declare const index$4_accounts: typeof accounts;
|
|
@@ -861,21 +835,7 @@ declare namespace index$4 {
|
|
|
861
835
|
|
|
862
836
|
declare const stacksRpcApi: {
|
|
863
837
|
accounts: {
|
|
864
|
-
info: (args: Args$4) =>
|
|
865
|
-
readonly name: "InfoFetchError";
|
|
866
|
-
readonly message: "Failed to fetch info.";
|
|
867
|
-
readonly data: {
|
|
868
|
-
readonly init: RequestInit;
|
|
869
|
-
readonly status: number;
|
|
870
|
-
readonly statusText: string;
|
|
871
|
-
readonly endpoint: string;
|
|
872
|
-
readonly body: unknown;
|
|
873
|
-
};
|
|
874
|
-
}, null] | [{
|
|
875
|
-
readonly name: "ParseBodyError";
|
|
876
|
-
readonly message: "Failed to parse response body as JSON.";
|
|
877
|
-
readonly data: SafeError<"SafeError", unknown>;
|
|
878
|
-
}, null]>;
|
|
838
|
+
info: (args: Args$4) => InfoReturn;
|
|
879
839
|
};
|
|
880
840
|
pox: {
|
|
881
841
|
poxDetails: typeof poxDetails;
|