@shapeshiftoss/unchained-client 5.0.0 → 5.2.0

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 +28 -22
  12. package/dist/generated/bitcoin/api.d.ts.map +1 -1
  13. package/dist/generated/bitcoin/api.js +1 -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 +1000 -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 +7 -1
  44. package/dist/generated/ethereum/api.d.ts.map +1 -1
  45. package/dist/generated/ethereum/api.js +1 -1
  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 +124 -37
  60. package/package.json +5 -5
  61. package/LICENSE +0 -21
@@ -0,0 +1,1000 @@
1
+ /**
2
+ * Cosmos Unchained API
3
+ * Provides access to cosmos chain data
4
+ *
5
+ * The version of the OpenAPI document: 5.1.1
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 {Array<string>}
387
+ * @memberof Message
388
+ */
389
+ Addresses?: Array<string>;
390
+ /**
391
+ *
392
+ * @type {string}
393
+ * @memberof Message
394
+ */
395
+ from?: string;
396
+ /**
397
+ *
398
+ * @type {string}
399
+ * @memberof Message
400
+ */
401
+ to?: string;
402
+ /**
403
+ *
404
+ * @type {string}
405
+ * @memberof Message
406
+ */
407
+ type: string;
408
+ /**
409
+ *
410
+ * @type {Value}
411
+ * @memberof Message
412
+ */
413
+ value?: Value;
414
+ }
415
+ /**
416
+ * Contains info about pagination for large sets of data
417
+ * @export
418
+ * @interface Pagination
419
+ */
420
+ export interface Pagination {
421
+ /**
422
+ *
423
+ * @type {number}
424
+ * @memberof Pagination
425
+ */
426
+ page: number;
427
+ /**
428
+ *
429
+ * @type {number}
430
+ * @memberof Pagination
431
+ */
432
+ totalPages: number;
433
+ }
434
+ /**
435
+ * Contains info about a staking redelegation
436
+ * @export
437
+ * @interface Redelegation
438
+ */
439
+ export interface Redelegation {
440
+ /**
441
+ *
442
+ * @type {string}
443
+ * @memberof Redelegation
444
+ */
445
+ destinationValidator: string;
446
+ /**
447
+ *
448
+ * @type {Array<RedelegationEntry>}
449
+ * @memberof Redelegation
450
+ */
451
+ entries: Array<RedelegationEntry>;
452
+ /**
453
+ *
454
+ * @type {string}
455
+ * @memberof Redelegation
456
+ */
457
+ sourceValidator: string;
458
+ }
459
+ /**
460
+ * Contains info about a redelegation action
461
+ * @export
462
+ * @interface RedelegationEntry
463
+ */
464
+ export interface RedelegationEntry {
465
+ /**
466
+ *
467
+ * @type {string}
468
+ * @memberof RedelegationEntry
469
+ */
470
+ completionTime: string;
471
+ /**
472
+ *
473
+ * @type {string}
474
+ * @memberof RedelegationEntry
475
+ */
476
+ shares: string;
477
+ }
478
+ /**
479
+ * Contains info about a transaction
480
+ * @export
481
+ * @interface Tx
482
+ */
483
+ export interface Tx {
484
+ /**
485
+ *
486
+ * @type {string}
487
+ * @memberof Tx
488
+ */
489
+ blockHash?: string;
490
+ /**
491
+ *
492
+ * @type {string}
493
+ * @memberof Tx
494
+ */
495
+ blockHeight?: string;
496
+ /**
497
+ *
498
+ * @type {string}
499
+ * @memberof Tx
500
+ */
501
+ timestamp?: string;
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof Tx
506
+ */
507
+ txid: string;
508
+ /**
509
+ *
510
+ * @type {Array<Event>}
511
+ * @memberof Tx
512
+ */
513
+ events?: Array<Event>;
514
+ /**
515
+ *
516
+ * @type {Value}
517
+ * @memberof Tx
518
+ */
519
+ fee: Value;
520
+ /**
521
+ *
522
+ * @type {string}
523
+ * @memberof Tx
524
+ */
525
+ gasUsed: string;
526
+ /**
527
+ *
528
+ * @type {string}
529
+ * @memberof Tx
530
+ */
531
+ gasWanted: string;
532
+ /**
533
+ *
534
+ * @type {number}
535
+ * @memberof Tx
536
+ */
537
+ index: number;
538
+ /**
539
+ *
540
+ * @type {string}
541
+ * @memberof Tx
542
+ */
543
+ memo: string;
544
+ /**
545
+ *
546
+ * @type {Array<Message>}
547
+ * @memberof Tx
548
+ */
549
+ messages?: Array<Message>;
550
+ /**
551
+ *
552
+ * @type {string}
553
+ * @memberof Tx
554
+ */
555
+ value: string;
556
+ }
557
+ /**
558
+ *
559
+ * @export
560
+ * @interface TxAllOf
561
+ */
562
+ export interface TxAllOf {
563
+ /**
564
+ *
565
+ * @type {Array<Event>}
566
+ * @memberof TxAllOf
567
+ */
568
+ events?: Array<Event>;
569
+ /**
570
+ *
571
+ * @type {Value}
572
+ * @memberof TxAllOf
573
+ */
574
+ fee: Value;
575
+ /**
576
+ *
577
+ * @type {string}
578
+ * @memberof TxAllOf
579
+ */
580
+ gasUsed: string;
581
+ /**
582
+ *
583
+ * @type {string}
584
+ * @memberof TxAllOf
585
+ */
586
+ gasWanted: string;
587
+ /**
588
+ *
589
+ * @type {number}
590
+ * @memberof TxAllOf
591
+ */
592
+ index: number;
593
+ /**
594
+ *
595
+ * @type {string}
596
+ * @memberof TxAllOf
597
+ */
598
+ memo: string;
599
+ /**
600
+ *
601
+ * @type {Array<Message>}
602
+ * @memberof TxAllOf
603
+ */
604
+ messages?: Array<Message>;
605
+ /**
606
+ *
607
+ * @type {string}
608
+ * @memberof TxAllOf
609
+ */
610
+ value: string;
611
+ }
612
+ /**
613
+ * Contains info about transaction history for an address or xpub
614
+ * @export
615
+ * @interface TxHistory
616
+ */
617
+ export interface TxHistory {
618
+ /**
619
+ *
620
+ * @type {Array<Tx>}
621
+ * @memberof TxHistory
622
+ */
623
+ txs: Array<Tx>;
624
+ /**
625
+ *
626
+ * @type {number}
627
+ * @memberof TxHistory
628
+ */
629
+ page: number;
630
+ /**
631
+ *
632
+ * @type {number}
633
+ * @memberof TxHistory
634
+ */
635
+ totalPages: number;
636
+ /**
637
+ *
638
+ * @type {string}
639
+ * @memberof TxHistory
640
+ */
641
+ pubkey: string;
642
+ }
643
+ /**
644
+ *
645
+ * @export
646
+ * @interface TxHistoryAllOf
647
+ */
648
+ export interface TxHistoryAllOf {
649
+ /**
650
+ *
651
+ * @type {Array<Tx>}
652
+ * @memberof TxHistoryAllOf
653
+ */
654
+ txs: Array<Tx>;
655
+ }
656
+ /**
657
+ * Contains info about a staking unbonding
658
+ * @export
659
+ * @interface Unbonding
660
+ */
661
+ export interface Unbonding {
662
+ /**
663
+ *
664
+ * @type {Array<UnbondingEntry>}
665
+ * @memberof Unbonding
666
+ */
667
+ entries: Array<UnbondingEntry>;
668
+ /**
669
+ *
670
+ * @type {string}
671
+ * @memberof Unbonding
672
+ */
673
+ validator: string;
674
+ }
675
+ /**
676
+ * Contains info about an unbonding action
677
+ * @export
678
+ * @interface UnbondingEntry
679
+ */
680
+ export interface UnbondingEntry {
681
+ /**
682
+ *
683
+ * @type {Value}
684
+ * @memberof UnbondingEntry
685
+ */
686
+ balance: Value;
687
+ /**
688
+ *
689
+ * @type {string}
690
+ * @memberof UnbondingEntry
691
+ */
692
+ completionTime: string;
693
+ }
694
+ /**
695
+ * Contains info about a 422 Validation Error response
696
+ * @export
697
+ * @interface ValidationError
698
+ */
699
+ export interface ValidationError {
700
+ /**
701
+ *
702
+ * @type {{ [key: string]: string; }}
703
+ * @memberof ValidationError
704
+ */
705
+ details: {
706
+ [key: string]: string;
707
+ };
708
+ /**
709
+ *
710
+ * @type {string}
711
+ * @memberof ValidationError
712
+ */
713
+ message: string;
714
+ }
715
+ /**
716
+ * Contains info about an asset value
717
+ * @export
718
+ * @interface Value
719
+ */
720
+ export interface Value {
721
+ /**
722
+ *
723
+ * @type {string}
724
+ * @memberof Value
725
+ */
726
+ amount: string;
727
+ /**
728
+ *
729
+ * @type {string}
730
+ * @memberof Value
731
+ */
732
+ denom: string;
733
+ }
734
+ /**
735
+ * V1Api - axios parameter creator
736
+ * @export
737
+ */
738
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
739
+ /**
740
+ *
741
+ * @summary Get account details.
742
+ * @param {string} pubkey Account address or xpub
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
747
+ /**
748
+ *
749
+ * @summary Get information about the running coinstack.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ getInfo: (options?: any) => Promise<RequestArgs>;
754
+ /**
755
+ *
756
+ * @summary Get paginated transaction history.
757
+ * @param {string} pubkey Account address or xpub
758
+ * @param {number} [page] Page number (default 1)
759
+ * @param {number} [pageSize] Page size (default 25)
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ getTxHistory: (pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
764
+ /**
765
+ *
766
+ * @summary Sends raw transaction to be broadcast to the node.
767
+ * @param {InlineObject} [body]
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ sendTx: (body?: InlineObject | undefined, options?: any) => Promise<RequestArgs>;
772
+ };
773
+ /**
774
+ * V1Api - functional programming interface
775
+ * @export
776
+ */
777
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
778
+ /**
779
+ *
780
+ * @summary Get account details.
781
+ * @param {string} pubkey Account address or xpub
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
786
+ /**
787
+ *
788
+ * @summary Get information about the running coinstack.
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
793
+ /**
794
+ *
795
+ * @summary Get paginated transaction history.
796
+ * @param {string} pubkey Account address or xpub
797
+ * @param {number} [page] Page number (default 1)
798
+ * @param {number} [pageSize] Page size (default 25)
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
803
+ /**
804
+ *
805
+ * @summary Sends raw transaction to be broadcast to the node.
806
+ * @param {InlineObject} [body]
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ sendTx(body?: InlineObject | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
811
+ };
812
+ /**
813
+ * V1Api - factory interface
814
+ * @export
815
+ */
816
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
817
+ /**
818
+ *
819
+ * @summary Get account details.
820
+ * @param {string} pubkey Account address or xpub
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
825
+ /**
826
+ *
827
+ * @summary Get information about the running coinstack.
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ getInfo(options?: any): AxiosPromise<Info>;
832
+ /**
833
+ *
834
+ * @summary Get paginated transaction history.
835
+ * @param {string} pubkey Account address or xpub
836
+ * @param {number} [page] Page number (default 1)
837
+ * @param {number} [pageSize] Page size (default 25)
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
842
+ /**
843
+ *
844
+ * @summary Sends raw transaction to be broadcast to the node.
845
+ * @param {InlineObject} [body]
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ sendTx(body?: InlineObject | undefined, options?: any): AxiosPromise<string>;
850
+ };
851
+ /**
852
+ * Request parameters for getAccount operation in V1Api.
853
+ * @export
854
+ * @interface V1ApiGetAccountRequest
855
+ */
856
+ export interface V1ApiGetAccountRequest {
857
+ /**
858
+ * Account address or xpub
859
+ * @type {string}
860
+ * @memberof V1ApiGetAccount
861
+ */
862
+ readonly pubkey: string;
863
+ }
864
+ /**
865
+ * Request parameters for getTxHistory operation in V1Api.
866
+ * @export
867
+ * @interface V1ApiGetTxHistoryRequest
868
+ */
869
+ export interface V1ApiGetTxHistoryRequest {
870
+ /**
871
+ * Account address or xpub
872
+ * @type {string}
873
+ * @memberof V1ApiGetTxHistory
874
+ */
875
+ readonly pubkey: string;
876
+ /**
877
+ * Page number (default 1)
878
+ * @type {number}
879
+ * @memberof V1ApiGetTxHistory
880
+ */
881
+ readonly page?: number;
882
+ /**
883
+ * Page size (default 25)
884
+ * @type {number}
885
+ * @memberof V1ApiGetTxHistory
886
+ */
887
+ readonly pageSize?: number;
888
+ }
889
+ /**
890
+ * Request parameters for sendTx operation in V1Api.
891
+ * @export
892
+ * @interface V1ApiSendTxRequest
893
+ */
894
+ export interface V1ApiSendTxRequest {
895
+ /**
896
+ *
897
+ * @type {InlineObject}
898
+ * @memberof V1ApiSendTx
899
+ */
900
+ readonly body?: InlineObject;
901
+ }
902
+ /**
903
+ * V1Api - object-oriented interface
904
+ * @export
905
+ * @class V1Api
906
+ * @extends {BaseAPI}
907
+ */
908
+ export declare class V1Api extends BaseAPI {
909
+ /**
910
+ *
911
+ * @summary Get account details.
912
+ * @param {V1ApiGetAccountRequest} requestParameters Request parameters.
913
+ * @param {*} [options] Override http request option.
914
+ * @throws {RequiredError}
915
+ * @memberof V1Api
916
+ */
917
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<Account>>;
918
+ /**
919
+ *
920
+ * @summary Get information about the running coinstack.
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ * @memberof V1Api
924
+ */
925
+ getInfo(options?: any): Promise<import("axios").AxiosResponse<Info>>;
926
+ /**
927
+ *
928
+ * @summary Get paginated transaction history.
929
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ * @memberof V1Api
933
+ */
934
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
935
+ /**
936
+ *
937
+ * @summary Sends raw transaction to be broadcast to the node.
938
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ * @memberof V1Api
942
+ */
943
+ sendTx(requestParameters?: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
944
+ }
945
+ /**
946
+ * WebsocketApi - axios parameter creator
947
+ * @export
948
+ */
949
+ export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
950
+ /**
951
+ *
952
+ * @summary Subscribe to pending and confirmed transactions.
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ websocket: (options?: any) => Promise<RequestArgs>;
957
+ };
958
+ /**
959
+ * WebsocketApi - functional programming interface
960
+ * @export
961
+ */
962
+ export declare const WebsocketApiFp: (configuration?: Configuration | undefined) => {
963
+ /**
964
+ *
965
+ * @summary Subscribe to pending and confirmed transactions.
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ websocket(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
970
+ };
971
+ /**
972
+ * WebsocketApi - factory interface
973
+ * @export
974
+ */
975
+ export declare const WebsocketApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
976
+ /**
977
+ *
978
+ * @summary Subscribe to pending and confirmed transactions.
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ websocket(options?: any): AxiosPromise<void>;
983
+ };
984
+ /**
985
+ * WebsocketApi - object-oriented interface
986
+ * @export
987
+ * @class WebsocketApi
988
+ * @extends {BaseAPI}
989
+ */
990
+ export declare class WebsocketApi extends BaseAPI {
991
+ /**
992
+ *
993
+ * @summary Subscribe to pending and confirmed transactions.
994
+ * @param {*} [options] Override http request option.
995
+ * @throws {RequiredError}
996
+ * @memberof WebsocketApi
997
+ */
998
+ websocket(options?: any): Promise<import("axios").AxiosResponse<void>>;
999
+ }
1000
+ //# sourceMappingURL=api.d.ts.map