Skip to content

Commit a9141a8

Browse files
adding animation to nft type (alchemyplatform#493)
1 parent fc143cb commit a9141a8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/types/nft-types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface NftMetadata extends Record<string, any> {
3131

3232
/** URL to the NFT asset image. */
3333
image?: string;
34-
3534
/**
3635
* The image URL that appears along the top of the NFT asset page. This tends
3736
* to be the highest resolution image.
@@ -1264,6 +1263,15 @@ export interface Nft {
12641263
description?: string;
12651264
/** Media URLs and information for the NFT */
12661265
image: NftImage;
1266+
/** Animation information for the NFT. */
1267+
animation?: {
1268+
/** URL of the animation stored in Alchemy's cache. */
1269+
cachedUrl?: string;
1270+
/** The type of the animation media. */
1271+
contentType?: string;
1272+
/** The size of the animation in bytes. */
1273+
size?: number;
1274+
};
12671275
/** The raw metadata for the NFT based on the metadata URI on the NFT contract. */
12681276
raw: NftRawMetadata;
12691277
/** URIs for accessing the NFT's metadata blob. */

0 commit comments

Comments
 (0)