@shapeshiftoss/unchained-client 9.2.0 → 9.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 (47) hide show
  1. package/dist/bitcoin/parser/index.d.ts +1 -0
  2. package/dist/bitcoin/parser/index.js +2 -1
  3. package/dist/dogecoin/index.d.ts +3 -0
  4. package/dist/dogecoin/index.js +19 -0
  5. package/dist/generated/avalanche/api.d.ts +1 -1
  6. package/dist/generated/avalanche/api.js +1 -1
  7. package/dist/generated/avalanche/base.d.ts +1 -1
  8. package/dist/generated/avalanche/base.js +1 -1
  9. package/dist/generated/avalanche/common.d.ts +1 -1
  10. package/dist/generated/avalanche/common.js +1 -1
  11. package/dist/generated/avalanche/configuration.d.ts +1 -1
  12. package/dist/generated/avalanche/configuration.js +1 -1
  13. package/dist/generated/avalanche/index.d.ts +1 -1
  14. package/dist/generated/avalanche/index.js +1 -1
  15. package/dist/generated/bitcoin/api.d.ts +1 -1
  16. package/dist/generated/bitcoin/api.js +1 -1
  17. package/dist/generated/bitcoin/base.d.ts +1 -1
  18. package/dist/generated/bitcoin/base.js +1 -1
  19. package/dist/generated/bitcoin/common.d.ts +1 -1
  20. package/dist/generated/bitcoin/common.js +1 -1
  21. package/dist/generated/bitcoin/configuration.d.ts +1 -1
  22. package/dist/generated/bitcoin/configuration.js +1 -1
  23. package/dist/generated/bitcoin/index.d.ts +1 -1
  24. package/dist/generated/bitcoin/index.js +1 -1
  25. package/dist/generated/dogecoin/api.d.ts +1041 -0
  26. package/dist/generated/dogecoin/api.js +521 -0
  27. package/dist/generated/dogecoin/base.d.ts +55 -0
  28. package/dist/generated/dogecoin/base.js +64 -0
  29. package/dist/generated/dogecoin/common.d.ts +65 -0
  30. package/dist/generated/dogecoin/common.js +137 -0
  31. package/dist/generated/dogecoin/configuration.d.ts +83 -0
  32. package/dist/generated/dogecoin/configuration.js +42 -0
  33. package/dist/generated/dogecoin/index.d.ts +13 -0
  34. package/dist/generated/dogecoin/index.js +31 -0
  35. package/dist/generated/ethereum/api.d.ts +1 -1
  36. package/dist/generated/ethereum/api.js +1 -1
  37. package/dist/generated/ethereum/base.d.ts +1 -1
  38. package/dist/generated/ethereum/base.js +1 -1
  39. package/dist/generated/ethereum/common.d.ts +1 -1
  40. package/dist/generated/ethereum/common.js +1 -1
  41. package/dist/generated/ethereum/configuration.d.ts +1 -1
  42. package/dist/generated/ethereum/configuration.js +1 -1
  43. package/dist/generated/ethereum/index.d.ts +1 -1
  44. package/dist/generated/ethereum/index.js +1 -1
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +2 -1
  47. package/package.json +1 -1
