@secretkeylabs/stacks-tools 0.6.0 → 0.7.0-3be878c
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 -918
- package/dist/index.d.ts +84 -918
- package/dist/index.js +163 -220
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OperationResponse, MempoolTransaction } 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
|
/**
|
|
@@ -49,7 +38,41 @@ type ListResponse<T = unknown> = {
|
|
|
49
38
|
results: T[];
|
|
50
39
|
};
|
|
51
40
|
|
|
52
|
-
type
|
|
41
|
+
type SafeError<TName extends string = string, TData = unknown> = {
|
|
42
|
+
readonly name: TName;
|
|
43
|
+
readonly message: string;
|
|
44
|
+
readonly data?: TData;
|
|
45
|
+
};
|
|
46
|
+
type SuccessResult<Data = unknown> = [null, Data];
|
|
47
|
+
type ErrorResult<Error extends SafeError = SafeError> = [Error, null];
|
|
48
|
+
type Result$1<Data = unknown, Error extends SafeError = SafeError> = SuccessResult<Data> | ErrorResult<Error>;
|
|
49
|
+
declare function success<Data>(data: Data): Result$1<Data, never>;
|
|
50
|
+
declare function error<const E extends SafeError>(errorArg: E): Result$1<never, E>;
|
|
51
|
+
declare function safePromise<T>(promise: Promise<T>): Promise<Result$1<T, SafeError<"SafeError">>>;
|
|
52
|
+
type Options$1 = {
|
|
53
|
+
startingDelay?: number;
|
|
54
|
+
numOfAttempts?: number;
|
|
55
|
+
};
|
|
56
|
+
declare function safeBackOff<T>(promise: Promise<Result$1<T>>, options?: Options$1): Promise<Result$1<T, SafeError<"BackoffError" | string>>>;
|
|
57
|
+
declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<"SafeCallError">>;
|
|
58
|
+
declare function flatResults<T>(results: Array<Result$1<T>>): Result$1<Array<T>>;
|
|
59
|
+
/**
|
|
60
|
+
* Safely extracts response body by trying JSON first, then text, then undefined
|
|
61
|
+
*/
|
|
62
|
+
declare function safeExtractResponseBody(response: Response): Promise<unknown>;
|
|
63
|
+
|
|
64
|
+
type Args$m = {
|
|
65
|
+
transactionId: string;
|
|
66
|
+
} & ApiRequestOptions;
|
|
67
|
+
type Response$8 = OperationResponse["get_raw_transaction_by_id"];
|
|
68
|
+
declare function getRawTransaction(args: Args$m): Promise<Result$1<Response$8>>;
|
|
69
|
+
|
|
70
|
+
declare const getRawTransaction$1_getRawTransaction: typeof getRawTransaction;
|
|
71
|
+
declare namespace getRawTransaction$1 {
|
|
72
|
+
export { type Args$m as Args, type Response$8 as Response, getRawTransaction$1_getRawTransaction as getRawTransaction };
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type Args$l = {
|
|
53
76
|
/**
|
|
54
77
|
* Filter to only return transactions with this sender address.
|
|
55
78
|
*/
|
|
@@ -74,7 +97,7 @@ type Args$k = {
|
|
|
74
97
|
order?: "asc" | "desc";
|
|
75
98
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
76
99
|
type MempoolTransactionsResponse = ListResponse<MempoolTransaction>;
|
|
77
|
-
declare function mempoolTransactions(args: Args$
|
|
100
|
+
declare function mempoolTransactions(args: Args$l): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
78
101
|
|
|
79
102
|
type mempoolTransactions$1_MempoolTransactionsResponse = MempoolTransactionsResponse;
|
|
80
103
|
declare const mempoolTransactions$1_mempoolTransactions: typeof mempoolTransactions;
|
|
@@ -82,926 +105,66 @@ declare namespace mempoolTransactions$1 {
|
|
|
82
105
|
export { type mempoolTransactions$1_MempoolTransactionsResponse as MempoolTransactionsResponse, mempoolTransactions$1_mempoolTransactions as mempoolTransactions };
|
|
83
106
|
}
|
|
84
107
|
|
|
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 = {
|
|
108
|
+
type Args$k = {
|
|
425
109
|
transactionId: string;
|
|
426
110
|
} & ApiRequestOptions;
|
|
427
|
-
|
|
111
|
+
type Response$7 = OperationResponse["get_transaction_by_id"];
|
|
112
|
+
declare function getTransaction(args: Args$k): Promise<Result$1<Response$7>>;
|
|
428
113
|
|
|
429
114
|
declare const getTransaction$1_getTransaction: typeof getTransaction;
|
|
430
115
|
declare namespace getTransaction$1 {
|
|
431
116
|
export { getTransaction$1_getTransaction as getTransaction };
|
|
432
117
|
}
|
|
433
118
|
|
|
119
|
+
type Args$j = {
|
|
120
|
+
address: string;
|
|
121
|
+
transactionId: string;
|
|
122
|
+
} & ApiRequestOptions & ApiPaginationOptions;
|
|
123
|
+
type Response$6 = OperationResponse["/extended/v2/addresses/{address}/transactions/{tx_id}/events"];
|
|
124
|
+
declare function eventsForAnAddressTransaction(args: Args$j): Promise<Result$1<Response$6>>;
|
|
125
|
+
|
|
126
|
+
declare const eventsForAnAddressTransaction$1_eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
127
|
+
declare namespace eventsForAnAddressTransaction$1 {
|
|
128
|
+
export { eventsForAnAddressTransaction$1_eventsForAnAddressTransaction as eventsForAnAddressTransaction };
|
|
129
|
+
}
|
|
130
|
+
|
|
434
131
|
type Args$i = {
|
|
435
132
|
address: string;
|
|
436
133
|
} & 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">>>;
|
|
134
|
+
type Result = OperationResponse["/extended/v2/addresses/{address}/transactions"];
|
|
135
|
+
declare function addressTransactions(args: Args$i): Promise<Result$1<Result, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
917
136
|
|
|
918
|
-
type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
|
|
919
137
|
type addressTransactions$1_Result = Result;
|
|
920
138
|
declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
|
|
921
139
|
declare namespace addressTransactions$1 {
|
|
922
|
-
export { type addressTransactions$
|
|
140
|
+
export { type addressTransactions$1_Result as Result, addressTransactions$1_addressTransactions as addressTransactions };
|
|
923
141
|
}
|
|
924
142
|
|
|
925
143
|
type Args$h = {
|
|
926
144
|
poolPrincipal: string;
|
|
927
|
-
afterBlock?: number;
|
|
145
|
+
afterBlock?: string | number | bigint;
|
|
928
146
|
unanchored?: boolean;
|
|
929
147
|
limit?: number;
|
|
930
148
|
offset?: number;
|
|
931
149
|
} & 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>>;
|
|
150
|
+
type Response$5 = OperationResponse["get_pool_delegations"];
|
|
151
|
+
declare function members(args: Args$h): Promise<Result$1<Response$5>>;
|
|
956
152
|
|
|
957
|
-
type members$1_Member = Member;
|
|
958
|
-
type members$1_MembersResponse = MembersResponse;
|
|
959
|
-
declare const members$1_memberSchema: typeof memberSchema;
|
|
960
153
|
declare const members$1_members: typeof members;
|
|
961
|
-
declare const members$1_membersResponseSchema: typeof membersResponseSchema;
|
|
962
154
|
declare namespace members$1 {
|
|
963
|
-
export { type Args$h as Args, type
|
|
155
|
+
export { type Args$h as Args, type Response$5 as Response, members$1_members as members };
|
|
964
156
|
}
|
|
965
157
|
|
|
966
158
|
type Args$g = {
|
|
967
|
-
cycleNumber: number;
|
|
159
|
+
cycleNumber: string | number | bigint;
|
|
968
160
|
signerPublicKey: string;
|
|
969
161
|
} & 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">>>;
|
|
162
|
+
type Response$4 = OperationResponse["get_pox_cycle_signer_stackers"];
|
|
163
|
+
declare function stackersForSignerInCycle(opts: Args$g): Promise<Result$1<Response$4, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError">>>;
|
|
997
164
|
|
|
998
|
-
type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
|
|
999
|
-
type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
|
|
1000
|
-
declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
|
|
1001
165
|
declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1002
|
-
declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
|
|
1003
166
|
declare namespace stackersForSignerInCycle$1 {
|
|
1004
|
-
export { type Args$g as Args, type
|
|
167
|
+
export { type Args$g as Args, type Response$4 as Response, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle };
|
|
1005
168
|
}
|
|
1006
169
|
|
|
1007
170
|
type Args$f = {
|
|
@@ -1140,12 +303,12 @@ declare const responseSchema$2: v.ObjectSchema<{
|
|
|
1140
303
|
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
1141
304
|
readonly total_signers: v.NumberSchema<undefined>;
|
|
1142
305
|
}, undefined>;
|
|
1143
|
-
type Response$
|
|
1144
|
-
declare function cycle(opts: Args$c): Promise<Result$1<Response$
|
|
306
|
+
type Response$3 = v.InferOutput<typeof responseSchema$2>;
|
|
307
|
+
declare function cycle(opts: Args$c): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1145
308
|
|
|
1146
309
|
declare const cycle$1_cycle: typeof cycle;
|
|
1147
310
|
declare namespace cycle$1 {
|
|
1148
|
-
export { type Args$c as Args, type Response$
|
|
311
|
+
export { type Args$c as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
|
|
1149
312
|
}
|
|
1150
313
|
|
|
1151
314
|
type FeePrioritiesResponse = {
|
|
@@ -1194,9 +357,9 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
|
|
|
1194
357
|
readonly stacks_tip_height: v.NumberSchema<undefined>;
|
|
1195
358
|
readonly stacks_tip: v.StringSchema<undefined>;
|
|
1196
359
|
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>,
|
|
360
|
+
readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
361
|
+
readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
362
|
+
readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1200
363
|
}, undefined>;
|
|
1201
364
|
type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
|
|
1202
365
|
declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
|
|
@@ -1242,32 +405,31 @@ declare const responseSchema$1: v.ObjectSchema<{
|
|
|
1242
405
|
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
1243
406
|
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
1244
407
|
}, undefined>;
|
|
1245
|
-
type Response$
|
|
1246
|
-
declare function getBlock(opts: Args$a): Promise<Result$1<Response$
|
|
408
|
+
type Response$2 = v.InferOutput<typeof responseSchema$1>;
|
|
409
|
+
declare function getBlock(opts: Args$a): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1247
410
|
|
|
1248
411
|
declare const getBlock$1_getBlock: typeof getBlock;
|
|
1249
412
|
declare namespace getBlock$1 {
|
|
1250
|
-
export { type Args$a as Args, type Response$
|
|
413
|
+
export { type Args$a as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
|
|
1251
414
|
}
|
|
1252
415
|
|
|
1253
416
|
type Args$9 = {
|
|
1254
417
|
principal: string;
|
|
1255
418
|
} & ApiRequestOptions;
|
|
1256
419
|
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>,
|
|
420
|
+
readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
421
|
+
readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1259
422
|
readonly possible_next_nonce: v.NumberSchema<undefined>;
|
|
1260
423
|
readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1261
424
|
readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1262
425
|
}, undefined>;
|
|
1263
|
-
type Response = v.InferOutput<typeof responseSchema>;
|
|
1264
|
-
declare function latestNonce(opts: Args$9): Promise<Result$1<Response, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
426
|
+
type Response$1 = v.InferOutput<typeof responseSchema>;
|
|
427
|
+
declare function latestNonce(opts: Args$9): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1265
428
|
|
|
1266
|
-
type latestNonce$1_Response = Response;
|
|
1267
429
|
declare const latestNonce$1_latestNonce: typeof latestNonce;
|
|
1268
430
|
declare const latestNonce$1_responseSchema: typeof responseSchema;
|
|
1269
431
|
declare namespace latestNonce$1 {
|
|
1270
|
-
export { type Args$9 as Args, type
|
|
432
|
+
export { type Args$9 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, latestNonce$1_responseSchema as responseSchema };
|
|
1271
433
|
}
|
|
1272
434
|
|
|
1273
435
|
type Args$8 = {
|
|
@@ -1343,13 +505,15 @@ declare namespace index$9 {
|
|
|
1343
505
|
|
|
1344
506
|
declare const transactions: {
|
|
1345
507
|
addressTransactions: typeof addressTransactions;
|
|
508
|
+
eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
1346
509
|
getTransaction: typeof getTransaction;
|
|
1347
510
|
mempoolTransactions: typeof mempoolTransactions;
|
|
511
|
+
getRawTransaction: typeof getRawTransaction;
|
|
1348
512
|
};
|
|
1349
513
|
|
|
1350
514
|
declare const index$8_transactions: typeof transactions;
|
|
1351
515
|
declare namespace index$8 {
|
|
1352
|
-
export { addressTransactions$1 as AddressTransactions,
|
|
516
|
+
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
517
|
}
|
|
1354
518
|
|
|
1355
519
|
declare const mempool: {
|
|
@@ -1390,8 +554,10 @@ declare const stacksApi: {
|
|
|
1390
554
|
};
|
|
1391
555
|
transactions: {
|
|
1392
556
|
addressTransactions: typeof addressTransactions;
|
|
557
|
+
eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
1393
558
|
getTransaction: typeof getTransaction;
|
|
1394
559
|
mempoolTransactions: typeof mempoolTransactions;
|
|
560
|
+
getRawTransaction: typeof getRawTransaction;
|
|
1395
561
|
};
|
|
1396
562
|
};
|
|
1397
563
|
|
|
@@ -1442,7 +608,7 @@ declare const mapEntryResponseSchema: v.ObjectSchema<{
|
|
|
1442
608
|
/**
|
|
1443
609
|
* Hex-encoded string of the MARF proof for the data
|
|
1444
610
|
*/
|
|
1445
|
-
readonly proof: v.OptionalSchema<v.StringSchema<undefined>,
|
|
611
|
+
readonly proof: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1446
612
|
}, undefined>;
|
|
1447
613
|
type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
|
|
1448
614
|
declare function mapEntry(args: Args$6): Promise<Result$1<MapEntryResponse>>;
|
|
@@ -1792,4 +958,4 @@ declare namespace index {
|
|
|
1792
958
|
export { index$2 as Maps, index$1 as ReadOnly, index_pox4Api as pox4Api };
|
|
1793
959
|
}
|
|
1794
960
|
|
|
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 };
|
|
961
|
+
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 };
|