@shapeshiftoss/unchained-client 5.1.0 → 5.3.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 (58) 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 +8 -8
  12. package/dist/generated/bitcoin/api.js +1 -1
  13. package/dist/generated/bitcoin/base.d.ts +1 -1
  14. package/dist/generated/bitcoin/base.js +1 -1
  15. package/dist/generated/bitcoin/common.d.ts +2 -2
  16. package/dist/generated/bitcoin/common.d.ts.map +1 -1
  17. package/dist/generated/bitcoin/common.js +1 -1
  18. package/dist/generated/bitcoin/configuration.d.ts +1 -1
  19. package/dist/generated/bitcoin/configuration.js +1 -1
  20. package/dist/generated/bitcoin/index.d.ts +1 -1
  21. package/dist/generated/bitcoin/index.js +1 -1
  22. package/dist/generated/cosmos/api.d.ts +976 -0
  23. package/dist/generated/cosmos/api.d.ts.map +1 -0
  24. package/dist/generated/cosmos/api.js +423 -0
  25. package/dist/generated/cosmos/api.js.map +1 -0
  26. package/dist/generated/cosmos/base.d.ts +56 -0
  27. package/dist/generated/cosmos/base.d.ts.map +1 -0
  28. package/dist/generated/cosmos/base.js +65 -0
  29. package/dist/generated/cosmos/base.js.map +1 -0
  30. package/dist/generated/cosmos/common.d.ts +66 -0
  31. package/dist/generated/cosmos/common.d.ts.map +1 -0
  32. package/dist/generated/cosmos/common.js +153 -0
  33. package/dist/generated/cosmos/common.js.map +1 -0
  34. package/dist/generated/cosmos/configuration.d.ts +84 -0
  35. package/dist/generated/cosmos/configuration.d.ts.map +1 -0
  36. package/dist/generated/cosmos/configuration.js +43 -0
  37. package/dist/generated/cosmos/configuration.js.map +1 -0
  38. package/dist/generated/cosmos/index.d.ts +14 -0
  39. package/dist/generated/cosmos/index.d.ts.map +1 -0
  40. package/dist/generated/cosmos/index.js +28 -0
  41. package/dist/generated/cosmos/index.js.map +1 -0
  42. package/dist/generated/ethereum/api.d.ts +7 -7
  43. package/dist/generated/ethereum/api.js +1 -1
  44. package/dist/generated/ethereum/base.d.ts +1 -1
  45. package/dist/generated/ethereum/base.js +1 -1
  46. package/dist/generated/ethereum/common.d.ts +2 -2
  47. package/dist/generated/ethereum/common.d.ts.map +1 -1
  48. package/dist/generated/ethereum/common.js +1 -1
  49. package/dist/generated/ethereum/configuration.d.ts +1 -1
  50. package/dist/generated/ethereum/configuration.js +1 -1
  51. package/dist/generated/ethereum/index.d.ts +1 -1
  52. package/dist/generated/ethereum/index.js +1 -1
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +2 -1
  56. package/dist/index.js.map +1 -1
  57. package/dist/tsconfig.tsbuildinfo +113 -32
  58. package/package.json +5 -5
