@shapeshiftoss/unchained-client 4.0.0 → 5.1.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.
Files changed (61) hide show
  1. package/dist/bitcoin/websocket.d.ts.map +1 -1
  2. package/dist/bitcoin/websocket.js +5 -3
  3. package/dist/bitcoin/websocket.js.map +1 -1
  4. package/dist/cosmos/index.d.ts +2 -0
  5. package/dist/cosmos/index.d.ts.map +1 -0
  6. package/dist/cosmos/index.js +24 -0
  7. package/dist/cosmos/index.js.map +1 -0
  8. package/dist/ethereum/websocket.d.ts.map +1 -1
  9. package/dist/ethereum/websocket.js +5 -3
  10. package/dist/ethereum/websocket.js.map +1 -1
  11. package/dist/generated/bitcoin/api.d.ts +66 -22
  12. package/dist/generated/bitcoin/api.d.ts.map +1 -1
  13. package/dist/generated/bitcoin/api.js +53 -1
  14. package/dist/generated/bitcoin/api.js.map +1 -1
  15. package/dist/generated/bitcoin/base.d.ts +1 -1
  16. package/dist/generated/bitcoin/base.js +1 -1
  17. package/dist/generated/bitcoin/common.d.ts +1 -1
  18. package/dist/generated/bitcoin/common.js +1 -1
  19. package/dist/generated/bitcoin/configuration.d.ts +1 -1
  20. package/dist/generated/bitcoin/configuration.js +1 -1
  21. package/dist/generated/bitcoin/index.d.ts +1 -1
  22. package/dist/generated/bitcoin/index.js +1 -1
  23. package/dist/generated/cosmos/api.d.ts +939 -0
  24. package/dist/generated/cosmos/api.d.ts.map +1 -0
  25. package/dist/generated/cosmos/api.js +423 -0
  26. package/dist/generated/cosmos/api.js.map +1 -0
  27. package/dist/generated/cosmos/base.d.ts +56 -0
  28. package/dist/generated/cosmos/base.d.ts.map +1 -0
  29. package/dist/generated/cosmos/base.js +65 -0
  30. package/dist/generated/cosmos/base.js.map +1 -0
  31. package/dist/generated/cosmos/common.d.ts +66 -0
  32. package/dist/generated/cosmos/common.d.ts.map +1 -0
  33. package/dist/generated/cosmos/common.js +153 -0
  34. package/dist/generated/cosmos/common.js.map +1 -0
  35. package/dist/generated/cosmos/configuration.d.ts +84 -0
  36. package/dist/generated/cosmos/configuration.d.ts.map +1 -0
  37. package/dist/generated/cosmos/configuration.js +43 -0
  38. package/dist/generated/cosmos/configuration.js.map +1 -0
  39. package/dist/generated/cosmos/index.d.ts +14 -0
  40. package/dist/generated/cosmos/index.d.ts.map +1 -0
  41. package/dist/generated/cosmos/index.js +28 -0
  42. package/dist/generated/cosmos/index.js.map +1 -0
  43. package/dist/generated/ethereum/api.d.ts +78 -9
  44. package/dist/generated/ethereum/api.d.ts.map +1 -1
  45. package/dist/generated/ethereum/api.js +65 -13
  46. package/dist/generated/ethereum/api.js.map +1 -1
  47. package/dist/generated/ethereum/base.d.ts +1 -1
  48. package/dist/generated/ethereum/base.js +1 -1
  49. package/dist/generated/ethereum/common.d.ts +1 -1
  50. package/dist/generated/ethereum/common.js +1 -1
  51. package/dist/generated/ethereum/configuration.d.ts +1 -1
  52. package/dist/generated/ethereum/configuration.js +1 -1
  53. package/dist/generated/ethereum/index.d.ts +1 -1
  54. package/dist/generated/ethereum/index.js +1 -1
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +2 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/tsconfig.tsbuildinfo +1334 -31
  60. package/package.json +5 -5
  61. package/LICENSE +0 -21
