@shapeshiftoss/unchained-client 8.1.0 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/osmosis/api.d.ts +1293 -0
- package/dist/generated/osmosis/api.js +566 -0
- package/dist/generated/osmosis/base.d.ts +55 -0
- package/dist/generated/osmosis/base.js +64 -0
- package/dist/generated/osmosis/common.d.ts +65 -0
- package/dist/generated/osmosis/common.js +137 -0
- package/dist/generated/osmosis/configuration.d.ts +83 -0
- package/dist/generated/osmosis/configuration.js +42 -0
- package/dist/generated/osmosis/index.d.ts +13 -0
- package/dist/generated/osmosis/index.js +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/osmosis/index.d.ts +1 -0
- package/dist/osmosis/index.js +17 -0
- package/package.json +11 -8
|
@@ -0,0 +1,1293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Osmosis Unchained API
|
|
3
|
+
* Provides access to osmosis chain data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from './configuration';
|
|
13
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from './base';
|
|
15
|
+
/**
|
|
16
|
+
* Contains info about account details for an address or xpub
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Account
|
|
19
|
+
*/
|
|
20
|
+
export interface Account {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Account
|
|
25
|
+
*/
|
|
26
|
+
'balance': string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Account
|
|
31
|
+
*/
|
|
32
|
+
'pubkey': string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof Account
|
|
37
|
+
*/
|
|
38
|
+
'unconfirmedBalance': string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof Account
|
|
43
|
+
*/
|
|
44
|
+
'accountNumber': number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<Value>}
|
|
48
|
+
* @memberof Account
|
|
49
|
+
*/
|
|
50
|
+
'assets': Array<Value>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<Delegation>}
|
|
54
|
+
* @memberof Account
|
|
55
|
+
*/
|
|
56
|
+
'delegations': Array<Delegation>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<Redelegation>}
|
|
60
|
+
* @memberof Account
|
|
61
|
+
*/
|
|
62
|
+
'redelegations': Array<Redelegation>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<Reward>}
|
|
66
|
+
* @memberof Account
|
|
67
|
+
*/
|
|
68
|
+
'rewards': Array<Reward>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof Account
|
|
73
|
+
*/
|
|
74
|
+
'sequence': number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<Unbonding>}
|
|
78
|
+
* @memberof Account
|
|
79
|
+
*/
|
|
80
|
+
'unbondings': Array<Unbonding>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @interface AccountAllOf
|
|
86
|
+
*/
|
|
87
|
+
export interface AccountAllOf {
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof AccountAllOf
|
|
92
|
+
*/
|
|
93
|
+
'accountNumber': number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<Value>}
|
|
97
|
+
* @memberof AccountAllOf
|
|
98
|
+
*/
|
|
99
|
+
'assets': Array<Value>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Array<Delegation>}
|
|
103
|
+
* @memberof AccountAllOf
|
|
104
|
+
*/
|
|
105
|
+
'delegations': Array<Delegation>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<Redelegation>}
|
|
109
|
+
* @memberof AccountAllOf
|
|
110
|
+
*/
|
|
111
|
+
'redelegations': Array<Redelegation>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {Array<Reward>}
|
|
115
|
+
* @memberof AccountAllOf
|
|
116
|
+
*/
|
|
117
|
+
'rewards': Array<Reward>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof AccountAllOf
|
|
122
|
+
*/
|
|
123
|
+
'sequence': number;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {Array<Unbonding>}
|
|
127
|
+
* @memberof AccountAllOf
|
|
128
|
+
*/
|
|
129
|
+
'unbondings': Array<Unbonding>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Generic api error for handling failed requests
|
|
133
|
+
* @export
|
|
134
|
+
* @interface ApiError
|
|
135
|
+
*/
|
|
136
|
+
export interface ApiError {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof ApiError
|
|
141
|
+
*/
|
|
142
|
+
'message': string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Contains info about a transaction log event key/val attribute
|
|
146
|
+
* @export
|
|
147
|
+
* @interface Attribute
|
|
148
|
+
*/
|
|
149
|
+
export interface Attribute {
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof Attribute
|
|
154
|
+
*/
|
|
155
|
+
'key': string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof Attribute
|
|
160
|
+
*/
|
|
161
|
+
'value': string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Contains info about a 400 Bad Request response
|
|
165
|
+
* @export
|
|
166
|
+
* @interface BadRequestError
|
|
167
|
+
*/
|
|
168
|
+
export interface BadRequestError {
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof BadRequestError
|
|
173
|
+
*/
|
|
174
|
+
'error': string;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Contains info about required base account details for an address or xpub
|
|
178
|
+
* @export
|
|
179
|
+
* @interface BaseAccount
|
|
180
|
+
*/
|
|
181
|
+
export interface BaseAccount {
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof BaseAccount
|
|
186
|
+
*/
|
|
187
|
+
'balance': string;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof BaseAccount
|
|
192
|
+
*/
|
|
193
|
+
'pubkey': string;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof BaseAccount
|
|
198
|
+
*/
|
|
199
|
+
'unconfirmedBalance': string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Contains required base info about the running coinstack
|
|
203
|
+
* @export
|
|
204
|
+
* @interface BaseInfo
|
|
205
|
+
*/
|
|
206
|
+
export interface BaseInfo {
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof BaseInfo
|
|
211
|
+
*/
|
|
212
|
+
'network': string;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Contains info about required base transaction details
|
|
216
|
+
* @export
|
|
217
|
+
* @interface BaseTx
|
|
218
|
+
*/
|
|
219
|
+
export interface BaseTx {
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof BaseTx
|
|
224
|
+
*/
|
|
225
|
+
'blockHash'?: string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {number}
|
|
229
|
+
* @memberof BaseTx
|
|
230
|
+
*/
|
|
231
|
+
'blockHeight'?: number;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {number}
|
|
235
|
+
* @memberof BaseTx
|
|
236
|
+
*/
|
|
237
|
+
'timestamp'?: number;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof BaseTx
|
|
242
|
+
*/
|
|
243
|
+
'txid': string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Contains info about required base transaction history details
|
|
247
|
+
* @export
|
|
248
|
+
* @interface BaseTxHistory
|
|
249
|
+
*/
|
|
250
|
+
export interface BaseTxHistory {
|
|
251
|
+
/**
|
|
252
|
+
* Base64 encoded string to fetch next page or undefined if no more data avaiable
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof BaseTxHistory
|
|
255
|
+
*/
|
|
256
|
+
'cursor': string;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof BaseTxHistory
|
|
261
|
+
*/
|
|
262
|
+
'pubkey': string;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {Array<Tx>}
|
|
266
|
+
* @memberof BaseTxHistory
|
|
267
|
+
*/
|
|
268
|
+
'txs': Array<Tx>;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @export
|
|
273
|
+
* @interface BaseTxHistoryAllOf
|
|
274
|
+
*/
|
|
275
|
+
export interface BaseTxHistoryAllOf {
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof BaseTxHistoryAllOf
|
|
280
|
+
*/
|
|
281
|
+
'pubkey': string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {Array<Tx>}
|
|
285
|
+
* @memberof BaseTxHistoryAllOf
|
|
286
|
+
*/
|
|
287
|
+
'txs': Array<Tx>;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Contains info about a staking delegation
|
|
291
|
+
* @export
|
|
292
|
+
* @interface Delegation
|
|
293
|
+
*/
|
|
294
|
+
export interface Delegation {
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @type {Value}
|
|
298
|
+
* @memberof Delegation
|
|
299
|
+
*/
|
|
300
|
+
'balance': Value;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof Delegation
|
|
305
|
+
*/
|
|
306
|
+
'shares': string;
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {Validator}
|
|
310
|
+
* @memberof Delegation
|
|
311
|
+
*/
|
|
312
|
+
'validator': Validator;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Contains info about a transaction log event
|
|
316
|
+
* @export
|
|
317
|
+
* @interface Event
|
|
318
|
+
*/
|
|
319
|
+
export interface Event {
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {Array<Attribute>}
|
|
323
|
+
* @memberof Event
|
|
324
|
+
*/
|
|
325
|
+
'attributes': Array<Attribute>;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof Event
|
|
330
|
+
*/
|
|
331
|
+
'type': string;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Contains info about the running coinstack
|
|
335
|
+
* @export
|
|
336
|
+
* @interface Info
|
|
337
|
+
*/
|
|
338
|
+
export interface Info {
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @type {string}
|
|
342
|
+
* @memberof Info
|
|
343
|
+
*/
|
|
344
|
+
'network': string;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {string}
|
|
348
|
+
* @memberof Info
|
|
349
|
+
*/
|
|
350
|
+
'apr': string;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @export
|
|
355
|
+
* @interface InfoAllOf
|
|
356
|
+
*/
|
|
357
|
+
export interface InfoAllOf {
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @type {string}
|
|
361
|
+
* @memberof InfoAllOf
|
|
362
|
+
*/
|
|
363
|
+
'apr': string;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @export
|
|
368
|
+
* @interface InlineObject
|
|
369
|
+
*/
|
|
370
|
+
export interface InlineObject {
|
|
371
|
+
/**
|
|
372
|
+
* Raw transaction
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof InlineObject
|
|
375
|
+
*/
|
|
376
|
+
'rawTx': string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @export
|
|
381
|
+
* @interface InlineObject1
|
|
382
|
+
*/
|
|
383
|
+
export interface InlineObject1 {
|
|
384
|
+
/**
|
|
385
|
+
* Raw transaction
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof InlineObject1
|
|
388
|
+
*/
|
|
389
|
+
'rawTx': string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Contains info about a 500 Internal Server Error response
|
|
393
|
+
* @export
|
|
394
|
+
* @interface InternalServerError
|
|
395
|
+
*/
|
|
396
|
+
export interface InternalServerError {
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof InternalServerError
|
|
401
|
+
*/
|
|
402
|
+
'message'?: string;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Contains info about a transaction message
|
|
406
|
+
* @export
|
|
407
|
+
* @interface Message
|
|
408
|
+
*/
|
|
409
|
+
export interface Message {
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof Message
|
|
414
|
+
*/
|
|
415
|
+
'from'?: string;
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof Message
|
|
420
|
+
*/
|
|
421
|
+
'origin'?: string;
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @type {string}
|
|
425
|
+
* @memberof Message
|
|
426
|
+
*/
|
|
427
|
+
'to'?: string;
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @type {string}
|
|
431
|
+
* @memberof Message
|
|
432
|
+
*/
|
|
433
|
+
'type': string;
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @type {Value}
|
|
437
|
+
* @memberof Message
|
|
438
|
+
*/
|
|
439
|
+
'value'?: Value;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Contains info about pagination metadata
|
|
443
|
+
* @export
|
|
444
|
+
* @interface Pagination
|
|
445
|
+
*/
|
|
446
|
+
export interface Pagination {
|
|
447
|
+
/**
|
|
448
|
+
* Base64 encoded string to fetch next page or undefined if no more data avaiable
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof Pagination
|
|
451
|
+
*/
|
|
452
|
+
'cursor': string;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Contains info about a staking redelegation
|
|
456
|
+
* @export
|
|
457
|
+
* @interface Redelegation
|
|
458
|
+
*/
|
|
459
|
+
export interface Redelegation {
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @type {Validator}
|
|
463
|
+
* @memberof Redelegation
|
|
464
|
+
*/
|
|
465
|
+
'destinationValidator': Validator;
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @type {Array<RedelegationEntry>}
|
|
469
|
+
* @memberof Redelegation
|
|
470
|
+
*/
|
|
471
|
+
'entries': Array<RedelegationEntry>;
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @type {Validator}
|
|
475
|
+
* @memberof Redelegation
|
|
476
|
+
*/
|
|
477
|
+
'sourceValidator': Validator;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Contains info about a redelegation action
|
|
481
|
+
* @export
|
|
482
|
+
* @interface RedelegationEntry
|
|
483
|
+
*/
|
|
484
|
+
export interface RedelegationEntry {
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof RedelegationEntry
|
|
489
|
+
*/
|
|
490
|
+
'balance': string;
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof RedelegationEntry
|
|
495
|
+
*/
|
|
496
|
+
'completionTime': string;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof RedelegationEntry
|
|
501
|
+
*/
|
|
502
|
+
'shares': string;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Contains info about a validator reward
|
|
506
|
+
* @export
|
|
507
|
+
* @interface Reward
|
|
508
|
+
*/
|
|
509
|
+
export interface Reward {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {Array<Value>}
|
|
513
|
+
* @memberof Reward
|
|
514
|
+
*/
|
|
515
|
+
'rewards': Array<Value>;
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @type {Validator}
|
|
519
|
+
* @memberof Reward
|
|
520
|
+
*/
|
|
521
|
+
'validator': Validator;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Contains info about a transaction
|
|
525
|
+
* @export
|
|
526
|
+
* @interface Tx
|
|
527
|
+
*/
|
|
528
|
+
export interface Tx {
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof Tx
|
|
533
|
+
*/
|
|
534
|
+
'blockHash'?: string;
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @type {number}
|
|
538
|
+
* @memberof Tx
|
|
539
|
+
*/
|
|
540
|
+
'blockHeight'?: number;
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @type {number}
|
|
544
|
+
* @memberof Tx
|
|
545
|
+
*/
|
|
546
|
+
'timestamp'?: number;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof Tx
|
|
551
|
+
*/
|
|
552
|
+
'txid': string;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {number}
|
|
556
|
+
* @memberof Tx
|
|
557
|
+
*/
|
|
558
|
+
'confirmations': number;
|
|
559
|
+
/**
|
|
560
|
+
* Contains info about tx events keyed by message index
|
|
561
|
+
* @type {{ [key: string]: Array<Event>; }}
|
|
562
|
+
* @memberof Tx
|
|
563
|
+
*/
|
|
564
|
+
'events': {
|
|
565
|
+
[key: string]: Array<Event>;
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {Value}
|
|
570
|
+
* @memberof Tx
|
|
571
|
+
*/
|
|
572
|
+
'fee': Value;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof Tx
|
|
577
|
+
*/
|
|
578
|
+
'gasUsed': string;
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof Tx
|
|
583
|
+
*/
|
|
584
|
+
'gasWanted': string;
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {number}
|
|
588
|
+
* @memberof Tx
|
|
589
|
+
*/
|
|
590
|
+
'index': number;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof Tx
|
|
595
|
+
*/
|
|
596
|
+
'memo'?: string;
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @type {Array<Message>}
|
|
600
|
+
* @memberof Tx
|
|
601
|
+
*/
|
|
602
|
+
'messages': Array<Message>;
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @type {string}
|
|
606
|
+
* @memberof Tx
|
|
607
|
+
*/
|
|
608
|
+
'value': string;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @export
|
|
613
|
+
* @interface TxAllOf
|
|
614
|
+
*/
|
|
615
|
+
export interface TxAllOf {
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @type {number}
|
|
619
|
+
* @memberof TxAllOf
|
|
620
|
+
*/
|
|
621
|
+
'confirmations': number;
|
|
622
|
+
/**
|
|
623
|
+
* Contains info about tx events keyed by message index
|
|
624
|
+
* @type {{ [key: string]: Array<Event>; }}
|
|
625
|
+
* @memberof TxAllOf
|
|
626
|
+
*/
|
|
627
|
+
'events': {
|
|
628
|
+
[key: string]: Array<Event>;
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @type {Value}
|
|
633
|
+
* @memberof TxAllOf
|
|
634
|
+
*/
|
|
635
|
+
'fee': Value;
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @type {string}
|
|
639
|
+
* @memberof TxAllOf
|
|
640
|
+
*/
|
|
641
|
+
'gasUsed': string;
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @type {string}
|
|
645
|
+
* @memberof TxAllOf
|
|
646
|
+
*/
|
|
647
|
+
'gasWanted': string;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {number}
|
|
651
|
+
* @memberof TxAllOf
|
|
652
|
+
*/
|
|
653
|
+
'index': number;
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof TxAllOf
|
|
658
|
+
*/
|
|
659
|
+
'memo'?: string;
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @type {Array<Message>}
|
|
663
|
+
* @memberof TxAllOf
|
|
664
|
+
*/
|
|
665
|
+
'messages': Array<Message>;
|
|
666
|
+
/**
|
|
667
|
+
*
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof TxAllOf
|
|
670
|
+
*/
|
|
671
|
+
'value': string;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Contains info about transaction history for an address or xpub
|
|
675
|
+
* @export
|
|
676
|
+
* @interface TxHistory
|
|
677
|
+
*/
|
|
678
|
+
export interface TxHistory {
|
|
679
|
+
/**
|
|
680
|
+
* Base64 encoded string to fetch next page or undefined if no more data avaiable
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof TxHistory
|
|
683
|
+
*/
|
|
684
|
+
'cursor': string;
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof TxHistory
|
|
689
|
+
*/
|
|
690
|
+
'pubkey': string;
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @type {Array<Tx>}
|
|
694
|
+
* @memberof TxHistory
|
|
695
|
+
*/
|
|
696
|
+
'txs': Array<Tx>;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @export
|
|
701
|
+
* @interface TxHistoryAllOf
|
|
702
|
+
*/
|
|
703
|
+
export interface TxHistoryAllOf {
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<Tx>}
|
|
707
|
+
* @memberof TxHistoryAllOf
|
|
708
|
+
*/
|
|
709
|
+
'txs': Array<Tx>;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Contains info about a staking unbonding
|
|
713
|
+
* @export
|
|
714
|
+
* @interface Unbonding
|
|
715
|
+
*/
|
|
716
|
+
export interface Unbonding {
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @type {Array<UnbondingEntry>}
|
|
720
|
+
* @memberof Unbonding
|
|
721
|
+
*/
|
|
722
|
+
'entries': Array<UnbondingEntry>;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {Validator}
|
|
726
|
+
* @memberof Unbonding
|
|
727
|
+
*/
|
|
728
|
+
'validator': Validator;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Contains info about an unbonding action
|
|
732
|
+
* @export
|
|
733
|
+
* @interface UnbondingEntry
|
|
734
|
+
*/
|
|
735
|
+
export interface UnbondingEntry {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {Value}
|
|
739
|
+
* @memberof UnbondingEntry
|
|
740
|
+
*/
|
|
741
|
+
'balance': Value;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof UnbondingEntry
|
|
746
|
+
*/
|
|
747
|
+
'completionTime': string;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Contains info about a 422 Validation Error response
|
|
751
|
+
* @export
|
|
752
|
+
* @interface ValidationError
|
|
753
|
+
*/
|
|
754
|
+
export interface ValidationError {
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
* @type {{ [key: string]: string; }}
|
|
758
|
+
* @memberof ValidationError
|
|
759
|
+
*/
|
|
760
|
+
'details': {
|
|
761
|
+
[key: string]: string;
|
|
762
|
+
};
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @type {string}
|
|
766
|
+
* @memberof ValidationError
|
|
767
|
+
*/
|
|
768
|
+
'message': string;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Contains info about a validator
|
|
772
|
+
* @export
|
|
773
|
+
* @interface Validator
|
|
774
|
+
*/
|
|
775
|
+
export interface Validator {
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @memberof Validator
|
|
780
|
+
*/
|
|
781
|
+
'address': string;
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof Validator
|
|
786
|
+
*/
|
|
787
|
+
'apr': string;
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @type {ValidatorCommission}
|
|
791
|
+
* @memberof Validator
|
|
792
|
+
*/
|
|
793
|
+
'commission': ValidatorCommission;
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @type {string}
|
|
797
|
+
* @memberof Validator
|
|
798
|
+
*/
|
|
799
|
+
'description': string;
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @type {boolean}
|
|
803
|
+
* @memberof Validator
|
|
804
|
+
*/
|
|
805
|
+
'jailed': boolean;
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @type {string}
|
|
809
|
+
* @memberof Validator
|
|
810
|
+
*/
|
|
811
|
+
'moniker': string;
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof Validator
|
|
816
|
+
*/
|
|
817
|
+
'shares': string;
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof Validator
|
|
822
|
+
*/
|
|
823
|
+
'status': string;
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof Validator
|
|
828
|
+
*/
|
|
829
|
+
'tokens': string;
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @type {ValidatorUnbonding}
|
|
833
|
+
* @memberof Validator
|
|
834
|
+
*/
|
|
835
|
+
'unbonding': ValidatorUnbonding;
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @type {string}
|
|
839
|
+
* @memberof Validator
|
|
840
|
+
*/
|
|
841
|
+
'website': string;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Contains info about validator commission settings
|
|
845
|
+
* @export
|
|
846
|
+
* @interface ValidatorCommission
|
|
847
|
+
*/
|
|
848
|
+
export interface ValidatorCommission {
|
|
849
|
+
/**
|
|
850
|
+
*
|
|
851
|
+
* @type {string}
|
|
852
|
+
* @memberof ValidatorCommission
|
|
853
|
+
*/
|
|
854
|
+
'maxChangeRate': string;
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof ValidatorCommission
|
|
859
|
+
*/
|
|
860
|
+
'maxRate': string;
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @type {string}
|
|
864
|
+
* @memberof ValidatorCommission
|
|
865
|
+
*/
|
|
866
|
+
'rate': string;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Contains info about validator unbonding settings
|
|
870
|
+
* @export
|
|
871
|
+
* @interface ValidatorUnbonding
|
|
872
|
+
*/
|
|
873
|
+
export interface ValidatorUnbonding {
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @type {number}
|
|
877
|
+
* @memberof ValidatorUnbonding
|
|
878
|
+
*/
|
|
879
|
+
'height': number;
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @type {number}
|
|
883
|
+
* @memberof ValidatorUnbonding
|
|
884
|
+
*/
|
|
885
|
+
'timestamp': number;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Contains a list of validators
|
|
889
|
+
* @export
|
|
890
|
+
* @interface Validators
|
|
891
|
+
*/
|
|
892
|
+
export interface Validators {
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @type {Array<Validator>}
|
|
896
|
+
* @memberof Validators
|
|
897
|
+
*/
|
|
898
|
+
'validators': Array<Validator>;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Contains info about an asset value
|
|
902
|
+
* @export
|
|
903
|
+
* @interface Value
|
|
904
|
+
*/
|
|
905
|
+
export interface Value {
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @type {string}
|
|
909
|
+
* @memberof Value
|
|
910
|
+
*/
|
|
911
|
+
'amount': string;
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @type {string}
|
|
915
|
+
* @memberof Value
|
|
916
|
+
*/
|
|
917
|
+
'denom': string;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* V1Api - axios parameter creator
|
|
921
|
+
* @export
|
|
922
|
+
*/
|
|
923
|
+
export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
924
|
+
/**
|
|
925
|
+
* Get the estimated gas cost for a transaction
|
|
926
|
+
* @param {InlineObject} [body]
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
estimateGas: (body?: InlineObject | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @summary Get account details.
|
|
934
|
+
* @param {string} pubkey Account address or xpub
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
*/
|
|
938
|
+
getAccount: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
939
|
+
/**
|
|
940
|
+
*
|
|
941
|
+
* @summary Get information about the running coinstack.
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @summary Get paginated transaction history.
|
|
949
|
+
* @param {string} pubkey Account address or xpub
|
|
950
|
+
* @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
|
|
951
|
+
* @param {number} [pageSize] Page size (default 10)
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
956
|
+
/**
|
|
957
|
+
* Get a specific validator
|
|
958
|
+
* @param {string} pubkey Account address or xpub
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
getValidator: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
963
|
+
/**
|
|
964
|
+
* Get the list of current validators
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
*/
|
|
968
|
+
getValidators: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
969
|
+
/**
|
|
970
|
+
*
|
|
971
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
972
|
+
* @param {InlineObject1} [body]
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
sendTx: (body?: InlineObject1 | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
977
|
+
};
|
|
978
|
+
/**
|
|
979
|
+
* V1Api - functional programming interface
|
|
980
|
+
* @export
|
|
981
|
+
*/
|
|
982
|
+
export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
983
|
+
/**
|
|
984
|
+
* Get the estimated gas cost for a transaction
|
|
985
|
+
* @param {InlineObject} [body]
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
estimateGas(body?: InlineObject | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
|
|
990
|
+
/**
|
|
991
|
+
*
|
|
992
|
+
* @summary Get account details.
|
|
993
|
+
* @param {string} pubkey Account address or xpub
|
|
994
|
+
* @param {*} [options] Override http request option.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
*/
|
|
997
|
+
getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @summary Get information about the running coinstack.
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @summary Get paginated transaction history.
|
|
1008
|
+
* @param {string} pubkey Account address or xpub
|
|
1009
|
+
* @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
|
|
1010
|
+
* @param {number} [pageSize] Page size (default 10)
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Get a specific validator
|
|
1017
|
+
* @param {string} pubkey Account address or xpub
|
|
1018
|
+
* @param {*} [options] Override http request option.
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
*/
|
|
1021
|
+
getValidator(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Validator>>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Get the list of current validators
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
*/
|
|
1027
|
+
getValidators(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Validators>>;
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
1031
|
+
* @param {InlineObject1} [body]
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
sendTx(body?: InlineObject1 | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* V1Api - factory interface
|
|
1039
|
+
* @export
|
|
1040
|
+
*/
|
|
1041
|
+
export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
1042
|
+
/**
|
|
1043
|
+
* Get the estimated gas cost for a transaction
|
|
1044
|
+
* @param {InlineObject} [body]
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
estimateGas(body?: InlineObject | undefined, options?: any): AxiosPromise<string>;
|
|
1049
|
+
/**
|
|
1050
|
+
*
|
|
1051
|
+
* @summary Get account details.
|
|
1052
|
+
* @param {string} pubkey Account address or xpub
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Get information about the running coinstack.
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
getInfo(options?: any): AxiosPromise<Info>;
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Get paginated transaction history.
|
|
1067
|
+
* @param {string} pubkey Account address or xpub
|
|
1068
|
+
* @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
|
|
1069
|
+
* @param {number} [pageSize] Page size (default 10)
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Get a specific validator
|
|
1076
|
+
* @param {string} pubkey Account address or xpub
|
|
1077
|
+
* @param {*} [options] Override http request option.
|
|
1078
|
+
* @throws {RequiredError}
|
|
1079
|
+
*/
|
|
1080
|
+
getValidator(pubkey: string, options?: any): AxiosPromise<Validator>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Get the list of current validators
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
getValidators(options?: any): AxiosPromise<Validators>;
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
1090
|
+
* @param {InlineObject1} [body]
|
|
1091
|
+
* @param {*} [options] Override http request option.
|
|
1092
|
+
* @throws {RequiredError}
|
|
1093
|
+
*/
|
|
1094
|
+
sendTx(body?: InlineObject1 | undefined, options?: any): AxiosPromise<string>;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Request parameters for estimateGas operation in V1Api.
|
|
1098
|
+
* @export
|
|
1099
|
+
* @interface V1ApiEstimateGasRequest
|
|
1100
|
+
*/
|
|
1101
|
+
export interface V1ApiEstimateGasRequest {
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {InlineObject}
|
|
1105
|
+
* @memberof V1ApiEstimateGas
|
|
1106
|
+
*/
|
|
1107
|
+
readonly body?: InlineObject;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Request parameters for getAccount operation in V1Api.
|
|
1111
|
+
* @export
|
|
1112
|
+
* @interface V1ApiGetAccountRequest
|
|
1113
|
+
*/
|
|
1114
|
+
export interface V1ApiGetAccountRequest {
|
|
1115
|
+
/**
|
|
1116
|
+
* Account address or xpub
|
|
1117
|
+
* @type {string}
|
|
1118
|
+
* @memberof V1ApiGetAccount
|
|
1119
|
+
*/
|
|
1120
|
+
readonly pubkey: string;
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Request parameters for getTxHistory operation in V1Api.
|
|
1124
|
+
* @export
|
|
1125
|
+
* @interface V1ApiGetTxHistoryRequest
|
|
1126
|
+
*/
|
|
1127
|
+
export interface V1ApiGetTxHistoryRequest {
|
|
1128
|
+
/**
|
|
1129
|
+
* Account address or xpub
|
|
1130
|
+
* @type {string}
|
|
1131
|
+
* @memberof V1ApiGetTxHistory
|
|
1132
|
+
*/
|
|
1133
|
+
readonly pubkey: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Pagination cursor from previous response or empty string for first page fetch
|
|
1136
|
+
* @type {string}
|
|
1137
|
+
* @memberof V1ApiGetTxHistory
|
|
1138
|
+
*/
|
|
1139
|
+
readonly cursor?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Page size (default 10)
|
|
1142
|
+
* @type {number}
|
|
1143
|
+
* @memberof V1ApiGetTxHistory
|
|
1144
|
+
*/
|
|
1145
|
+
readonly pageSize?: number;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Request parameters for getValidator operation in V1Api.
|
|
1149
|
+
* @export
|
|
1150
|
+
* @interface V1ApiGetValidatorRequest
|
|
1151
|
+
*/
|
|
1152
|
+
export interface V1ApiGetValidatorRequest {
|
|
1153
|
+
/**
|
|
1154
|
+
* Account address or xpub
|
|
1155
|
+
* @type {string}
|
|
1156
|
+
* @memberof V1ApiGetValidator
|
|
1157
|
+
*/
|
|
1158
|
+
readonly pubkey: string;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Request parameters for sendTx operation in V1Api.
|
|
1162
|
+
* @export
|
|
1163
|
+
* @interface V1ApiSendTxRequest
|
|
1164
|
+
*/
|
|
1165
|
+
export interface V1ApiSendTxRequest {
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @type {InlineObject1}
|
|
1169
|
+
* @memberof V1ApiSendTx
|
|
1170
|
+
*/
|
|
1171
|
+
readonly body?: InlineObject1;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* V1Api - object-oriented interface
|
|
1175
|
+
* @export
|
|
1176
|
+
* @class V1Api
|
|
1177
|
+
* @extends {BaseAPI}
|
|
1178
|
+
*/
|
|
1179
|
+
export declare class V1Api extends BaseAPI {
|
|
1180
|
+
/**
|
|
1181
|
+
* Get the estimated gas cost for a transaction
|
|
1182
|
+
* @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
* @memberof V1Api
|
|
1186
|
+
*/
|
|
1187
|
+
estimateGas(requestParameters?: V1ApiEstimateGasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1188
|
+
/**
|
|
1189
|
+
*
|
|
1190
|
+
* @summary Get account details.
|
|
1191
|
+
* @param {V1ApiGetAccountRequest} requestParameters Request parameters.
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
* @memberof V1Api
|
|
1195
|
+
*/
|
|
1196
|
+
getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
|
|
1197
|
+
/**
|
|
1198
|
+
*
|
|
1199
|
+
* @summary Get information about the running coinstack.
|
|
1200
|
+
* @param {*} [options] Override http request option.
|
|
1201
|
+
* @throws {RequiredError}
|
|
1202
|
+
* @memberof V1Api
|
|
1203
|
+
*/
|
|
1204
|
+
getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
|
|
1205
|
+
/**
|
|
1206
|
+
*
|
|
1207
|
+
* @summary Get paginated transaction history.
|
|
1208
|
+
* @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
|
|
1209
|
+
* @param {*} [options] Override http request option.
|
|
1210
|
+
* @throws {RequiredError}
|
|
1211
|
+
* @memberof V1Api
|
|
1212
|
+
*/
|
|
1213
|
+
getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxHistory, any>>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Get a specific validator
|
|
1216
|
+
* @param {V1ApiGetValidatorRequest} requestParameters Request parameters.
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
* @memberof V1Api
|
|
1220
|
+
*/
|
|
1221
|
+
getValidator(requestParameters: V1ApiGetValidatorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Validator, any>>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Get the list of current validators
|
|
1224
|
+
* @param {*} [options] Override http request option.
|
|
1225
|
+
* @throws {RequiredError}
|
|
1226
|
+
* @memberof V1Api
|
|
1227
|
+
*/
|
|
1228
|
+
getValidators(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Validators, any>>;
|
|
1229
|
+
/**
|
|
1230
|
+
*
|
|
1231
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
1232
|
+
* @param {V1ApiSendTxRequest} requestParameters Request parameters.
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
* @memberof V1Api
|
|
1236
|
+
*/
|
|
1237
|
+
sendTx(requestParameters?: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* WebsocketApi - axios parameter creator
|
|
1241
|
+
* @export
|
|
1242
|
+
*/
|
|
1243
|
+
export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
1247
|
+
* @param {*} [options] Override http request option.
|
|
1248
|
+
* @throws {RequiredError}
|
|
1249
|
+
*/
|
|
1250
|
+
websocket: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* WebsocketApi - functional programming interface
|
|
1254
|
+
* @export
|
|
1255
|
+
*/
|
|
1256
|
+
export declare const WebsocketApiFp: (configuration?: Configuration | undefined) => {
|
|
1257
|
+
/**
|
|
1258
|
+
*
|
|
1259
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
websocket(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* WebsocketApi - factory interface
|
|
1267
|
+
* @export
|
|
1268
|
+
*/
|
|
1269
|
+
export declare const WebsocketApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
1270
|
+
/**
|
|
1271
|
+
*
|
|
1272
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
*/
|
|
1276
|
+
websocket(options?: any): AxiosPromise<void>;
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* WebsocketApi - object-oriented interface
|
|
1280
|
+
* @export
|
|
1281
|
+
* @class WebsocketApi
|
|
1282
|
+
* @extends {BaseAPI}
|
|
1283
|
+
*/
|
|
1284
|
+
export declare class WebsocketApi extends BaseAPI {
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
1288
|
+
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
* @memberof WebsocketApi
|
|
1291
|
+
*/
|
|
1292
|
+
websocket(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1293
|
+
}
|