@@ -98,6 +98,20 @@ export interface TokenQuantity {
98
98
last_acquired_date : string ;
99
99
}
100
100
101
+ export interface NFTPreview {
102
+ image_small_url ?: string ;
103
+ image_medium_url ?: string ;
104
+ image_large_url ?: string ;
105
+ image_opengraph_url ?: string ;
106
+ blurhash ?: string ;
107
+ }
108
+
109
+ export interface TokenContract {
110
+ type : string ;
111
+ name : string ;
112
+ symbol : string ;
113
+ }
114
+
101
115
export interface NFT {
102
116
nft_id : string ;
103
117
chain : Chain ;
@@ -109,13 +123,7 @@ export interface NFT {
109
123
video_url ?: string ;
110
124
audio_url ?: string ;
111
125
model_url ?: string ;
112
- previews : {
113
- image_small_url ?: string ;
114
- image_medium_url ?: string ;
115
- image_large_url ?: string ;
116
- image_opengraph_url ?: string ;
117
- blurhash ?: string ;
118
- } ;
126
+ previews : NFTPreview ;
119
127
background_color ?: string ;
120
128
external_url ?: string ;
121
129
created_date ?: Date ;
@@ -124,11 +132,7 @@ export interface NFT {
124
132
owner_count : number ;
125
133
owners : Owner [ ] ;
126
134
last_sale ?: Sale ;
127
- contract : {
128
- type : string ;
129
- name : string ;
130
- symbol : string ;
131
- } ;
135
+ contract : TokenContract ;
132
136
collection : Collection ;
133
137
extra_metadata ?: {
134
138
[ key : string ] : any ;
@@ -183,4 +187,69 @@ export interface FungibleTokenTransfer {
183
187
log_index : number ;
184
188
batch_transfer_index : bigint ;
185
189
transaction_hash : string ;
190
+ }
191
+
192
+ export interface CollectionRoyalties {
193
+ source : string ;
194
+ total_creator_fee_basis_points : number ;
195
+ recipients : any [ ] ;
196
+ }
197
+
198
+ export interface ImageProperties {
199
+ width : number ;
200
+ height : number ;
201
+ mime_type : string ;
202
+ }
203
+
204
+ export interface MarketplacePage {
205
+ marketplace_id : string ;
206
+ marketplace_name : string ;
207
+ marketplace_collection_id : string ;
208
+ collection_url : string ;
209
+ verified : boolean | null ;
210
+ }
211
+
212
+ export interface CollectionDetails {
213
+ collection_id : string ;
214
+ name : string ;
215
+ description : string ;
216
+ image_url : string ;
217
+ image_properties : ImageProperties ;
218
+ banner_image_url : string | null ;
219
+ category : string | null ;
220
+ is_nsfw : boolean ;
221
+ external_url : string | null ;
222
+ twitter_username : string | null ;
223
+ discord_url : string | null ;
224
+ instagram_username : string | null ;
225
+ medium_username : string | null ;
226
+ telegram_url : string | null ;
227
+ marketplace_pages : MarketplacePage [ ] ;
228
+ metaplex_mint : string | null ;
229
+ metaplex_candy_machine : string | null ;
230
+ metaplex_first_verified_creator : string | null ;
231
+ mpl_core_collection_address : string | null ;
232
+ floor_prices : any [ ] ;
233
+ top_bids : any [ ] ;
234
+ distinct_owner_count : number ;
235
+ distinct_nft_count : number ;
236
+ total_quantity : number ;
237
+ chains : string [ ] ;
238
+ top_contracts : string [ ] ;
239
+ collection_royalties : CollectionRoyalties [ ] ;
240
+ }
241
+
242
+ export interface NFTContract {
243
+ primary_key : string ;
244
+ chain : string ;
245
+ contract_address : string ;
246
+ name : string ;
247
+ type : string ;
248
+ has_multiple_collections : boolean ;
249
+ distinct_nfts_owned : number ;
250
+ distinct_nfts_owned_string : string ;
251
+ total_copies_owned : number ;
252
+ total_copies_owned_string : string ;
253
+ last_acquired_date : string ;
254
+ collections : CollectionDetails [ ] ;
186
255
}
0 commit comments