@@ -0,0 +1,939 @@
1
+ /**
2
+ * Cosmos Unchained API
3
+ * Provides access to cosmos chain data
4
+ *
5
+ * The version of the OpenAPI document: 5.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 } 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<Value>}
66
+ * @memberof Account
67
+ */
68
+ rewards: Array<Value>;
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<Value>}
115
+ * @memberof AccountAllOf
116
+ */
117
+ rewards: Array<Value>;
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 {string}
229
+ * @memberof BaseTx
230
+ */
231
+ blockHeight?: string;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof BaseTx
236
+ */
237
+ timestamp?: string;
238
+ /**
239
+ *
240
+ * @type {string}
241
+ * @memberof BaseTx
242
+ */
243
+ txid: string;
244
+ }
245
+ /**
246
+ *
247
+ * @export
248
+ * @interface BaseTxHistory
249
+ */
250
+ export interface BaseTxHistory {
251
+ /**
252
+ *
253
+ * @type {number}
254
+ * @memberof BaseTxHistory
255
+ */
256
+ page: number;
257
+ /**
258
+ *
259
+ * @type {number}
260
+ * @memberof BaseTxHistory
261
+ */
262
+ totalPages: number;
263
+ /**
264
+ *
265
+ * @type {string}
266
+ * @memberof BaseTxHistory
267
+ */
268
+ pubkey: string;
269
+ /**
270
+ *
271
+ * @type {Array<Tx>}
272
+ * @memberof BaseTxHistory
273
+ */
274
+ txs?: Array<Tx>;
275
+ }
276
+ /**
277
+ *
278
+ * @export
279
+ * @interface BaseTxHistoryAllOf
280
+ */
281
+ export interface BaseTxHistoryAllOf {
282
+ /**
283
+ *
284
+ * @type {string}
285
+ * @memberof BaseTxHistoryAllOf
286
+ */
287
+ pubkey: string;
288
+ /**
289
+ *
290
+ * @type {Array<Tx>}
291
+ * @memberof BaseTxHistoryAllOf
292
+ */
293
+ txs?: Array<Tx>;
294
+ }
295
+ /**
296
+ * Contains info about a staking delegation
297
+ * @export
298
+ * @interface Delegation
299
+ */
300
+ export interface Delegation {
301
+ /**
302
+ *
303
+ * @type {Value}
304
+ * @memberof Delegation
305
+ */
306
+ balance: Value;
307
+ /**
308
+ *
309
+ * @type {string}
310
+ * @memberof Delegation
311
+ */
312
+ shares: string;
313
+ /**
314
+ *
315
+ * @type {string}
316
+ * @memberof Delegation
317
+ */
318
+ validator: string;
319
+ }
320
+ /**
321
+ * Contains info about a transaction log event
322
+ * @export
323
+ * @interface Event
324
+ */
325
+ export interface Event {
326
+ /**
327
+ *
328
+ * @type {Array<Attribute>}
329
+ * @memberof Event
330
+ */
331
+ attributes: Array<Attribute>;
332
+ /**
333
+ *
334
+ * @type {string}
335
+ * @memberof Event
336
+ */
337
+ type: string;
338
+ }
339
+ /**
340
+ * Contains info about the running coinstack
341
+ * @export
342
+ * @interface Info
343
+ */
344
+ export interface Info {
345
+ /**
346
+ *
347
+ * @type {string}
348
+ * @memberof Info
349
+ */
350
+ network: string;
351
+ }
352
+ /**
353
+ *
354
+ * @export
355
+ * @interface InlineObject
356
+ */
357
+ export interface InlineObject {
358
+ /**
359
+ * Raw transaction hex
360
+ * @type {string}
361
+ * @memberof InlineObject
362
+ */
363
+ hex: string;
364
+ }
365
+ /**
366
+ * Contains info about a 500 Internal Server Error response
367
+ * @export
368
+ * @interface InternalServerError
369
+ */
370
+ export interface InternalServerError {
371
+ /**
372
+ *
373
+ * @type {string}
374
+ * @memberof InternalServerError
375
+ */
376
+ message?: string;
377
+ }
378
+ /**
379
+ * Contains info about a transaction message
380
+ * @export
381
+ * @interface Message
382
+ */
383
+ export interface Message {
384
+ /**
385
+ *
386
+ * @type {string}
387
+ * @memberof Message
388
+ */
389
+ from?: string;
390
+ /**
391
+ *
392
+ * @type {string}
393
+ * @memberof Message
394
+ */
395
+ to?: string;
396
+ /**
397
+ *
398
+ * @type {string}
399
+ * @memberof Message
400
+ */
401
+ type: string;
402
+ /**
403
+ *
404
+ * @type {Value}
405
+ * @memberof Message
406
+ */
407
+ value?: Value;
408
+ }
409
+ /**
410
+ * Contains info about pagination for large sets of data
411
+ * @export
412
+ * @interface Pagination
413
+ */
414
+ export interface Pagination {
415
+ /**
416
+ *
417
+ * @type {number}
418
+ * @memberof Pagination
419
+ */
420
+ page: number;
421
+ /**
422
+ *
423
+ * @type {number}
424
+ * @memberof Pagination
425
+ */
426
+ totalPages: number;
427
+ }
428
+ /**
429
+ * Contains info about a staking redelegation
430
+ * @export
431
+ * @interface Redelegation
432
+ */
433
+ export interface Redelegation {
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof Redelegation
438
+ */
439
+ destinationValidator: string;
440
+ /**
441
+ *
442
+ * @type {Array<RedelegationEntry>}
443
+ * @memberof Redelegation
444
+ */
445
+ entries: Array<RedelegationEntry>;
446
+ /**
447
+ *
448
+ * @type {string}
449
+ * @memberof Redelegation
450
+ */
451
+ sourceValidator: string;
452
+ }
453
+ /**
454
+ * Contains info about a redelegation action
455
+ * @export
456
+ * @interface RedelegationEntry
457
+ */
458
+ export interface RedelegationEntry {
459
+ /**
460
+ *
461
+ * @type {string}
462
+ * @memberof RedelegationEntry
463
+ */
464
+ completionTime: string;
465
+ /**
466
+ *
467
+ * @type {string}
468
+ * @memberof RedelegationEntry
469
+ */
470
+ shares: string;
471
+ }
472
+ /**
473
+ *
474
+ * @export
475
+ * @interface Tx
476
+ */
477
+ export interface Tx {
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof Tx
482
+ */
483
+ blockHash?: string;
484
+ /**
485
+ *
486
+ * @type {string}
487
+ * @memberof Tx
488
+ */
489
+ blockHeight?: string;
490
+ /**
491
+ *
492
+ * @type {Array<Event>}
493
+ * @memberof Tx
494
+ */
495
+ events?: Array<Event>;
496
+ /**
497
+ *
498
+ * @type {Value}
499
+ * @memberof Tx
500
+ */
501
+ fee?: Value;
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof Tx
506
+ */
507
+ gasUsed?: string;
508
+ /**
509
+ *
510
+ * @type {string}
511
+ * @memberof Tx
512
+ */
513
+ gasWanted?: string;
514
+ /**
515
+ *
516
+ * @type {number}
517
+ * @memberof Tx
518
+ */
519
+ index?: number;
520
+ /**
521
+ *
522
+ * @type {string}
523
+ * @memberof Tx
524
+ */
525
+ memo?: string;
526
+ /**
527
+ *
528
+ * @type {Array<Message>}
529
+ * @memberof Tx
530
+ */
531
+ messages?: Array<Message>;
532
+ /**
533
+ *
534
+ * @type {string}
535
+ * @memberof Tx
536
+ */
537
+ timestamp?: string;
538
+ /**
539
+ *
540
+ * @type {string}
541
+ * @memberof Tx
542
+ */
543
+ txid: string;
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof Tx
548
+ */
549
+ value?: string;
550
+ }
551
+ /**
552
+ * Contains info about transaction history for an address or xpub
553
+ * @export
554
+ * @interface TxHistory
555
+ */
556
+ export interface TxHistory {
557
+ /**
558
+ *
559
+ * @type {Array<Tx>}
560
+ * @memberof TxHistory
561
+ */
562
+ txs: Array<Tx>;
563
+ /**
564
+ *
565
+ * @type {number}
566
+ * @memberof TxHistory
567
+ */
568
+ page: number;
569
+ /**
570
+ *
571
+ * @type {number}
572
+ * @memberof TxHistory
573
+ */
574
+ totalPages: number;
575
+ /**
576
+ *
577
+ * @type {string}
578
+ * @memberof TxHistory
579
+ */
580
+ pubkey: string;
581
+ }
582
+ /**
583
+ *
584
+ * @export
585
+ * @interface TxHistoryAllOf
586
+ */
587
+ export interface TxHistoryAllOf {
588
+ /**
589
+ *
590
+ * @type {Array<Tx>}
591
+ * @memberof TxHistoryAllOf
592
+ */
593
+ txs: Array<Tx>;
594
+ }
595
+ /**
596
+ * Contains info about a staking unbonding
597
+ * @export
598
+ * @interface Unbonding
599
+ */
600
+ export interface Unbonding {
601
+ /**
602
+ *
603
+ * @type {Array<UnbondingEntry>}
604
+ * @memberof Unbonding
605
+ */
606
+ entries: Array<UnbondingEntry>;
607
+ /**
608
+ *
609
+ * @type {string}
610
+ * @memberof Unbonding
611
+ */
612
+ validator: string;
613
+ }
614
+ /**
615
+ * Contains info about an unbonding action
616
+ * @export
617
+ * @interface UnbondingEntry
618
+ */
619
+ export interface UnbondingEntry {
620
+ /**
621
+ *
622
+ * @type {Value}
623
+ * @memberof UnbondingEntry
624
+ */
625
+ balance: Value;
626
+ /**
627
+ *
628
+ * @type {string}
629
+ * @memberof UnbondingEntry
630
+ */
631
+ completionTime: string;
632
+ }
633
+ /**
634
+ * Contains info about a 422 Validation Error response
635
+ * @export
636
+ * @interface ValidationError
637
+ */
638
+ export interface ValidationError {
639
+ /**
640
+ *
641
+ * @type {{ [key: string]: string; }}
642
+ * @memberof ValidationError
643
+ */
644
+ details: {
645
+ [key: string]: string;
646
+ };
647
+ /**
648
+ *
649
+ * @type {string}
650
+ * @memberof ValidationError
651
+ */
652
+ message: string;
653
+ }
654
+ /**
655
+ * Contains info about an asset value
656
+ * @export
657
+ * @interface Value
658
+ */
659
+ export interface Value {
660
+ /**
661
+ *
662
+ * @type {string}
663
+ * @memberof Value
664
+ */
665
+ amount: string;
666
+ /**
667
+ *
668
+ * @type {string}
669
+ * @memberof Value
670
+ */
671
+ denom: string;
672
+ }
673
+ /**
674
+ * V1Api - axios parameter creator
675
+ * @export
676
+ */
677
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
678
+ /**
679
+ *
680
+ * @summary Get account details.
681
+ * @param {string} pubkey Account address or xpub
682
+ * @param {*} [options] Override http request option.
683
+ * @throws {RequiredError}
684
+ */
685
+ getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
686
+ /**
687
+ *
688
+ * @summary Get information about the running coinstack.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ getInfo: (options?: any) => Promise<RequestArgs>;
693
+ /**
694
+ *
695
+ * @summary Get paginated transaction history.
696
+ * @param {string} pubkey Account address or xpub
697
+ * @param {number} [page] Page number (default 1)
698
+ * @param {number} [pageSize] Page size (default 25)
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ getTxHistory: (pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
703
+ /**
704
+ *
705
+ * @summary Sends raw transaction to be broadcast to the node.
706
+ * @param {InlineObject} [body]
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ sendTx: (body?: InlineObject | undefined, options?: any) => Promise<RequestArgs>;
711
+ };
712
+ /**
713
+ * V1Api - functional programming interface
714
+ * @export
715
+ */
716
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
717
+ /**
718
+ *
719
+ * @summary Get account details.
720
+ * @param {string} pubkey Account address or xpub
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
725
+ /**
726
+ *
727
+ * @summary Get information about the running coinstack.
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
732
+ /**
733
+ *
734
+ * @summary Get paginated transaction history.
735
+ * @param {string} pubkey Account address or xpub
736
+ * @param {number} [page] Page number (default 1)
737
+ * @param {number} [pageSize] Page size (default 25)
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
742
+ /**
743
+ *
744
+ * @summary Sends raw transaction to be broadcast to the node.
745
+ * @param {InlineObject} [body]
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ sendTx(body?: InlineObject | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
750
+ };
751
+ /**
752
+ * V1Api - factory interface
753
+ * @export
754
+ */
755
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
756
+ /**
757
+ *
758
+ * @summary Get account details.
759
+ * @param {string} pubkey Account address or xpub
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
764
+ /**
765
+ *
766
+ * @summary Get information about the running coinstack.
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ getInfo(options?: any): AxiosPromise<Info>;
771
+ /**
772
+ *
773
+ * @summary Get paginated transaction history.
774
+ * @param {string} pubkey Account address or xpub
775
+ * @param {number} [page] Page number (default 1)
776
+ * @param {number} [pageSize] Page size (default 25)
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
781
+ /**
782
+ *
783
+ * @summary Sends raw transaction to be broadcast to the node.
784
+ * @param {InlineObject} [body]
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ */
788
+ sendTx(body?: InlineObject | undefined, options?: any): AxiosPromise<string>;
789
+ };
790
+ /**
791
+ * Request parameters for getAccount operation in V1Api.
792
+ * @export
793
+ * @interface V1ApiGetAccountRequest
794
+ */
795
+ export interface V1ApiGetAccountRequest {
796
+ /**
797
+ * Account address or xpub
798
+ * @type {string}
799
+ * @memberof V1ApiGetAccount
800
+ */
801
+ readonly pubkey: string;
802
+ }
803
+ /**
804
+ * Request parameters for getTxHistory operation in V1Api.
805
+ * @export
806
+ * @interface V1ApiGetTxHistoryRequest
807
+ */
808
+ export interface V1ApiGetTxHistoryRequest {
809
+ /**
810
+ * Account address or xpub
811
+ * @type {string}
812
+ * @memberof V1ApiGetTxHistory
813
+ */
814
+ readonly pubkey: string;
815
+ /**
816
+ * Page number (default 1)
817
+ * @type {number}
818
+ * @memberof V1ApiGetTxHistory
819
+ */
820
+ readonly page?: number;
821
+ /**
822
+ * Page size (default 25)
823
+ * @type {number}
824
+ * @memberof V1ApiGetTxHistory
825
+ */
826
+ readonly pageSize?: number;
827
+ }
828
+ /**
829
+ * Request parameters for sendTx operation in V1Api.
830
+ * @export
831
+ * @interface V1ApiSendTxRequest
832
+ */
833
+ export interface V1ApiSendTxRequest {
834
+ /**
835
+ *
836
+ * @type {InlineObject}
837
+ * @memberof V1ApiSendTx
838
+ */
839
+ readonly body?: InlineObject;
840
+ }
841
+ /**
842
+ * V1Api - object-oriented interface
843
+ * @export
844
+ * @class V1Api
845
+ * @extends {BaseAPI}
846
+ */
847
+ export declare class V1Api extends BaseAPI {
848
+ /**
849
+ *
850
+ * @summary Get account details.
851
+ * @param {V1ApiGetAccountRequest} requestParameters Request parameters.
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ * @memberof V1Api
855
+ */
856
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<Account>>;
857
+ /**
858
+ *
859
+ * @summary Get information about the running coinstack.
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ * @memberof V1Api
863
+ */
864
+ getInfo(options?: any): Promise<import("axios").AxiosResponse<Info>>;
865
+ /**
866
+ *
867
+ * @summary Get paginated transaction history.
868
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ * @memberof V1Api
872
+ */
873
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
874
+ /**
875
+ *
876
+ * @summary Sends raw transaction to be broadcast to the node.
877
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ * @memberof V1Api
881
+ */
882
+ sendTx(requestParameters?: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
883
+ }
884
+ /**
885
+ * WebsocketApi - axios parameter creator
886
+ * @export
887
+ */
888
+ export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
889
+ /**
890
+ * Subscribe Example: Unsubscribe Example:
891
+ * @summary Subscribe to pending and confirmed transactions.
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ websocket: (options?: any) => Promise<RequestArgs>;
896
+ };
897
+ /**
898
+ * WebsocketApi - functional programming interface
899
+ * @export
900
+ */
901
+ export declare const WebsocketApiFp: (configuration?: Configuration | undefined) => {
902
+ /**
903
+ * Subscribe Example: Unsubscribe Example:
904
+ * @summary Subscribe to pending and confirmed transactions.
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ websocket(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
909
+ };
910
+ /**
911
+ * WebsocketApi - factory interface
912
+ * @export
913
+ */
914
+ export declare const WebsocketApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
915
+ /**
916
+ * Subscribe Example: Unsubscribe Example:
917
+ * @summary Subscribe to pending and confirmed transactions.
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ websocket(options?: any): AxiosPromise<void>;
922
+ };
923
+ /**
924
+ * WebsocketApi - object-oriented interface
925
+ * @export
926
+ * @class WebsocketApi
927
+ * @extends {BaseAPI}
928
+ */
929
+ export declare class WebsocketApi extends BaseAPI {
930
+ /**
931
+ * Subscribe Example: Unsubscribe Example:
932
+ * @summary Subscribe to pending and confirmed transactions.
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ * @memberof WebsocketApi
936
+ */
937
+ websocket(options?: any): Promise<import("axios").AxiosResponse<void>>;
938
+ }
939
+ //# sourceMappingURL=api.d.ts.map