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