@@ -0,0 +1,976 @@
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
+ * 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 {string}
310
+ * @memberof Delegation
311
+ */
312
+ validator: string;
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
+ *
348
+ * @export
349
+ * @interface InlineObject
350
+ */
351
+ export interface InlineObject {
352
+ /**
353
+ * Raw transaction
354
+ * @type {string}
355
+ * @memberof InlineObject
356
+ */
357
+ rawTx: string;
358
+ }
359
+ /**
360
+ * Contains info about a 500 Internal Server Error response
361
+ * @export
362
+ * @interface InternalServerError
363
+ */
364
+ export interface InternalServerError {
365
+ /**
366
+ *
367
+ * @type {string}
368
+ * @memberof InternalServerError
369
+ */
370
+ message?: string;
371
+ }
372
+ /**
373
+ * Contains info about a transaction message
374
+ * @export
375
+ * @interface Message
376
+ */
377
+ export interface Message {
378
+ /**
379
+ *
380
+ * @type {string}
381
+ * @memberof Message
382
+ */
383
+ from?: string;
384
+ /**
385
+ *
386
+ * @type {string}
387
+ * @memberof Message
388
+ */
389
+ to?: string;
390
+ /**
391
+ *
392
+ * @type {string}
393
+ * @memberof Message
394
+ */
395
+ type: string;
396
+ /**
397
+ *
398
+ * @type {Value}
399
+ * @memberof Message
400
+ */
401
+ value?: Value;
402
+ }
403
+ /**
404
+ * Contains info about pagination metadata
405
+ * @export
406
+ * @interface Pagination
407
+ */
408
+ export interface Pagination {
409
+ /**
410
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
411
+ * @type {string}
412
+ * @memberof Pagination
413
+ */
414
+ cursor: string;
415
+ }
416
+ /**
417
+ * Contains info about a staking redelegation
418
+ * @export
419
+ * @interface Redelegation
420
+ */
421
+ export interface Redelegation {
422
+ /**
423
+ *
424
+ * @type {string}
425
+ * @memberof Redelegation
426
+ */
427
+ destinationValidator: string;
428
+ /**
429
+ *
430
+ * @type {Array<RedelegationEntry>}
431
+ * @memberof Redelegation
432
+ */
433
+ entries: Array<RedelegationEntry>;
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof Redelegation
438
+ */
439
+ sourceValidator: string;
440
+ }
441
+ /**
442
+ * Contains info about a redelegation action
443
+ * @export
444
+ * @interface RedelegationEntry
445
+ */
446
+ export interface RedelegationEntry {
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof RedelegationEntry
451
+ */
452
+ completionTime: string;
453
+ /**
454
+ *
455
+ * @type {string}
456
+ * @memberof RedelegationEntry
457
+ */
458
+ shares: string;
459
+ }
460
+ /**
461
+ * Contains info about a transaction
462
+ * @export
463
+ * @interface Tx
464
+ */
465
+ export interface Tx {
466
+ /**
467
+ *
468
+ * @type {string}
469
+ * @memberof Tx
470
+ */
471
+ blockHash?: string;
472
+ /**
473
+ *
474
+ * @type {string}
475
+ * @memberof Tx
476
+ */
477
+ blockHeight?: string;
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof Tx
482
+ */
483
+ timestamp?: string;
484
+ /**
485
+ *
486
+ * @type {string}
487
+ * @memberof Tx
488
+ */
489
+ txid: 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
+ value: string;
538
+ }
539
+ /**
540
+ *
541
+ * @export
542
+ * @interface TxAllOf
543
+ */
544
+ export interface TxAllOf {
545
+ /**
546
+ *
547
+ * @type {Array<Event>}
548
+ * @memberof TxAllOf
549
+ */
550
+ events?: Array<Event>;
551
+ /**
552
+ *
553
+ * @type {Value}
554
+ * @memberof TxAllOf
555
+ */
556
+ fee: Value;
557
+ /**
558
+ *
559
+ * @type {string}
560
+ * @memberof TxAllOf
561
+ */
562
+ gasUsed: string;
563
+ /**
564
+ *
565
+ * @type {string}
566
+ * @memberof TxAllOf
567
+ */
568
+ gasWanted: string;
569
+ /**
570
+ *
571
+ * @type {number}
572
+ * @memberof TxAllOf
573
+ */
574
+ index: number;
575
+ /**
576
+ *
577
+ * @type {string}
578
+ * @memberof TxAllOf
579
+ */
580
+ memo: string;
581
+ /**
582
+ *
583
+ * @type {Array<Message>}
584
+ * @memberof TxAllOf
585
+ */
586
+ messages?: Array<Message>;
587
+ /**
588
+ *
589
+ * @type {string}
590
+ * @memberof TxAllOf
591
+ */
592
+ value: string;
593
+ }
594
+ /**
595
+ * Contains info about transaction history for an address or xpub
596
+ * @export
597
+ * @interface TxHistory
598
+ */
599
+ export interface TxHistory {
600
+ /**
601
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
602
+ * @type {string}
603
+ * @memberof TxHistory
604
+ */
605
+ cursor: string;
606
+ /**
607
+ *
608
+ * @type {string}
609
+ * @memberof TxHistory
610
+ */
611
+ pubkey: string;
612
+ /**
613
+ *
614
+ * @type {Array<Tx>}
615
+ * @memberof TxHistory
616
+ */
617
+ txs: Array<Tx>;
618
+ }
619
+ /**
620
+ *
621
+ * @export
622
+ * @interface TxHistoryAllOf
623
+ */
624
+ export interface TxHistoryAllOf {
625
+ /**
626
+ *
627
+ * @type {Array<Tx>}
628
+ * @memberof TxHistoryAllOf
629
+ */
630
+ txs: Array<Tx>;
631
+ }
632
+ /**
633
+ * Contains info about a staking unbonding
634
+ * @export
635
+ * @interface Unbonding
636
+ */
637
+ export interface Unbonding {
638
+ /**
639
+ *
640
+ * @type {Array<UnbondingEntry>}
641
+ * @memberof Unbonding
642
+ */
643
+ entries: Array<UnbondingEntry>;
644
+ /**
645
+ *
646
+ * @type {string}
647
+ * @memberof Unbonding
648
+ */
649
+ validator: string;
650
+ }
651
+ /**
652
+ * Contains info about an unbonding action
653
+ * @export
654
+ * @interface UnbondingEntry
655
+ */
656
+ export interface UnbondingEntry {
657
+ /**
658
+ *
659
+ * @type {Value}
660
+ * @memberof UnbondingEntry
661
+ */
662
+ balance: Value;
663
+ /**
664
+ *
665
+ * @type {string}
666
+ * @memberof UnbondingEntry
667
+ */
668
+ completionTime: string;
669
+ }
670
+ /**
671
+ * Contains info about a 422 Validation Error response
672
+ * @export
673
+ * @interface ValidationError
674
+ */
675
+ export interface ValidationError {
676
+ /**
677
+ *
678
+ * @type {{ [key: string]: string; }}
679
+ * @memberof ValidationError
680
+ */
681
+ details: {
682
+ [key: string]: string;
683
+ };
684
+ /**
685
+ *
686
+ * @type {string}
687
+ * @memberof ValidationError
688
+ */
689
+ message: string;
690
+ }
691
+ /**
692
+ * Contains info about an asset value
693
+ * @export
694
+ * @interface Value
695
+ */
696
+ export interface Value {
697
+ /**
698
+ *
699
+ * @type {string}
700
+ * @memberof Value
701
+ */
702
+ amount: string;
703
+ /**
704
+ *
705
+ * @type {string}
706
+ * @memberof Value
707
+ */
708
+ denom: string;
709
+ }
710
+ /**
711
+ * V1Api - axios parameter creator
712
+ * @export
713
+ */
714
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
715
+ /**
716
+ *
717
+ * @summary Get account details.
718
+ * @param {string} pubkey Account address or xpub
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
723
+ /**
724
+ *
725
+ * @summary Get information about the running coinstack.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ getInfo: (options?: any) => Promise<RequestArgs>;
730
+ /**
731
+ *
732
+ * @summary Get paginated transaction history.
733
+ * @param {string} pubkey Account address or xpub
734
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
735
+ * @param {number} [pageSize] Page size
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ */
739
+ getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
740
+ /**
741
+ *
742
+ * @summary Sends raw transaction to be broadcast to the node.
743
+ * @param {InlineObject} [body]
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ sendTx: (body?: InlineObject | undefined, options?: any) => Promise<RequestArgs>;
748
+ };
749
+ /**
750
+ * V1Api - functional programming interface
751
+ * @export
752
+ */
753
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
754
+ /**
755
+ *
756
+ * @summary Get account details.
757
+ * @param {string} pubkey Account address or xpub
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
762
+ /**
763
+ *
764
+ * @summary Get information about the running coinstack.
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ */
768
+ getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
769
+ /**
770
+ *
771
+ * @summary Get paginated transaction history.
772
+ * @param {string} pubkey Account address or xpub
773
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
774
+ * @param {number} [pageSize] Page size
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
779
+ /**
780
+ *
781
+ * @summary Sends raw transaction to be broadcast to the node.
782
+ * @param {InlineObject} [body]
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ */
786
+ sendTx(body?: InlineObject | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
787
+ };
788
+ /**
789
+ * V1Api - factory interface
790
+ * @export
791
+ */
792
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
793
+ /**
794
+ *
795
+ * @summary Get account details.
796
+ * @param {string} pubkey Account address or xpub
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
801
+ /**
802
+ *
803
+ * @summary Get information about the running coinstack.
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ getInfo(options?: any): AxiosPromise<Info>;
808
+ /**
809
+ *
810
+ * @summary Get paginated transaction history.
811
+ * @param {string} pubkey Account address or xpub
812
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
813
+ * @param {number} [pageSize] Page size
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
818
+ /**
819
+ *
820
+ * @summary Sends raw transaction to be broadcast to the node.
821
+ * @param {InlineObject} [body]
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ sendTx(body?: InlineObject | undefined, options?: any): AxiosPromise<string>;
826
+ };
827
+ /**
828
+ * Request parameters for getAccount operation in V1Api.
829
+ * @export
830
+ * @interface V1ApiGetAccountRequest
831
+ */
832
+ export interface V1ApiGetAccountRequest {
833
+ /**
834
+ * Account address or xpub
835
+ * @type {string}
836
+ * @memberof V1ApiGetAccount
837
+ */
838
+ readonly pubkey: string;
839
+ }
840
+ /**
841
+ * Request parameters for getTxHistory operation in V1Api.
842
+ * @export
843
+ * @interface V1ApiGetTxHistoryRequest
844
+ */
845
+ export interface V1ApiGetTxHistoryRequest {
846
+ /**
847
+ * Account address or xpub
848
+ * @type {string}
849
+ * @memberof V1ApiGetTxHistory
850
+ */
851
+ readonly pubkey: string;
852
+ /**
853
+ * Pagination cursor from previous response or empty string for first page fetch
854
+ * @type {string}
855
+ * @memberof V1ApiGetTxHistory
856
+ */
857
+ readonly cursor?: string;
858
+ /**
859
+ * Page size
860
+ * @type {number}
861
+ * @memberof V1ApiGetTxHistory
862
+ */
863
+ readonly pageSize?: number;
864
+ }
865
+ /**
866
+ * Request parameters for sendTx operation in V1Api.
867
+ * @export
868
+ * @interface V1ApiSendTxRequest
869
+ */
870
+ export interface V1ApiSendTxRequest {
871
+ /**
872
+ *
873
+ * @type {InlineObject}
874
+ * @memberof V1ApiSendTx
875
+ */
876
+ readonly body?: InlineObject;
877
+ }
878
+ /**
879
+ * V1Api - object-oriented interface
880
+ * @export
881
+ * @class V1Api
882
+ * @extends {BaseAPI}
883
+ */
884
+ export declare class V1Api extends BaseAPI {
885
+ /**
886
+ *
887
+ * @summary Get account details.
888
+ * @param {V1ApiGetAccountRequest} requestParameters Request parameters.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ * @memberof V1Api
892
+ */
893
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<Account, any>>;
894
+ /**
895
+ *
896
+ * @summary Get information about the running coinstack.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ * @memberof V1Api
900
+ */
901
+ getInfo(options?: any): Promise<import("axios").AxiosResponse<Info, any>>;
902
+ /**
903
+ *
904
+ * @summary Get paginated transaction history.
905
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ * @memberof V1Api
909
+ */
910
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory, any>>;
911
+ /**
912
+ *
913
+ * @summary Sends raw transaction to be broadcast to the node.
914
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ * @memberof V1Api
918
+ */
919
+ sendTx(requestParameters?: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
920
+ }
921
+ /**
922
+ * WebsocketApi - axios parameter creator
923
+ * @export
924
+ */
925
+ export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
926
+ /**
927
+ *
928
+ * @summary Subscribe to pending and confirmed transactions.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ websocket: (options?: any) => Promise<RequestArgs>;
933
+ };
934
+ /**
935
+ * WebsocketApi - functional programming interface
936
+ * @export
937
+ */
938
+ export declare const WebsocketApiFp: (configuration?: Configuration | undefined) => {
939
+ /**
940
+ *
941
+ * @summary Subscribe to pending and confirmed transactions.
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ websocket(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
946
+ };
947
+ /**
948
+ * WebsocketApi - factory interface
949
+ * @export
950
+ */
951
+ export declare const WebsocketApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
952
+ /**
953
+ *
954
+ * @summary Subscribe to pending and confirmed transactions.
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ */
958
+ websocket(options?: any): AxiosPromise<void>;
959
+ };
960
+ /**
961
+ * WebsocketApi - object-oriented interface
962
+ * @export
963
+ * @class WebsocketApi
964
+ * @extends {BaseAPI}
965
+ */
966
+ export declare class WebsocketApi extends BaseAPI {
967
+ /**
968
+ *
969
+ * @summary Subscribe to pending and confirmed transactions.
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ * @memberof WebsocketApi
973
+ */
974
+ websocket(options?: any): Promise<import("axios").AxiosResponse<void, any>>;
975
+ }
976
+ //# sourceMappingURL=api.d.ts.map