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