@@ -0,0 +1,1041 @@
1
+ /**
2
+ * @shapeshiftoss/dogecoin-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 7.1.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
+ * Information about BTC network fee at a specific confirmation speed
17
+ * @export
18
+ * @interface BTCNetworkFee
19
+ */
20
+ export interface BTCNetworkFee {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof BTCNetworkFee
25
+ */
26
+ 'satsPerKiloByte': number;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof BTCNetworkFee
31
+ */
32
+ 'blocksUntilConfirmation': number;
33
+ }
34
+ /**
35
+ * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
36
+ * @export
37
+ * @interface BTCNetworkFees
38
+ */
39
+ export interface BTCNetworkFees {
40
+ /**
41
+ *
42
+ * @type {BTCNetworkFee}
43
+ * @memberof BTCNetworkFees
44
+ */
45
+ 'fast'?: BTCNetworkFee;
46
+ /**
47
+ *
48
+ * @type {BTCNetworkFee}
49
+ * @memberof BTCNetworkFees
50
+ */
51
+ 'average'?: BTCNetworkFee;
52
+ /**
53
+ *
54
+ * @type {BTCNetworkFee}
55
+ * @memberof BTCNetworkFees
56
+ */
57
+ 'slow'?: BTCNetworkFee;
58
+ }
59
+ /**
60
+ * Contains info about a 400 Bad Request response
61
+ * @export
62
+ * @interface BadRequestError
63
+ */
64
+ export interface BadRequestError {
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof BadRequestError
69
+ */
70
+ 'error': string;
71
+ }
72
+ /**
73
+ * Contains additional Bitcoin specific account info
74
+ * @export
75
+ * @interface BitcoinAccount
76
+ */
77
+ export interface BitcoinAccount {
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof BitcoinAccount
82
+ */
83
+ 'balance': string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof BitcoinAccount
88
+ */
89
+ 'unconfirmedBalance': string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof BitcoinAccount
94
+ */
95
+ 'pubkey': string;
96
+ /**
97
+ * List of associated addresses for an xpub
98
+ * @type {Array<BitcoinAddress>}
99
+ * @memberof BitcoinAccount
100
+ */
101
+ 'addresses'?: Array<BitcoinAddress>;
102
+ /**
103
+ * The next unused receive address index for an xpub (change index 0)
104
+ * @type {number}
105
+ * @memberof BitcoinAccount
106
+ */
107
+ 'nextReceiveAddressIndex'?: number;
108
+ /**
109
+ * The next unused change address index for an xpub (change index 1)
110
+ * @type {number}
111
+ * @memberof BitcoinAccount
112
+ */
113
+ 'nextChangeAddressIndex'?: number;
114
+ }
115
+ /**
116
+ *
117
+ * @export
118
+ * @interface BitcoinAddress
119
+ */
120
+ export interface BitcoinAddress {
121
+ /**
122
+ *
123
+ * @type {string}
124
+ * @memberof BitcoinAddress
125
+ */
126
+ 'balance': string;
127
+ /**
128
+ *
129
+ * @type {string}
130
+ * @memberof BitcoinAddress
131
+ */
132
+ 'pubkey': string;
133
+ }
134
+ /**
135
+ * Contains Bitcoin specific transaction info as returned from the node
136
+ * @export
137
+ * @interface BitcoinRawTx
138
+ */
139
+ export interface BitcoinRawTx {
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof BitcoinRawTx
144
+ */
145
+ 'txid': string;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof BitcoinRawTx
150
+ */
151
+ 'hash': string;
152
+ /**
153
+ *
154
+ * @type {number}
155
+ * @memberof BitcoinRawTx
156
+ */
157
+ 'version': number;
158
+ /**
159
+ *
160
+ * @type {number}
161
+ * @memberof BitcoinRawTx
162
+ */
163
+ 'size': number;
164
+ /**
165
+ *
166
+ * @type {number}
167
+ * @memberof BitcoinRawTx
168
+ */
169
+ 'vsize': number;
170
+ /**
171
+ *
172
+ * @type {number}
173
+ * @memberof BitcoinRawTx
174
+ */
175
+ 'weight': number;
176
+ /**
177
+ *
178
+ * @type {number}
179
+ * @memberof BitcoinRawTx
180
+ */
181
+ 'locktime': number;
182
+ /**
183
+ *
184
+ * @type {Array<BitcoinRawTxVin>}
185
+ * @memberof BitcoinRawTx
186
+ */
187
+ 'vin': Array<BitcoinRawTxVin>;
188
+ /**
189
+ *
190
+ * @type {Array<BitcoinRawTxVout>}
191
+ * @memberof BitcoinRawTx
192
+ */
193
+ 'vout': Array<BitcoinRawTxVout>;
194
+ /**
195
+ *
196
+ * @type {string}
197
+ * @memberof BitcoinRawTx
198
+ */
199
+ 'hex': string;
200
+ /**
201
+ *
202
+ * @type {string}
203
+ * @memberof BitcoinRawTx
204
+ */
205
+ 'blockhash': string;
206
+ /**
207
+ *
208
+ * @type {number}
209
+ * @memberof BitcoinRawTx
210
+ */
211
+ 'confirmations': number;
212
+ /**
213
+ *
214
+ * @type {number}
215
+ * @memberof BitcoinRawTx
216
+ */
217
+ 'time': number;
218
+ /**
219
+ *
220
+ * @type {number}
221
+ * @memberof BitcoinRawTx
222
+ */
223
+ 'blocktime': number;
224
+ }
225
+ /**
226
+ *
227
+ * @export
228
+ * @interface BitcoinRawTxScriptPubKey
229
+ */
230
+ export interface BitcoinRawTxScriptPubKey {
231
+ /**
232
+ *
233
+ * @type {Array<string>}
234
+ * @memberof BitcoinRawTxScriptPubKey
235
+ */
236
+ 'addresses': Array<string>;
237
+ /**
238
+ *
239
+ * @type {string}
240
+ * @memberof BitcoinRawTxScriptPubKey
241
+ */
242
+ 'type': string;
243
+ /**
244
+ *
245
+ * @type {number}
246
+ * @memberof BitcoinRawTxScriptPubKey
247
+ */
248
+ 'reqSigs': number;
249
+ /**
250
+ *
251
+ * @type {string}
252
+ * @memberof BitcoinRawTxScriptPubKey
253
+ */
254
+ 'hex': string;
255
+ /**
256
+ *
257
+ * @type {string}
258
+ * @memberof BitcoinRawTxScriptPubKey
259
+ */
260
+ 'asm': string;
261
+ }
262
+ /**
263
+ *
264
+ * @export
265
+ * @interface BitcoinRawTxScriptSig
266
+ */
267
+ export interface BitcoinRawTxScriptSig {
268
+ /**
269
+ *
270
+ * @type {string}
271
+ * @memberof BitcoinRawTxScriptSig
272
+ */
273
+ 'hex': string;
274
+ /**
275
+ *
276
+ * @type {string}
277
+ * @memberof BitcoinRawTxScriptSig
278
+ */
279
+ 'asm': string;
280
+ }
281
+ /**
282
+ *
283
+ * @export
284
+ * @interface BitcoinRawTxVin
285
+ */
286
+ export interface BitcoinRawTxVin {
287
+ /**
288
+ *
289
+ * @type {string}
290
+ * @memberof BitcoinRawTxVin
291
+ */
292
+ 'txinwitness'?: string;
293
+ /**
294
+ *
295
+ * @type {BitcoinRawTxScriptSig}
296
+ * @memberof BitcoinRawTxVin
297
+ */
298
+ 'scriptSig'?: BitcoinRawTxScriptSig;
299
+ /**
300
+ *
301
+ * @type {string}
302
+ * @memberof BitcoinRawTxVin
303
+ */
304
+ 'coinbase'?: string;
305
+ /**
306
+ *
307
+ * @type {number}
308
+ * @memberof BitcoinRawTxVin
309
+ */
310
+ 'sequence'?: number;
311
+ /**
312
+ *
313
+ * @type {number}
314
+ * @memberof BitcoinRawTxVin
315
+ */
316
+ 'vout'?: number;
317
+ /**
318
+ *
319
+ * @type {string}
320
+ * @memberof BitcoinRawTxVin
321
+ */
322
+ 'txid'?: string;
323
+ }
324
+ /**
325
+ *
326
+ * @export
327
+ * @interface BitcoinRawTxVout
328
+ */
329
+ export interface BitcoinRawTxVout {
330
+ /**
331
+ *
332
+ * @type {BitcoinRawTxScriptPubKey}
333
+ * @memberof BitcoinRawTxVout
334
+ */
335
+ 'scriptPubKey'?: BitcoinRawTxScriptPubKey;
336
+ /**
337
+ *
338
+ * @type {number}
339
+ * @memberof BitcoinRawTxVout
340
+ */
341
+ 'n'?: number;
342
+ /**
343
+ *
344
+ * @type {string | number}
345
+ * @memberof BitcoinRawTxVout
346
+ */
347
+ 'value'?: string | number;
348
+ }
349
+ /**
350
+ * Contains info about a Bitcoin transaction
351
+ * @export
352
+ * @interface BitcoinTx
353
+ */
354
+ export interface BitcoinTx {
355
+ /**
356
+ *
357
+ * @type {string}
358
+ * @memberof BitcoinTx
359
+ */
360
+ 'txid': string;
361
+ /**
362
+ *
363
+ * @type {string}
364
+ * @memberof BitcoinTx
365
+ */
366
+ 'blockHash'?: string;
367
+ /**
368
+ *
369
+ * @type {number}
370
+ * @memberof BitcoinTx
371
+ */
372
+ 'blockHeight': number;
373
+ /**
374
+ *
375
+ * @type {number}
376
+ * @memberof BitcoinTx
377
+ */
378
+ 'timestamp': number;
379
+ /**
380
+ *
381
+ * @type {Array<Vin>}
382
+ * @memberof BitcoinTx
383
+ */
384
+ 'vin': Array<Vin>;
385
+ /**
386
+ *
387
+ * @type {Array<Vout>}
388
+ * @memberof BitcoinTx
389
+ */
390
+ 'vout': Array<Vout>;
391
+ /**
392
+ *
393
+ * @type {number}
394
+ * @memberof BitcoinTx
395
+ */
396
+ 'confirmations': number;
397
+ /**
398
+ *
399
+ * @type {string}
400
+ * @memberof BitcoinTx
401
+ */
402
+ 'value': string;
403
+ /**
404
+ *
405
+ * @type {string}
406
+ * @memberof BitcoinTx
407
+ */
408
+ 'fee': string;
409
+ /**
410
+ *
411
+ * @type {string}
412
+ * @memberof BitcoinTx
413
+ */
414
+ 'hex': string;
415
+ }
416
+ /**
417
+ * Contains info about Bitcoin transaction history
418
+ * @export
419
+ * @interface BitcoinTxHistory
420
+ */
421
+ export interface BitcoinTxHistory {
422
+ /**
423
+ *
424
+ * @type {string}
425
+ * @memberof BitcoinTxHistory
426
+ */
427
+ 'cursor'?: string;
428
+ /**
429
+ *
430
+ * @type {string}
431
+ * @memberof BitcoinTxHistory
432
+ */
433
+ 'pubkey': string;
434
+ /**
435
+ *
436
+ * @type {Array<BitcoinTx>}
437
+ * @memberof BitcoinTxHistory
438
+ */
439
+ 'txs': Array<BitcoinTx>;
440
+ }
441
+ /**
442
+ * Contains info about the running coinstack
443
+ * @export
444
+ * @interface Info
445
+ */
446
+ export interface Info {
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof Info
451
+ */
452
+ 'network': string;
453
+ }
454
+ /**
455
+ * Contains info about a 500 Internal Server Error response
456
+ * @export
457
+ * @interface InternalServerError
458
+ */
459
+ export interface InternalServerError {
460
+ /**
461
+ *
462
+ * @type {string}
463
+ * @memberof InternalServerError
464
+ */
465
+ 'message': string;
466
+ }
467
+ /**
468
+ * Contains the serialized raw transaction hex
469
+ * @export
470
+ * @interface SendTxBody
471
+ */
472
+ export interface SendTxBody {
473
+ /**
474
+ *
475
+ * @type {string}
476
+ * @memberof SendTxBody
477
+ */
478
+ 'hex': string;
479
+ }
480
+ /**
481
+ * Contains info about a transaction
482
+ * @export
483
+ * @interface Tx
484
+ */
485
+ export interface Tx {
486
+ /**
487
+ *
488
+ * @type {string}
489
+ * @memberof Tx
490
+ */
491
+ 'txid': string;
492
+ /**
493
+ *
494
+ * @type {string}
495
+ * @memberof Tx
496
+ */
497
+ 'blockHash'?: string;
498
+ /**
499
+ *
500
+ * @type {number}
501
+ * @memberof Tx
502
+ */
503
+ 'blockHeight': number;
504
+ /**
505
+ *
506
+ * @type {number}
507
+ * @memberof Tx
508
+ */
509
+ 'timestamp': number;
510
+ }
511
+ /**
512
+ * Contains info about an unspent transaction output
513
+ * @export
514
+ * @interface Utxo
515
+ */
516
+ export interface Utxo {
517
+ /**
518
+ *
519
+ * @type {string}
520
+ * @memberof Utxo
521
+ */
522
+ 'txid': string;
523
+ /**
524
+ *
525
+ * @type {number}
526
+ * @memberof Utxo
527
+ */
528
+ 'vout': number;
529
+ /**
530
+ *
531
+ * @type {string}
532
+ * @memberof Utxo
533
+ */
534
+ 'value': string;
535
+ /**
536
+ *
537
+ * @type {number}
538
+ * @memberof Utxo
539
+ */
540
+ 'height'?: number;
541
+ /**
542
+ *
543
+ * @type {number}
544
+ * @memberof Utxo
545
+ */
546
+ 'confirmations': number;
547
+ /**
548
+ *
549
+ * @type {string}
550
+ * @memberof Utxo
551
+ */
552
+ 'address'?: string;
553
+ /**
554
+ *
555
+ * @type {string}
556
+ * @memberof Utxo
557
+ */
558
+ 'path'?: string;
559
+ /**
560
+ *
561
+ * @type {number}
562
+ * @memberof Utxo
563
+ */
564
+ 'locktime'?: number;
565
+ /**
566
+ *
567
+ * @type {boolean}
568
+ * @memberof Utxo
569
+ */
570
+ 'coinbase'?: boolean;
571
+ }
572
+ /**
573
+ * Contains info about a 422 Validation Error response
574
+ * @export
575
+ * @interface ValidationError
576
+ */
577
+ export interface ValidationError {
578
+ /**
579
+ *
580
+ * @type {string}
581
+ * @memberof ValidationError
582
+ */
583
+ 'message': ValidationErrorMessageEnum;
584
+ /**
585
+ *
586
+ * @type {{ [key: string]: any; }}
587
+ * @memberof ValidationError
588
+ */
589
+ 'details': {
590
+ [key: string]: any;
591
+ };
592
+ }
593
+ export declare const ValidationErrorMessageEnum: {
594
+ readonly ValidationFailed: "Validation failed";
595
+ };
596
+ export declare type ValidationErrorMessageEnum = typeof ValidationErrorMessageEnum[keyof typeof ValidationErrorMessageEnum];
597
+ /**
598
+ * Contains info about a Bitcoin transaction input
599
+ * @export
600
+ * @interface Vin
601
+ */
602
+ export interface Vin {
603
+ /**
604
+ *
605
+ * @type {string}
606
+ * @memberof Vin
607
+ */
608
+ 'txid'?: string;
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof Vin
613
+ */
614
+ 'vout'?: string;
615
+ /**
616
+ *
617
+ * @type {number}
618
+ * @memberof Vin
619
+ */
620
+ 'sequence'?: number;
621
+ /**
622
+ *
623
+ * @type {string}
624
+ * @memberof Vin
625
+ */
626
+ 'coinbase'?: string;
627
+ /**
628
+ *
629
+ * @type {VinScriptSig}
630
+ * @memberof Vin
631
+ */
632
+ 'scriptSig'?: VinScriptSig;
633
+ /**
634
+ *
635
+ * @type {Array<string>}
636
+ * @memberof Vin
637
+ */
638
+ 'addresses'?: Array<string>;
639
+ /**
640
+ *
641
+ * @type {string}
642
+ * @memberof Vin
643
+ */
644
+ 'value'?: string;
645
+ }
646
+ /**
647
+ *
648
+ * @export
649
+ * @interface VinScriptSig
650
+ */
651
+ export interface VinScriptSig {
652
+ /**
653
+ *
654
+ * @type {string}
655
+ * @memberof VinScriptSig
656
+ */
657
+ 'hex'?: string;
658
+ }
659
+ /**
660
+ * Contains info about a Bitcoin transaction output
661
+ * @export
662
+ * @interface Vout
663
+ */
664
+ export interface Vout {
665
+ /**
666
+ *
667
+ * @type {string}
668
+ * @memberof Vout
669
+ */
670
+ 'value': string;
671
+ /**
672
+ *
673
+ * @type {number}
674
+ * @memberof Vout
675
+ */
676
+ 'n': number;
677
+ /**
678
+ *
679
+ * @type {string}
680
+ * @memberof Vout
681
+ */
682
+ 'opReturn'?: string;
683
+ /**
684
+ *
685
+ * @type {VinScriptSig}
686
+ * @memberof Vout
687
+ */
688
+ 'scriptPubKey': VinScriptSig;
689
+ /**
690
+ *
691
+ * @type {Array<string>}
692
+ * @memberof Vout
693
+ */
694
+ 'addresses'?: Array<string>;
695
+ }
696
+ /**
697
+ * V1Api - axios parameter creator
698
+ * @export
699
+ */
700
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
701
+ /**
702
+ * Get account details by address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
703
+ * @param {string} pubkey account address or xpub
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ getAccount: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
708
+ /**
709
+ * Get information about the running coinstack
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ */
713
+ getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
714
+ /**
715
+ * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ getNetworkFees: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
720
+ /**
721
+ * Get raw transaction details directly from the node
722
+ * @param {string} txid transaction hash
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ getRawTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
727
+ /**
728
+ * Get transaction details
729
+ * @param {string} txid transaction hash
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ getTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
734
+ /**
735
+ * Get transaction history by address or xpub
736
+ * @param {string} pubkey account address or xpub
737
+ * @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \&#39;page\&#39; property)
738
+ * @param {number} [pageSize] page size (10 by default)
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
743
+ /**
744
+ * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
745
+ * @param {string} pubkey account address or xpub
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ getUtxos: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
750
+ /**
751
+ * Sends raw transaction to be broadcast to the node.
752
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ sendTx: (sendTxBody: SendTxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
757
+ };
758
+ /**
759
+ * V1Api - functional programming interface
760
+ * @export
761
+ */
762
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
763
+ /**
764
+ * Get account details by address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
765
+ * @param {string} pubkey account address or xpub
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinAccount>>;
770
+ /**
771
+ * Get information about the running coinstack
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
776
+ /**
777
+ * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ getNetworkFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BTCNetworkFees>>;
782
+ /**
783
+ * Get raw transaction details directly from the node
784
+ * @param {string} txid transaction hash
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ */
788
+ getRawTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinRawTx>>;
789
+ /**
790
+ * Get transaction details
791
+ * @param {string} txid transaction hash
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ getTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTx>>;
796
+ /**
797
+ * Get transaction history by address or xpub
798
+ * @param {string} pubkey account address or xpub
799
+ * @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \&#39;page\&#39; property)
800
+ * @param {number} [pageSize] page size (10 by default)
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTxHistory>>;
805
+ /**
806
+ * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
807
+ * @param {string} pubkey account address or xpub
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ getUtxos(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Array<Utxo>>>;
812
+ /**
813
+ * Sends raw transaction to be broadcast to the node.
814
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ sendTx(sendTxBody: SendTxBody, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
819
+ };
820
+ /**
821
+ * V1Api - factory interface
822
+ * @export
823
+ */
824
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
825
+ /**
826
+ * Get account details by address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
827
+ * @param {string} pubkey account address or xpub
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ getAccount(pubkey: string, options?: any): AxiosPromise<BitcoinAccount>;
832
+ /**
833
+ * Get information about the running coinstack
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ getInfo(options?: any): AxiosPromise<Info>;
838
+ /**
839
+ * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ getNetworkFees(options?: any): AxiosPromise<BTCNetworkFees>;
844
+ /**
845
+ * Get raw transaction details directly from the node
846
+ * @param {string} txid transaction hash
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ getRawTransaction(txid: string, options?: any): AxiosPromise<BitcoinRawTx>;
851
+ /**
852
+ * Get transaction details
853
+ * @param {string} txid transaction hash
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ getTransaction(txid: string, options?: any): AxiosPromise<BitcoinTx>;
858
+ /**
859
+ * Get transaction history by address or xpub
860
+ * @param {string} pubkey account address or xpub
861
+ * @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \&#39;page\&#39; property)
862
+ * @param {number} [pageSize] page size (10 by default)
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<BitcoinTxHistory>;
867
+ /**
868
+ * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
869
+ * @param {string} pubkey account address or xpub
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ */
873
+ getUtxos(pubkey: string, options?: any): AxiosPromise<Array<Utxo>>;
874
+ /**
875
+ * Sends raw transaction to be broadcast to the node.
876
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ */
880
+ sendTx(sendTxBody: SendTxBody, options?: any): AxiosPromise<string>;
881
+ };
882
+ /**
883
+ * Request parameters for getAccount operation in V1Api.
884
+ * @export
885
+ * @interface V1ApiGetAccountRequest
886
+ */
887
+ export interface V1ApiGetAccountRequest {
888
+ /**
889
+ * account address or xpub
890
+ * @type {string}
891
+ * @memberof V1ApiGetAccount
892
+ */
893
+ readonly pubkey: string;
894
+ }
895
+ /**
896
+ * Request parameters for getRawTransaction operation in V1Api.
897
+ * @export
898
+ * @interface V1ApiGetRawTransactionRequest
899
+ */
900
+ export interface V1ApiGetRawTransactionRequest {
901
+ /**
902
+ * transaction hash
903
+ * @type {string}
904
+ * @memberof V1ApiGetRawTransaction
905
+ */
906
+ readonly txid: string;
907
+ }
908
+ /**
909
+ * Request parameters for getTransaction operation in V1Api.
910
+ * @export
911
+ * @interface V1ApiGetTransactionRequest
912
+ */
913
+ export interface V1ApiGetTransactionRequest {
914
+ /**
915
+ * transaction hash
916
+ * @type {string}
917
+ * @memberof V1ApiGetTransaction
918
+ */
919
+ readonly txid: string;
920
+ }
921
+ /**
922
+ * Request parameters for getTxHistory operation in V1Api.
923
+ * @export
924
+ * @interface V1ApiGetTxHistoryRequest
925
+ */
926
+ export interface V1ApiGetTxHistoryRequest {
927
+ /**
928
+ * account address or xpub
929
+ * @type {string}
930
+ * @memberof V1ApiGetTxHistory
931
+ */
932
+ readonly pubkey: string;
933
+ /**
934
+ * the cursor returned in previous query (base64 encoded json object with a \&#39;page\&#39; property)
935
+ * @type {string}
936
+ * @memberof V1ApiGetTxHistory
937
+ */
938
+ readonly cursor?: string;
939
+ /**
940
+ * page size (10 by default)
941
+ * @type {number}
942
+ * @memberof V1ApiGetTxHistory
943
+ */
944
+ readonly pageSize?: number;
945
+ }
946
+ /**
947
+ * Request parameters for getUtxos operation in V1Api.
948
+ * @export
949
+ * @interface V1ApiGetUtxosRequest
950
+ */
951
+ export interface V1ApiGetUtxosRequest {
952
+ /**
953
+ * account address or xpub
954
+ * @type {string}
955
+ * @memberof V1ApiGetUtxos
956
+ */
957
+ readonly pubkey: string;
958
+ }
959
+ /**
960
+ * Request parameters for sendTx operation in V1Api.
961
+ * @export
962
+ * @interface V1ApiSendTxRequest
963
+ */
964
+ export interface V1ApiSendTxRequest {
965
+ /**
966
+ * serialized raw transaction hex
967
+ * @type {SendTxBody}
968
+ * @memberof V1ApiSendTx
969
+ */
970
+ readonly sendTxBody: SendTxBody;
971
+ }
972
+ /**
973
+ * V1Api - object-oriented interface
974
+ * @export
975
+ * @class V1Api
976
+ * @extends {BaseAPI}
977
+ */
978
+ export declare class V1Api extends BaseAPI {
979
+ /**
980
+ * Get account details by address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
981
+ * @param {V1ApiGetAccountRequest} requestParameters Request parameters.
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ * @memberof V1Api
985
+ */
986
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinAccount, any>>;
987
+ /**
988
+ * Get information about the running coinstack
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ * @memberof V1Api
992
+ */
993
+ getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
994
+ /**
995
+ * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
996
+ * @param {*} [options] Override http request option.
997
+ * @throws {RequiredError}
998
+ * @memberof V1Api
999
+ */
1000
+ getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BTCNetworkFees, any>>;
1001
+ /**
1002
+ * Get raw transaction details directly from the node
1003
+ * @param {V1ApiGetRawTransactionRequest} requestParameters Request parameters.
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ * @memberof V1Api
1007
+ */
1008
+ getRawTransaction(requestParameters: V1ApiGetRawTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinRawTx, any>>;
1009
+ /**
1010
+ * Get transaction details
1011
+ * @param {V1ApiGetTransactionRequest} requestParameters Request parameters.
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ * @memberof V1Api
1015
+ */
1016
+ getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinTx, any>>;
1017
+ /**
1018
+ * Get transaction history by address or xpub
1019
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ * @memberof V1Api
1023
+ */
1024
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinTxHistory, any>>;
1025
+ /**
1026
+ * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
1027
+ * @param {V1ApiGetUtxosRequest} requestParameters Request parameters.
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ * @memberof V1Api
1031
+ */
1032
+ getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Utxo[], any>>;
1033
+ /**
1034
+ * Sends raw transaction to be broadcast to the node.
1035
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ * @memberof V1Api
1039
+ */
1040
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1041
+ }