@imtbl/sdk 0.1.8 → 0.1.9-alpha

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.
@@ -0,0 +1,1890 @@
1
+ import { BlockchainDataConfiguration, BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration$1 } from 'config';
2
+
3
+ /**
4
+ * Immutable X API
5
+ * Immutable Multi Rollup API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@immutable.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BasicAPIError
18
+ */
19
+ interface BasicAPIError {
20
+ /**
21
+ * Error Message
22
+ * @type {string}
23
+ * @memberof BasicAPIError
24
+ */
25
+ 'message': string;
26
+ /**
27
+ * Link to IMX documentation that can help resolve this error
28
+ * @type {string}
29
+ * @memberof BasicAPIError
30
+ */
31
+ 'link': string;
32
+ /**
33
+ * Trace ID of the initial request
34
+ * @type {string}
35
+ * @memberof BasicAPIError
36
+ */
37
+ 'trace_id': string;
38
+ }
39
+
40
+ /**
41
+ * Immutable X API
42
+ * Immutable Multi Rollup API
43
+ *
44
+ * The version of the OpenAPI document: 1.0.0
45
+ * Contact: support@immutable.com
46
+ *
47
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
48
+ * https://openapi-generator.tech
49
+ * Do not edit the class manually.
50
+ */
51
+ /**
52
+ * The contract type for an NFT
53
+ * @export
54
+ * @enum {string}
55
+ */
56
+ declare const NFTContractType: {
57
+ readonly Erc721: "ERC721";
58
+ };
59
+ type NFTContractType = typeof NFTContractType[keyof typeof NFTContractType];
60
+
61
+ /**
62
+ * Immutable X API
63
+ * Immutable Multi Rollup API
64
+ *
65
+ * The version of the OpenAPI document: 1.0.0
66
+ * Contact: support@immutable.com
67
+ *
68
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
69
+ * https://openapi-generator.tech
70
+ * Do not edit the class manually.
71
+ */
72
+
73
+ /**
74
+ *
75
+ * @export
76
+ * @interface ActivityNFT
77
+ */
78
+ interface ActivityNFT {
79
+ /**
80
+ *
81
+ * @type {NFTContractType}
82
+ * @memberof ActivityNFT
83
+ */
84
+ 'contract_type': NFTContractType;
85
+ /**
86
+ * The token contract address
87
+ * @type {string}
88
+ * @memberof ActivityNFT
89
+ */
90
+ 'contract_address': string;
91
+ /**
92
+ * An `uint256` token id as string
93
+ * @type {string}
94
+ * @memberof ActivityNFT
95
+ */
96
+ 'token_id': string;
97
+ }
98
+
99
+ /**
100
+ * Immutable X API
101
+ * Immutable Multi Rollup API
102
+ *
103
+ * The version of the OpenAPI document: 1.0.0
104
+ * Contact: support@immutable.com
105
+ *
106
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
107
+ * https://openapi-generator.tech
108
+ * Do not edit the class manually.
109
+ */
110
+ /**
111
+ * The contract type for a token
112
+ * @export
113
+ * @enum {string}
114
+ */
115
+ declare const TokenContractType: {
116
+ readonly Erc20: "ERC20";
117
+ };
118
+ type TokenContractType = typeof TokenContractType[keyof typeof TokenContractType];
119
+
120
+ /**
121
+ * Immutable X API
122
+ * Immutable Multi Rollup API
123
+ *
124
+ * The version of the OpenAPI document: 1.0.0
125
+ * Contact: support@immutable.com
126
+ *
127
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
128
+ * https://openapi-generator.tech
129
+ * Do not edit the class manually.
130
+ */
131
+
132
+ /**
133
+ *
134
+ * @export
135
+ * @interface ActivityToken
136
+ */
137
+ interface ActivityToken {
138
+ /**
139
+ *
140
+ * @type {TokenContractType}
141
+ * @memberof ActivityToken
142
+ */
143
+ 'contract_type': TokenContractType;
144
+ /**
145
+ * The contract address
146
+ * @type {string}
147
+ * @memberof ActivityToken
148
+ */
149
+ 'contract_address': string;
150
+ }
151
+
152
+ /**
153
+ * Immutable X API
154
+ * Immutable Multi Rollup API
155
+ *
156
+ * The version of the OpenAPI document: 1.0.0
157
+ * Contact: support@immutable.com
158
+ *
159
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
160
+ * https://openapi-generator.tech
161
+ * Do not edit the class manually.
162
+ */
163
+
164
+ /**
165
+ * @type ActivityAsset
166
+ * The contract and asset details for this activity
167
+ * @export
168
+ */
169
+ type ActivityAsset = ActivityNFT | ActivityToken;
170
+
171
+ /**
172
+ * Immutable X API
173
+ * Immutable Multi Rollup API
174
+ *
175
+ * The version of the OpenAPI document: 1.0.0
176
+ * Contact: support@immutable.com
177
+ *
178
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
179
+ * https://openapi-generator.tech
180
+ * Do not edit the class manually.
181
+ */
182
+ /**
183
+ * The activity type
184
+ * @export
185
+ * @enum {string}
186
+ */
187
+ declare const ActivityType: {
188
+ readonly Mint: "mint";
189
+ readonly Burn: "burn";
190
+ readonly Transfer: "transfer";
191
+ readonly Sale: "sale";
192
+ };
193
+ type ActivityType = typeof ActivityType[keyof typeof ActivityType];
194
+
195
+ /**
196
+ * Immutable X API
197
+ * Immutable Multi Rollup API
198
+ *
199
+ * The version of the OpenAPI document: 1.0.0
200
+ * Contact: support@immutable.com
201
+ *
202
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
203
+ * https://openapi-generator.tech
204
+ * Do not edit the class manually.
205
+ */
206
+
207
+ /**
208
+ * The burn activity details
209
+ * @export
210
+ * @interface Burn
211
+ */
212
+ interface Burn {
213
+ /**
214
+ *
215
+ * @type {ActivityType}
216
+ * @memberof Burn
217
+ */
218
+ 'activity_type': ActivityType;
219
+ /**
220
+ * The account address the asset was transferred from
221
+ * @type {string}
222
+ * @memberof Burn
223
+ */
224
+ 'from': string;
225
+ /**
226
+ * The amount of assets burnt
227
+ * @type {string}
228
+ * @memberof Burn
229
+ */
230
+ 'amount': string;
231
+ /**
232
+ *
233
+ * @type {ActivityAsset}
234
+ * @memberof Burn
235
+ */
236
+ 'asset': ActivityAsset;
237
+ }
238
+
239
+ /**
240
+ * Immutable X API
241
+ * Immutable Multi Rollup API
242
+ *
243
+ * The version of the OpenAPI document: 1.0.0
244
+ * Contact: support@immutable.com
245
+ *
246
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
247
+ * https://openapi-generator.tech
248
+ * Do not edit the class manually.
249
+ */
250
+
251
+ /**
252
+ * The mint activity details
253
+ * @export
254
+ * @interface Mint
255
+ */
256
+ interface Mint {
257
+ /**
258
+ *
259
+ * @type {ActivityType}
260
+ * @memberof Mint
261
+ */
262
+ 'activity_type': ActivityType;
263
+ /**
264
+ * The account address the asset was minted to
265
+ * @type {string}
266
+ * @memberof Mint
267
+ */
268
+ 'to': string;
269
+ /**
270
+ * The minted amount
271
+ * @type {string}
272
+ * @memberof Mint
273
+ */
274
+ 'amount': string;
275
+ /**
276
+ *
277
+ * @type {ActivityAsset}
278
+ * @memberof Mint
279
+ */
280
+ 'asset': ActivityAsset;
281
+ }
282
+
283
+ /**
284
+ * Immutable X API
285
+ * Immutable Multi Rollup API
286
+ *
287
+ * The version of the OpenAPI document: 1.0.0
288
+ * Contact: support@immutable.com
289
+ *
290
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
291
+ * https://openapi-generator.tech
292
+ * Do not edit the class manually.
293
+ */
294
+ /**
295
+ *
296
+ * @export
297
+ * @interface SaleFee
298
+ */
299
+ interface SaleFee {
300
+ /**
301
+ * Fee payable to recipient upon settlement
302
+ * @type {string}
303
+ * @memberof SaleFee
304
+ */
305
+ 'amount'?: string;
306
+ /**
307
+ * Fee type
308
+ * @type {string}
309
+ * @memberof SaleFee
310
+ */
311
+ 'type'?: SaleFeeTypeEnum;
312
+ /**
313
+ * Wallet address of fee recipient
314
+ * @type {string}
315
+ * @memberof SaleFee
316
+ */
317
+ 'recipient'?: string;
318
+ }
319
+ declare const SaleFeeTypeEnum: {
320
+ readonly Royalty: "ROYALTY";
321
+ };
322
+ type SaleFeeTypeEnum = typeof SaleFeeTypeEnum[keyof typeof SaleFeeTypeEnum];
323
+
324
+ /**
325
+ * Immutable X API
326
+ * Immutable Multi Rollup API
327
+ *
328
+ * The version of the OpenAPI document: 1.0.0
329
+ * Contact: support@immutable.com
330
+ *
331
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
332
+ * https://openapi-generator.tech
333
+ * Do not edit the class manually.
334
+ */
335
+ /**
336
+ *
337
+ * @export
338
+ * @interface ActivityNativeToken
339
+ */
340
+ interface ActivityNativeToken {
341
+ /**
342
+ * The token symbol
343
+ * @type {string}
344
+ * @memberof ActivityNativeToken
345
+ */
346
+ 'symbol': string;
347
+ }
348
+
349
+ /**
350
+ * Immutable X API
351
+ * Immutable Multi Rollup API
352
+ *
353
+ * The version of the OpenAPI document: 1.0.0
354
+ * Contact: support@immutable.com
355
+ *
356
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
357
+ * https://openapi-generator.tech
358
+ * Do not edit the class manually.
359
+ */
360
+
361
+ /**
362
+ * @type SalePaymentToken
363
+ * The type of payment token
364
+ * @export
365
+ */
366
+ type SalePaymentToken = ActivityNativeToken | ActivityToken;
367
+
368
+ /**
369
+ * Immutable X API
370
+ * Immutable Multi Rollup API
371
+ *
372
+ * The version of the OpenAPI document: 1.0.0
373
+ * Contact: support@immutable.com
374
+ *
375
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
376
+ * https://openapi-generator.tech
377
+ * Do not edit the class manually.
378
+ */
379
+
380
+ /**
381
+ *
382
+ * @export
383
+ * @interface SalePayment
384
+ */
385
+ interface SalePayment {
386
+ /**
387
+ *
388
+ * @type {SalePaymentToken}
389
+ * @memberof SalePayment
390
+ */
391
+ 'token': SalePaymentToken;
392
+ /**
393
+ * The base price of the sale not including any fees
394
+ * @type {string}
395
+ * @memberof SalePayment
396
+ */
397
+ 'price_excluding_fees': string;
398
+ /**
399
+ * The total price of the sale. Includes the sum of all fees
400
+ * @type {string}
401
+ * @memberof SalePayment
402
+ */
403
+ 'price_including_fees': string;
404
+ /**
405
+ * The fees associated with this sale
406
+ * @type {Array<SaleFee>}
407
+ * @memberof SalePayment
408
+ */
409
+ 'fees': Array<SaleFee>;
410
+ }
411
+
412
+ /**
413
+ * Immutable X API
414
+ * Immutable Multi Rollup API
415
+ *
416
+ * The version of the OpenAPI document: 1.0.0
417
+ * Contact: support@immutable.com
418
+ *
419
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
420
+ * https://openapi-generator.tech
421
+ * Do not edit the class manually.
422
+ */
423
+
424
+ /**
425
+ * The NFT Sale activity details
426
+ * @export
427
+ * @interface NFTSale
428
+ */
429
+ interface NFTSale {
430
+ /**
431
+ *
432
+ * @type {ActivityType}
433
+ * @memberof NFTSale
434
+ */
435
+ 'activity_type': ActivityType;
436
+ /**
437
+ * The id of order
438
+ * @type {string}
439
+ * @memberof NFTSale
440
+ */
441
+ 'order_id': string;
442
+ /**
443
+ * The account address of buyer
444
+ * @type {string}
445
+ * @memberof NFTSale
446
+ */
447
+ 'to': string;
448
+ /**
449
+ * The account address of seller
450
+ * @type {string}
451
+ * @memberof NFTSale
452
+ */
453
+ 'from': string;
454
+ /**
455
+ *
456
+ * @type {Array<ActivityNFT>}
457
+ * @memberof NFTSale
458
+ */
459
+ 'asset': Array<ActivityNFT>;
460
+ /**
461
+ *
462
+ * @type {SalePayment}
463
+ * @memberof NFTSale
464
+ */
465
+ 'payment': SalePayment;
466
+ }
467
+
468
+ /**
469
+ * Immutable X API
470
+ * Immutable Multi Rollup API
471
+ *
472
+ * The version of the OpenAPI document: 1.0.0
473
+ * Contact: support@immutable.com
474
+ *
475
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
476
+ * https://openapi-generator.tech
477
+ * Do not edit the class manually.
478
+ */
479
+
480
+ /**
481
+ * The transfer activity details
482
+ * @export
483
+ * @interface Transfer
484
+ */
485
+ interface Transfer {
486
+ /**
487
+ *
488
+ * @type {ActivityType}
489
+ * @memberof Transfer
490
+ */
491
+ 'activity_type': ActivityType;
492
+ /**
493
+ * The account address the asset was transferred from
494
+ * @type {string}
495
+ * @memberof Transfer
496
+ */
497
+ 'from': string;
498
+ /**
499
+ * The account address the asset was transferred to
500
+ * @type {string}
501
+ * @memberof Transfer
502
+ */
503
+ 'to': string;
504
+ /**
505
+ * The amount of assets transferred
506
+ * @type {string}
507
+ * @memberof Transfer
508
+ */
509
+ 'amount': string;
510
+ /**
511
+ *
512
+ * @type {ActivityAsset}
513
+ * @memberof Transfer
514
+ */
515
+ 'asset': ActivityAsset;
516
+ }
517
+
518
+ /**
519
+ * Immutable X API
520
+ * Immutable Multi Rollup API
521
+ *
522
+ * The version of the OpenAPI document: 1.0.0
523
+ * Contact: support@immutable.com
524
+ *
525
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
526
+ * https://openapi-generator.tech
527
+ * Do not edit the class manually.
528
+ */
529
+
530
+ /**
531
+ * @type ActivityDetails
532
+ * The activity details
533
+ * @export
534
+ */
535
+ type ActivityDetails = Burn | Mint | NFTSale | Transfer;
536
+
537
+ /**
538
+ * Immutable X API
539
+ * Immutable Multi Rollup API
540
+ *
541
+ * The version of the OpenAPI document: 1.0.0
542
+ * Contact: support@immutable.com
543
+ *
544
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
545
+ * https://openapi-generator.tech
546
+ * Do not edit the class manually.
547
+ */
548
+ /**
549
+ * The metadata related to blockchain transaction
550
+ * @export
551
+ * @interface BlockchainMetadata
552
+ */
553
+ interface BlockchainMetadata {
554
+ /**
555
+ * The transaction hash of the activity
556
+ * @type {string}
557
+ * @memberof BlockchainMetadata
558
+ */
559
+ 'transaction_hash': string;
560
+ /**
561
+ * EVM block number (uint64 as string)
562
+ * @type {string}
563
+ * @memberof BlockchainMetadata
564
+ */
565
+ 'block_number': string;
566
+ /**
567
+ * Transaction index in a block (uint32 as string)
568
+ * @type {string}
569
+ * @memberof BlockchainMetadata
570
+ */
571
+ 'transaction_index': string;
572
+ /**
573
+ * The log index of activity in a block (uint32 as string)
574
+ * @type {string}
575
+ * @memberof BlockchainMetadata
576
+ */
577
+ 'log_index': string | null;
578
+ }
579
+
580
+ /**
581
+ * Immutable X API
582
+ * Immutable Multi Rollup API
583
+ *
584
+ * The version of the OpenAPI document: 1.0.0
585
+ * Contact: support@immutable.com
586
+ *
587
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
588
+ * https://openapi-generator.tech
589
+ * Do not edit the class manually.
590
+ */
591
+ /**
592
+ * The chain details
593
+ * @export
594
+ * @interface Chain
595
+ */
596
+ interface Chain {
597
+ /**
598
+ * The id of chain
599
+ * @type {string}
600
+ * @memberof Chain
601
+ */
602
+ 'id': string;
603
+ /**
604
+ * The name of chain
605
+ * @type {string}
606
+ * @memberof Chain
607
+ */
608
+ 'name': string;
609
+ }
610
+
611
+ /**
612
+ * Immutable X API
613
+ * Immutable Multi Rollup API
614
+ *
615
+ * The version of the OpenAPI document: 1.0.0
616
+ * Contact: support@immutable.com
617
+ *
618
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
619
+ * https://openapi-generator.tech
620
+ * Do not edit the class manually.
621
+ */
622
+
623
+ /**
624
+ *
625
+ * @export
626
+ * @interface Activity
627
+ */
628
+ interface Activity {
629
+ /**
630
+ * Activity ID in UUIDv4 format
631
+ * @type {string}
632
+ * @memberof Activity
633
+ */
634
+ 'id': string;
635
+ /**
636
+ *
637
+ * @type {Chain}
638
+ * @memberof Activity
639
+ */
640
+ 'chain': Chain;
641
+ /**
642
+ *
643
+ * @type {ActivityType}
644
+ * @memberof Activity
645
+ */
646
+ 'type': ActivityType;
647
+ /**
648
+ *
649
+ * @type {ActivityDetails}
650
+ * @memberof Activity
651
+ */
652
+ 'details': ActivityDetails;
653
+ /**
654
+ * The time activity was indexed
655
+ * @type {string}
656
+ * @memberof Activity
657
+ */
658
+ 'indexed_at': string;
659
+ /**
660
+ *
661
+ * @type {BlockchainMetadata}
662
+ * @memberof Activity
663
+ */
664
+ 'blockchain_metadata': BlockchainMetadata | null;
665
+ }
666
+
667
+ /**
668
+ * Immutable X API
669
+ * Immutable Multi Rollup API
670
+ *
671
+ * The version of the OpenAPI document: 1.0.0
672
+ * Contact: support@immutable.com
673
+ *
674
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
675
+ * https://openapi-generator.tech
676
+ * Do not edit the class manually.
677
+ */
678
+ /**
679
+ *
680
+ * @export
681
+ * @interface ChainWithDetailsAllOf
682
+ */
683
+ interface ChainWithDetailsAllOf {
684
+ /**
685
+ * URL for RPC node
686
+ * @type {string}
687
+ * @memberof ChainWithDetailsAllOf
688
+ */
689
+ 'rpc_url': string | null;
690
+ }
691
+
692
+ /**
693
+ * Immutable X API
694
+ * Immutable Multi Rollup API
695
+ *
696
+ * The version of the OpenAPI document: 1.0.0
697
+ * Contact: support@immutable.com
698
+ *
699
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
700
+ * https://openapi-generator.tech
701
+ * Do not edit the class manually.
702
+ */
703
+
704
+ /**
705
+ * @type ChainWithDetails
706
+ * @export
707
+ */
708
+ type ChainWithDetails = Chain & ChainWithDetailsAllOf;
709
+
710
+ /**
711
+ * Immutable X API
712
+ * Immutable Multi Rollup API
713
+ *
714
+ * The version of the OpenAPI document: 1.0.0
715
+ * Contact: support@immutable.com
716
+ *
717
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
718
+ * https://openapi-generator.tech
719
+ * Do not edit the class manually.
720
+ */
721
+ /**
722
+ * The collection contract type
723
+ * @export
724
+ * @enum {string}
725
+ */
726
+ declare const CollectionContractType: {
727
+ readonly Erc721: "ERC721";
728
+ };
729
+ type CollectionContractType = typeof CollectionContractType[keyof typeof CollectionContractType];
730
+
731
+ /**
732
+ * Immutable X API
733
+ * Immutable Multi Rollup API
734
+ *
735
+ * The version of the OpenAPI document: 1.0.0
736
+ * Contact: support@immutable.com
737
+ *
738
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
739
+ * https://openapi-generator.tech
740
+ * Do not edit the class manually.
741
+ */
742
+
743
+ /**
744
+ *
745
+ * @export
746
+ * @interface Collection
747
+ */
748
+ interface Collection {
749
+ /**
750
+ *
751
+ * @type {Chain}
752
+ * @memberof Collection
753
+ */
754
+ 'chain': Chain;
755
+ /**
756
+ * The name of the collection
757
+ * @type {string}
758
+ * @memberof Collection
759
+ */
760
+ 'name': string | null;
761
+ /**
762
+ * The symbol of contract
763
+ * @type {string}
764
+ * @memberof Collection
765
+ */
766
+ 'symbol': string | null;
767
+ /**
768
+ *
769
+ * @type {CollectionContractType}
770
+ * @memberof Collection
771
+ */
772
+ 'contract_type': CollectionContractType;
773
+ /**
774
+ * The address of the contract
775
+ * @type {string}
776
+ * @memberof Collection
777
+ */
778
+ 'contract_address': string;
779
+ /**
780
+ * The description of collection
781
+ * @type {string}
782
+ * @memberof Collection
783
+ */
784
+ 'description': string | null;
785
+ /**
786
+ * The url of the collection image
787
+ * @type {string}
788
+ * @memberof Collection
789
+ */
790
+ 'image': string | null;
791
+ /**
792
+ * The url of external link
793
+ * @type {string}
794
+ * @memberof Collection
795
+ */
796
+ 'external_link': string | null;
797
+ /**
798
+ * The uri for the metadata of the collection
799
+ * @type {string}
800
+ * @memberof Collection
801
+ */
802
+ 'contract_uri'?: string | null;
803
+ /**
804
+ * The metadata uri for nft
805
+ * @type {string}
806
+ * @memberof Collection
807
+ */
808
+ 'base_uri': string | null;
809
+ /**
810
+ * When the collection was first indexed
811
+ * @type {string}
812
+ * @memberof Collection
813
+ */
814
+ 'indexed_at': string;
815
+ /**
816
+ * When the collection was last updated
817
+ * @type {string}
818
+ * @memberof Collection
819
+ */
820
+ 'updated_at': string;
821
+ /**
822
+ * When the collection metadata was last synced
823
+ * @type {string}
824
+ * @memberof Collection
825
+ */
826
+ 'last_metadata_synced_at': string | null;
827
+ }
828
+
829
+ /**
830
+ * Immutable X API
831
+ * Immutable Multi Rollup API
832
+ *
833
+ * The version of the OpenAPI document: 1.0.0
834
+ * Contact: support@immutable.com
835
+ *
836
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
837
+ * https://openapi-generator.tech
838
+ * Do not edit the class manually.
839
+ */
840
+
841
+ /**
842
+ * Single activity
843
+ * @export
844
+ * @interface GetActivityResult
845
+ */
846
+ interface GetActivityResult {
847
+ /**
848
+ *
849
+ * @type {Activity}
850
+ * @memberof GetActivityResult
851
+ */
852
+ 'result': Activity;
853
+ }
854
+
855
+ /**
856
+ * Immutable X API
857
+ * Immutable Multi Rollup API
858
+ *
859
+ * The version of the OpenAPI document: 1.0.0
860
+ * Contact: support@immutable.com
861
+ *
862
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
863
+ * https://openapi-generator.tech
864
+ * Do not edit the class manually.
865
+ */
866
+
867
+ /**
868
+ * Single Collection
869
+ * @export
870
+ * @interface GetCollectionResult
871
+ */
872
+ interface GetCollectionResult {
873
+ /**
874
+ *
875
+ * @type {Collection}
876
+ * @memberof GetCollectionResult
877
+ */
878
+ 'result': Collection;
879
+ }
880
+
881
+ /**
882
+ * Immutable X API
883
+ * Immutable Multi Rollup API
884
+ *
885
+ * The version of the OpenAPI document: 1.0.0
886
+ * Contact: support@immutable.com
887
+ *
888
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
889
+ * https://openapi-generator.tech
890
+ * Do not edit the class manually.
891
+ */
892
+
893
+ /**
894
+ *
895
+ * @export
896
+ * @interface NFT
897
+ */
898
+ interface NFT {
899
+ /**
900
+ *
901
+ * @type {Chain}
902
+ * @memberof NFT
903
+ */
904
+ 'chain': Chain;
905
+ /**
906
+ * An `uint256` token id as string
907
+ * @type {string}
908
+ * @memberof NFT
909
+ */
910
+ 'token_id': string;
911
+ /**
912
+ * The contract address of the NFT
913
+ * @type {string}
914
+ * @memberof NFT
915
+ */
916
+ 'contract_address': string;
917
+ /**
918
+ * When the NFT was first indexed
919
+ * @type {string}
920
+ * @memberof NFT
921
+ */
922
+ 'indexed_at': string;
923
+ /**
924
+ * When NFT metadata was last synced
925
+ * @type {string}
926
+ * @memberof NFT
927
+ */
928
+ 'metadata_synced_at': string | null;
929
+ /**
930
+ * The name of the NFT
931
+ * @type {string}
932
+ * @memberof NFT
933
+ */
934
+ 'name': string | null;
935
+ /**
936
+ * The description of the NFT
937
+ * @type {string}
938
+ * @memberof NFT
939
+ */
940
+ 'description': string | null;
941
+ /**
942
+ * The image url of the NFT
943
+ * @type {string}
944
+ * @memberof NFT
945
+ */
946
+ 'image': string | null;
947
+ /**
948
+ * The external website link of NFT
949
+ * @type {string}
950
+ * @memberof NFT
951
+ */
952
+ 'external_link': string | null;
953
+ /**
954
+ * The animation url of the NFT
955
+ * @type {string}
956
+ * @memberof NFT
957
+ */
958
+ 'animation_url': string | null;
959
+ /**
960
+ * The youtube URL of NFT
961
+ * @type {string}
962
+ * @memberof NFT
963
+ */
964
+ 'youtube_url': string | null;
965
+ /**
966
+ * The id of mint activity of this NFT
967
+ * @type {string}
968
+ * @memberof NFT
969
+ */
970
+ 'mint_activity_id': string | null;
971
+ }
972
+
973
+ /**
974
+ * Immutable X API
975
+ * Immutable Multi Rollup API
976
+ *
977
+ * The version of the OpenAPI document: 1.0.0
978
+ * Contact: support@immutable.com
979
+ *
980
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
981
+ * https://openapi-generator.tech
982
+ * Do not edit the class manually.
983
+ */
984
+ /**
985
+ *
986
+ * @export
987
+ * @interface NFTMetadataAttribute
988
+ */
989
+ interface NFTMetadataAttribute {
990
+ /**
991
+ * The metadata trait type
992
+ * @type {string}
993
+ * @memberof NFTMetadataAttribute
994
+ */
995
+ 'trait_type': string;
996
+ /**
997
+ * The metadata trait value
998
+ * @type {string}
999
+ * @memberof NFTMetadataAttribute
1000
+ */
1001
+ 'value': string;
1002
+ }
1003
+
1004
+ /**
1005
+ * Immutable X API
1006
+ * Immutable Multi Rollup API
1007
+ *
1008
+ * The version of the OpenAPI document: 1.0.0
1009
+ * Contact: support@immutable.com
1010
+ *
1011
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1012
+ * https://openapi-generator.tech
1013
+ * Do not edit the class manually.
1014
+ */
1015
+
1016
+ /**
1017
+ * List of normalized NFT metadata attributes
1018
+ * @export
1019
+ * @interface NFTMetadataAttributes
1020
+ */
1021
+ interface NFTMetadataAttributes {
1022
+ /**
1023
+ * List of NFT Metadata attributes
1024
+ * @type {Array<NFTMetadataAttribute>}
1025
+ * @memberof NFTMetadataAttributes
1026
+ */
1027
+ 'attributes': Array<NFTMetadataAttribute>;
1028
+ }
1029
+
1030
+ /**
1031
+ * Immutable X API
1032
+ * Immutable Multi Rollup API
1033
+ *
1034
+ * The version of the OpenAPI document: 1.0.0
1035
+ * Contact: support@immutable.com
1036
+ *
1037
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1038
+ * https://openapi-generator.tech
1039
+ * Do not edit the class manually.
1040
+ */
1041
+
1042
+ /**
1043
+ * @type NFTWithMetadataAttributes
1044
+ * A single NFT with metadata attributes
1045
+ * @export
1046
+ */
1047
+ type NFTWithMetadataAttributes = NFT & NFTMetadataAttributes;
1048
+
1049
+ /**
1050
+ * Immutable X API
1051
+ * Immutable Multi Rollup API
1052
+ *
1053
+ * The version of the OpenAPI document: 1.0.0
1054
+ * Contact: support@immutable.com
1055
+ *
1056
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1057
+ * https://openapi-generator.tech
1058
+ * Do not edit the class manually.
1059
+ */
1060
+
1061
+ /**
1062
+ * Single NFT
1063
+ * @export
1064
+ * @interface GetNFTResult
1065
+ */
1066
+ interface GetNFTResult {
1067
+ /**
1068
+ *
1069
+ * @type {NFTWithMetadataAttributes}
1070
+ * @memberof GetNFTResult
1071
+ */
1072
+ 'result': NFTWithMetadataAttributes;
1073
+ }
1074
+
1075
+ /**
1076
+ * Immutable X API
1077
+ * Immutable Multi Rollup API
1078
+ *
1079
+ * The version of the OpenAPI document: 1.0.0
1080
+ * Contact: support@immutable.com
1081
+ *
1082
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1083
+ * https://openapi-generator.tech
1084
+ * Do not edit the class manually.
1085
+ */
1086
+
1087
+ /**
1088
+ *
1089
+ * @export
1090
+ * @interface Token
1091
+ */
1092
+ interface Token {
1093
+ /**
1094
+ *
1095
+ * @type {Chain}
1096
+ * @memberof Token
1097
+ */
1098
+ 'chain': Chain;
1099
+ /**
1100
+ *
1101
+ * @type {string}
1102
+ * @memberof Token
1103
+ */
1104
+ 'contract_address': string;
1105
+ /**
1106
+ *
1107
+ * @type {string}
1108
+ * @memberof Token
1109
+ */
1110
+ 'symbol': string | null;
1111
+ /**
1112
+ *
1113
+ * @type {number}
1114
+ * @memberof Token
1115
+ */
1116
+ 'decimals': number | null;
1117
+ /**
1118
+ *
1119
+ * @type {string}
1120
+ * @memberof Token
1121
+ */
1122
+ 'image_url': string | null;
1123
+ /**
1124
+ *
1125
+ * @type {string}
1126
+ * @memberof Token
1127
+ */
1128
+ 'name': string | null;
1129
+ }
1130
+
1131
+ /**
1132
+ * Immutable X API
1133
+ * Immutable Multi Rollup API
1134
+ *
1135
+ * The version of the OpenAPI document: 1.0.0
1136
+ * Contact: support@immutable.com
1137
+ *
1138
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1139
+ * https://openapi-generator.tech
1140
+ * Do not edit the class manually.
1141
+ */
1142
+
1143
+ /**
1144
+ * Single Token
1145
+ * @export
1146
+ * @interface GetTokenResult
1147
+ */
1148
+ interface GetTokenResult {
1149
+ /**
1150
+ *
1151
+ * @type {Token}
1152
+ * @memberof GetTokenResult
1153
+ */
1154
+ 'result': Token;
1155
+ }
1156
+
1157
+ /**
1158
+ * Immutable X API
1159
+ * Immutable Multi Rollup API
1160
+ *
1161
+ * The version of the OpenAPI document: 1.0.0
1162
+ * Contact: support@immutable.com
1163
+ *
1164
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1165
+ * https://openapi-generator.tech
1166
+ * Do not edit the class manually.
1167
+ */
1168
+ /**
1169
+ * Pagination properties
1170
+ * @export
1171
+ * @interface Page
1172
+ */
1173
+ interface Page {
1174
+ /**
1175
+ * First item as an encoded string
1176
+ * @type {string}
1177
+ * @memberof Page
1178
+ */
1179
+ 'previous_cursor': string | null;
1180
+ /**
1181
+ * Last item as an encoded string
1182
+ * @type {string}
1183
+ * @memberof Page
1184
+ */
1185
+ 'next_cursor': string | null;
1186
+ }
1187
+
1188
+ /**
1189
+ * Immutable X API
1190
+ * Immutable Multi Rollup API
1191
+ *
1192
+ * The version of the OpenAPI document: 1.0.0
1193
+ * Contact: support@immutable.com
1194
+ *
1195
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1196
+ * https://openapi-generator.tech
1197
+ * Do not edit the class manually.
1198
+ */
1199
+
1200
+ /**
1201
+ * List activities response
1202
+ * @export
1203
+ * @interface ListActivitiesResult
1204
+ */
1205
+ interface ListActivitiesResult {
1206
+ /**
1207
+ * List of activities
1208
+ * @type {Array<Activity>}
1209
+ * @memberof ListActivitiesResult
1210
+ */
1211
+ 'result': Array<Activity>;
1212
+ /**
1213
+ *
1214
+ * @type {Page}
1215
+ * @memberof ListActivitiesResult
1216
+ */
1217
+ 'page': Page;
1218
+ }
1219
+
1220
+ /**
1221
+ * Immutable X API
1222
+ * Immutable Multi Rollup API
1223
+ *
1224
+ * The version of the OpenAPI document: 1.0.0
1225
+ * Contact: support@immutable.com
1226
+ *
1227
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1228
+ * https://openapi-generator.tech
1229
+ * Do not edit the class manually.
1230
+ */
1231
+
1232
+ /**
1233
+ *
1234
+ * @export
1235
+ * @interface ListChainsResult
1236
+ */
1237
+ interface ListChainsResult {
1238
+ /**
1239
+ * List of chains
1240
+ * @type {Array<ChainWithDetails>}
1241
+ * @memberof ListChainsResult
1242
+ */
1243
+ 'result': Array<ChainWithDetails>;
1244
+ /**
1245
+ *
1246
+ * @type {Page}
1247
+ * @memberof ListChainsResult
1248
+ */
1249
+ 'page': Page;
1250
+ }
1251
+
1252
+ /**
1253
+ * Immutable X API
1254
+ * Immutable Multi Rollup API
1255
+ *
1256
+ * The version of the OpenAPI document: 1.0.0
1257
+ * Contact: support@immutable.com
1258
+ *
1259
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1260
+ * https://openapi-generator.tech
1261
+ * Do not edit the class manually.
1262
+ */
1263
+
1264
+ /**
1265
+ *
1266
+ * @export
1267
+ * @interface ListCollectionsResult
1268
+ */
1269
+ interface ListCollectionsResult {
1270
+ /**
1271
+ * List of collections
1272
+ * @type {Array<Collection>}
1273
+ * @memberof ListCollectionsResult
1274
+ */
1275
+ 'result': Array<Collection>;
1276
+ /**
1277
+ *
1278
+ * @type {Page}
1279
+ * @memberof ListCollectionsResult
1280
+ */
1281
+ 'page': Page;
1282
+ }
1283
+
1284
+ /**
1285
+ * Immutable X API
1286
+ * Immutable Multi Rollup API
1287
+ *
1288
+ * The version of the OpenAPI document: 1.0.0
1289
+ * Contact: support@immutable.com
1290
+ *
1291
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1292
+ * https://openapi-generator.tech
1293
+ * Do not edit the class manually.
1294
+ */
1295
+
1296
+ /**
1297
+ *
1298
+ * @export
1299
+ * @interface NFTOwner
1300
+ */
1301
+ interface NFTOwner {
1302
+ /**
1303
+ *
1304
+ * @type {Chain}
1305
+ * @memberof NFTOwner
1306
+ */
1307
+ 'chain': Chain;
1308
+ /**
1309
+ * The address of NFT contract
1310
+ * @type {string}
1311
+ * @memberof NFTOwner
1312
+ */
1313
+ 'contract_address': string;
1314
+ /**
1315
+ * An `uint256` token id as string
1316
+ * @type {string}
1317
+ * @memberof NFTOwner
1318
+ */
1319
+ 'token_id': string;
1320
+ /**
1321
+ * The account address of the owner of the NFT
1322
+ * @type {string}
1323
+ * @memberof NFTOwner
1324
+ */
1325
+ 'account_address': string;
1326
+ /**
1327
+ * The quantity of owned tokens (uint256 as string)
1328
+ * @type {string}
1329
+ * @memberof NFTOwner
1330
+ */
1331
+ 'quantity': string;
1332
+ }
1333
+
1334
+ /**
1335
+ * Immutable X API
1336
+ * Immutable Multi Rollup API
1337
+ *
1338
+ * The version of the OpenAPI document: 1.0.0
1339
+ * Contact: support@immutable.com
1340
+ *
1341
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1342
+ * https://openapi-generator.tech
1343
+ * Do not edit the class manually.
1344
+ */
1345
+
1346
+ /**
1347
+ *
1348
+ * @export
1349
+ * @interface ListNFTOwnersResult
1350
+ */
1351
+ interface ListNFTOwnersResult {
1352
+ /**
1353
+ * List of nft owners
1354
+ * @type {Array<NFTOwner>}
1355
+ * @memberof ListNFTOwnersResult
1356
+ */
1357
+ 'result': Array<NFTOwner>;
1358
+ /**
1359
+ *
1360
+ * @type {Page}
1361
+ * @memberof ListNFTOwnersResult
1362
+ */
1363
+ 'page': Page;
1364
+ }
1365
+
1366
+ /**
1367
+ * Immutable X API
1368
+ * Immutable Multi Rollup API
1369
+ *
1370
+ * The version of the OpenAPI document: 1.0.0
1371
+ * Contact: support@immutable.com
1372
+ *
1373
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1374
+ * https://openapi-generator.tech
1375
+ * Do not edit the class manually.
1376
+ */
1377
+
1378
+ /**
1379
+ *
1380
+ * @export
1381
+ * @interface ListNFTsResult
1382
+ */
1383
+ interface ListNFTsResult {
1384
+ /**
1385
+ * List of nfts
1386
+ * @type {Array<NFT>}
1387
+ * @memberof ListNFTsResult
1388
+ */
1389
+ 'result': Array<NFT>;
1390
+ /**
1391
+ *
1392
+ * @type {Page}
1393
+ * @memberof ListNFTsResult
1394
+ */
1395
+ 'page': Page;
1396
+ }
1397
+
1398
+ /**
1399
+ * Immutable X API
1400
+ * Immutable Multi Rollup API
1401
+ *
1402
+ * The version of the OpenAPI document: 1.0.0
1403
+ * Contact: support@immutable.com
1404
+ *
1405
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1406
+ * https://openapi-generator.tech
1407
+ * Do not edit the class manually.
1408
+ */
1409
+
1410
+ /**
1411
+ *
1412
+ * @export
1413
+ * @interface ListTokensResult
1414
+ */
1415
+ interface ListTokensResult {
1416
+ /**
1417
+ * List of tokens
1418
+ * @type {Array<Token>}
1419
+ * @memberof ListTokensResult
1420
+ */
1421
+ 'result': Array<Token>;
1422
+ /**
1423
+ *
1424
+ * @type {Page}
1425
+ * @memberof ListTokensResult
1426
+ */
1427
+ 'page': Page;
1428
+ }
1429
+
1430
+ /**
1431
+ * Request parameters for getActivity operation in ActivitiesApi.
1432
+ * @export
1433
+ * @interface ActivitiesApiGetActivityRequest
1434
+ */
1435
+ interface ActivitiesApiGetActivityRequest {
1436
+ /**
1437
+ * The name of chain
1438
+ * @type {string}
1439
+ * @memberof ActivitiesApiGetActivity
1440
+ */
1441
+ readonly chainName: string;
1442
+ /**
1443
+ * The id of activity
1444
+ * @type {string}
1445
+ * @memberof ActivitiesApiGetActivity
1446
+ */
1447
+ readonly activityId: string;
1448
+ }
1449
+ /**
1450
+ * Request parameters for listActivities operation in ActivitiesApi.
1451
+ * @export
1452
+ * @interface ActivitiesApiListActivitiesRequest
1453
+ */
1454
+ interface ActivitiesApiListActivitiesRequest {
1455
+ /**
1456
+ * The name of chain
1457
+ * @type {string}
1458
+ * @memberof ActivitiesApiListActivities
1459
+ */
1460
+ readonly chainName: string;
1461
+ /**
1462
+ * The contract address of NFT or ERC20 Token
1463
+ * @type {string}
1464
+ * @memberof ActivitiesApiListActivities
1465
+ */
1466
+ readonly contractAddress?: string;
1467
+ /**
1468
+ * An &#x60;uint256&#x60; token id as string
1469
+ * @type {string}
1470
+ * @memberof ActivitiesApiListActivities
1471
+ */
1472
+ readonly tokenId?: string;
1473
+ /**
1474
+ * The account address activity contains
1475
+ * @type {string}
1476
+ * @memberof ActivitiesApiListActivities
1477
+ */
1478
+ readonly accountAddress?: string;
1479
+ /**
1480
+ * The activity type
1481
+ * @type {ActivityType}
1482
+ * @memberof ActivitiesApiListActivities
1483
+ */
1484
+ readonly activityType?: ActivityType;
1485
+ /**
1486
+ * From indexed at including given date
1487
+ * @type {string}
1488
+ * @memberof ActivitiesApiListActivities
1489
+ */
1490
+ readonly fromIndexedAt?: string;
1491
+ /**
1492
+ * To indexed at including given date
1493
+ * @type {string}
1494
+ * @memberof ActivitiesApiListActivities
1495
+ */
1496
+ readonly toIndexedAt?: string;
1497
+ /**
1498
+ * The transaction hash of activity
1499
+ * @type {string}
1500
+ * @memberof ActivitiesApiListActivities
1501
+ */
1502
+ readonly transactionHash?: string;
1503
+ /**
1504
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1505
+ * @type {string}
1506
+ * @memberof ActivitiesApiListActivities
1507
+ */
1508
+ readonly pageCursor?: string;
1509
+ /**
1510
+ * Maximum number of items to return
1511
+ * @type {number}
1512
+ * @memberof ActivitiesApiListActivities
1513
+ */
1514
+ readonly pageSize?: number;
1515
+ }
1516
+
1517
+ /**
1518
+ * Request parameters for listChains operation in ChainsApi.
1519
+ * @export
1520
+ * @interface ChainsApiListChainsRequest
1521
+ */
1522
+ interface ChainsApiListChainsRequest {
1523
+ /**
1524
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1525
+ * @type {string}
1526
+ * @memberof ChainsApiListChains
1527
+ */
1528
+ readonly pageCursor?: string;
1529
+ /**
1530
+ * Maximum number of items to return
1531
+ * @type {number}
1532
+ * @memberof ChainsApiListChains
1533
+ */
1534
+ readonly pageSize?: number;
1535
+ }
1536
+
1537
+ /**
1538
+ * Request parameters for getCollection operation in CollectionsApi.
1539
+ * @export
1540
+ * @interface CollectionsApiGetCollectionRequest
1541
+ */
1542
+ interface CollectionsApiGetCollectionRequest {
1543
+ /**
1544
+ * The address contract
1545
+ * @type {string}
1546
+ * @memberof CollectionsApiGetCollection
1547
+ */
1548
+ readonly contractAddress: string;
1549
+ /**
1550
+ * The name of chain
1551
+ * @type {string}
1552
+ * @memberof CollectionsApiGetCollection
1553
+ */
1554
+ readonly chainName: string;
1555
+ }
1556
+ /**
1557
+ * Request parameters for listCollections operation in CollectionsApi.
1558
+ * @export
1559
+ * @interface CollectionsApiListCollectionsRequest
1560
+ */
1561
+ interface CollectionsApiListCollectionsRequest {
1562
+ /**
1563
+ * The name of chain
1564
+ * @type {string}
1565
+ * @memberof CollectionsApiListCollections
1566
+ */
1567
+ readonly chainName: string;
1568
+ /**
1569
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1570
+ * @type {string}
1571
+ * @memberof CollectionsApiListCollections
1572
+ */
1573
+ readonly pageCursor?: string;
1574
+ /**
1575
+ * Maximum number of items to return
1576
+ * @type {number}
1577
+ * @memberof CollectionsApiListCollections
1578
+ */
1579
+ readonly pageSize?: number;
1580
+ }
1581
+
1582
+ /**
1583
+ * Request parameters for listNFTOwners operation in NftOwnersApi.
1584
+ * @export
1585
+ * @interface NftOwnersApiListNFTOwnersRequest
1586
+ */
1587
+ interface NftOwnersApiListNFTOwnersRequest {
1588
+ /**
1589
+ * The address of contract
1590
+ * @type {string}
1591
+ * @memberof NftOwnersApiListNFTOwners
1592
+ */
1593
+ readonly contractAddress: string;
1594
+ /**
1595
+ * An &#x60;uint256&#x60; token id as string
1596
+ * @type {string}
1597
+ * @memberof NftOwnersApiListNFTOwners
1598
+ */
1599
+ readonly tokenId: string;
1600
+ /**
1601
+ * The name of chain
1602
+ * @type {string}
1603
+ * @memberof NftOwnersApiListNFTOwners
1604
+ */
1605
+ readonly chainName: string;
1606
+ /**
1607
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1608
+ * @type {string}
1609
+ * @memberof NftOwnersApiListNFTOwners
1610
+ */
1611
+ readonly pageCursor?: string;
1612
+ /**
1613
+ * Maximum number of items to return
1614
+ * @type {number}
1615
+ * @memberof NftOwnersApiListNFTOwners
1616
+ */
1617
+ readonly pageSize?: number;
1618
+ }
1619
+
1620
+ /**
1621
+ * Request parameters for getNFT operation in NftsApi.
1622
+ * @export
1623
+ * @interface NftsApiGetNFTRequest
1624
+ */
1625
+ interface NftsApiGetNFTRequest {
1626
+ /**
1627
+ * The address of NFT contract
1628
+ * @type {string}
1629
+ * @memberof NftsApiGetNFT
1630
+ */
1631
+ readonly contractAddress: string;
1632
+ /**
1633
+ * An &#x60;uint256&#x60; token id as string
1634
+ * @type {string}
1635
+ * @memberof NftsApiGetNFT
1636
+ */
1637
+ readonly tokenId: string;
1638
+ /**
1639
+ * The name of chain
1640
+ * @type {string}
1641
+ * @memberof NftsApiGetNFT
1642
+ */
1643
+ readonly chainName: string;
1644
+ }
1645
+ /**
1646
+ * Request parameters for listNFTs operation in NftsApi.
1647
+ * @export
1648
+ * @interface NftsApiListNFTsRequest
1649
+ */
1650
+ interface NftsApiListNFTsRequest {
1651
+ /**
1652
+ * Contract address
1653
+ * @type {string}
1654
+ * @memberof NftsApiListNFTs
1655
+ */
1656
+ readonly contractAddress: string;
1657
+ /**
1658
+ * The name of chain
1659
+ * @type {string}
1660
+ * @memberof NftsApiListNFTs
1661
+ */
1662
+ readonly chainName: string;
1663
+ /**
1664
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1665
+ * @type {string}
1666
+ * @memberof NftsApiListNFTs
1667
+ */
1668
+ readonly pageCursor?: string;
1669
+ /**
1670
+ * Maximum number of items to return
1671
+ * @type {number}
1672
+ * @memberof NftsApiListNFTs
1673
+ */
1674
+ readonly pageSize?: number;
1675
+ }
1676
+ /**
1677
+ * Request parameters for listNFTsByAccountAddress operation in NftsApi.
1678
+ * @export
1679
+ * @interface NftsApiListNFTsByAccountAddressRequest
1680
+ */
1681
+ interface NftsApiListNFTsByAccountAddressRequest {
1682
+ /**
1683
+ * Account address
1684
+ * @type {string}
1685
+ * @memberof NftsApiListNFTsByAccountAddress
1686
+ */
1687
+ readonly accountAddress: string;
1688
+ /**
1689
+ * The name of chain
1690
+ * @type {string}
1691
+ * @memberof NftsApiListNFTsByAccountAddress
1692
+ */
1693
+ readonly chainName: string;
1694
+ /**
1695
+ * The address of contract
1696
+ * @type {string}
1697
+ * @memberof NftsApiListNFTsByAccountAddress
1698
+ */
1699
+ readonly contractAddress?: string;
1700
+ /**
1701
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1702
+ * @type {string}
1703
+ * @memberof NftsApiListNFTsByAccountAddress
1704
+ */
1705
+ readonly pageCursor?: string;
1706
+ /**
1707
+ * Maximum number of items to return
1708
+ * @type {number}
1709
+ * @memberof NftsApiListNFTsByAccountAddress
1710
+ */
1711
+ readonly pageSize?: number;
1712
+ }
1713
+
1714
+ /**
1715
+ * Request parameters for getERC20Token operation in TokensApi.
1716
+ * @export
1717
+ * @interface TokensApiGetERC20TokenRequest
1718
+ */
1719
+ interface TokensApiGetERC20TokenRequest {
1720
+ /**
1721
+ * The address of contract
1722
+ * @type {string}
1723
+ * @memberof TokensApiGetERC20Token
1724
+ */
1725
+ readonly contractAddress: string;
1726
+ /**
1727
+ * The name of chain
1728
+ * @type {string}
1729
+ * @memberof TokensApiGetERC20Token
1730
+ */
1731
+ readonly chainName: string;
1732
+ }
1733
+ /**
1734
+ * Request parameters for listERC20Tokens operation in TokensApi.
1735
+ * @export
1736
+ * @interface TokensApiListERC20TokensRequest
1737
+ */
1738
+ interface TokensApiListERC20TokensRequest {
1739
+ /**
1740
+ * The name of chain
1741
+ * @type {string}
1742
+ * @memberof TokensApiListERC20Tokens
1743
+ */
1744
+ readonly chainName: string;
1745
+ /**
1746
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1747
+ * @type {string}
1748
+ * @memberof TokensApiListERC20Tokens
1749
+ */
1750
+ readonly pageCursor?: string;
1751
+ /**
1752
+ * Maximum number of items to return
1753
+ * @type {number}
1754
+ * @memberof TokensApiListERC20Tokens
1755
+ */
1756
+ readonly pageSize?: number;
1757
+ }
1758
+
1759
+ interface OpenAPIError extends BasicAPIError {
1760
+ code: string;
1761
+ details: {
1762
+ [key: string]: any;
1763
+ } | null;
1764
+ }
1765
+ /**
1766
+ * Custom Error class that is returned from the API when a request fails
1767
+ */
1768
+ declare class APIError extends Error {
1769
+ readonly code: string;
1770
+ readonly details: {
1771
+ [key: string]: any;
1772
+ } | null;
1773
+ readonly link: string;
1774
+ readonly traceId: string;
1775
+ constructor({ message, code, details, link, trace_id: traceId, }: OpenAPIError);
1776
+ }
1777
+
1778
+ declare class BlockchainData {
1779
+ readonly config: BlockchainDataConfiguration;
1780
+ private readonly activities;
1781
+ private readonly chains;
1782
+ private readonly collections;
1783
+ private readonly nfts;
1784
+ private readonly nftOwners;
1785
+ private readonly tokens;
1786
+ constructor(moduleConfig: BlockchainDataModuleConfiguration$1);
1787
+ /**
1788
+ * List all activities
1789
+ * @param request - the request object containing the parameters to be provided in the API request
1790
+ * @returns a promise that resolves with a list of activities
1791
+ * @throws {@link index.APIError}
1792
+ */
1793
+ listActivities(request: ActivitiesApiListActivitiesRequest): Promise<ListActivitiesResult>;
1794
+ /**
1795
+ * Get a single activity by ID
1796
+ * @param request - the request object containing the parameters to be provided in the API request
1797
+ * @returns a promise that resolves with a single activity
1798
+ * @throws {@link index.APIError}
1799
+ */
1800
+ getActivity(request: ActivitiesApiGetActivityRequest): Promise<GetActivityResult>;
1801
+ /**
1802
+ * List supported chains
1803
+ * @param request - the request object containing the parameters to be provided in the API request
1804
+ * @returns a promise that resolves with a list of supported chains
1805
+ * @throws {@link index.APIError}
1806
+ */
1807
+ listChains(request: ChainsApiListChainsRequest): Promise<ListChainsResult>;
1808
+ /**
1809
+ * List all collections
1810
+ * @param request - the request object containing the parameters to be provided in the API request
1811
+ * @returns a promise that resolves with a list of collections
1812
+ * @throws {@link index.APIError}
1813
+ */
1814
+ listCollections(request: CollectionsApiListCollectionsRequest): Promise<ListCollectionsResult>;
1815
+ /**
1816
+ * Get collection by contract address
1817
+ * @param request - the request object containing the parameters to be provided in the API request
1818
+ * @returns a promise that resolves with a single collection
1819
+ * @throws {@link index.APIError}
1820
+ */
1821
+ getCollection(request: CollectionsApiGetCollectionRequest): Promise<GetCollectionResult>;
1822
+ /**
1823
+ * Get NFT by token ID
1824
+ * @param request - the request object containing the parameters to be provided in the API request
1825
+ * @returns a promise that resolves with a single NFT
1826
+ * @throws {@link index.APIError}
1827
+ */
1828
+ getNFT(request: NftsApiGetNFTRequest): Promise<GetNFTResult>;
1829
+ /**
1830
+ * List NFTs by contract address
1831
+ * @param request - the request object containing the parameters to be provided in the API request
1832
+ * @returns a promise that resolves with a list of NFTs
1833
+ * @throws {@link index.APIError}
1834
+ */
1835
+ listNFTs(request: NftsApiListNFTsRequest): Promise<ListNFTsResult>;
1836
+ /**
1837
+ * List NFTs by account address
1838
+ * @param request - the request object containing the parameters to be provided in the API request
1839
+ * @returns a promise that resolves with a list of NFTs
1840
+ * @throws {@link index.APIError}
1841
+ */
1842
+ listNFTsByAccountAddress(request: NftsApiListNFTsByAccountAddressRequest): Promise<ListNFTsResult>;
1843
+ /**
1844
+ * List NFT owners by token ID
1845
+ * @param request - the request object containing the parameters to be provided in the API request
1846
+ * @returns a promise that resolves with a list of NFT owners
1847
+ * @throws {@link index.APIError}
1848
+ */
1849
+ listNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult>;
1850
+ /**
1851
+ * List ERC20 Token contracts
1852
+ * @param request - the request object containing the parameters to be provided in the API request
1853
+ * @returns a promise that resolves with a list of ERC20 Tokens
1854
+ * @throws {@link index.APIError}
1855
+ */
1856
+ listTokens(request: TokensApiListERC20TokensRequest): Promise<ListTokensResult>;
1857
+ /**
1858
+ * Get details for an ERC20 Token by contract address
1859
+ * @param request - the request object containing the parameters to be provided in the API request
1860
+ * @returns a promise that resolves with a list of ERC20 Tokens
1861
+ * @throws {@link index.APIError}
1862
+ */
1863
+ getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
1864
+ }
1865
+
1866
+ declare enum Environment {
1867
+ PRODUCTION = "production",
1868
+ SANDBOX = "sandbox"
1869
+ }
1870
+ declare class ImmutableConfiguration {
1871
+ readonly environment: Environment;
1872
+ readonly apiKey?: string;
1873
+ constructor(options: {
1874
+ environment: Environment;
1875
+ apiKey?: string;
1876
+ });
1877
+ }
1878
+ interface ModuleConfiguration<T> {
1879
+ baseConfig: ImmutableConfiguration;
1880
+ overrides?: T;
1881
+ }
1882
+
1883
+ interface APIConfigurationParams {
1884
+ basePath: string;
1885
+ headers?: Record<string, string>;
1886
+ }
1887
+ interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
1888
+ }
1889
+
1890
+ export { APIError, BlockchainData, BlockchainDataModuleConfiguration };