Media
The Media object represents an NFT's media assets and associated data.
Schema Definition
type Media {
contract: String!
tokenId: UInt256!
fileType: FileType
mediaType: MediaType
metadata: MetadataReference
thumbnails(
preset: ThumbnailPreset
): [MediaThumbnail!]!
createdAt: Time!
updatedAt: Time!
}
Fields
| Field | Type | Description |
|---|---|---|
contract | String! non-null scalar | The address of the contract managing the token associated with this media. |
tokenId | UInt256! non-null scalar | The unique identifier of the token associated with this media within its contract. |
fileType | FileType enum | The MIME type of the media content (e.g., image/png or video/mp4). |
mediaType | MediaType enum | The categorized type of media. |
metadata | MetadataReference object | An object representing the metadata associated with the token associated with this media. |
thumbnails | [MediaThumbnail!]! non-null object | An array of MediaThumbnail objects representing a generated variant of this media. |
createdAt | Time! non-null scalar | Timestamp of when this media record was first created. |
updatedAt | Time! non-null scalar | Timestamp of the last update to this media record. |
Arguments
These arguments control how thumbnails are retrieved when querying the thumbnails field which returns an array of MediaThumbnail objects.
| Argument | Type | Description |
|---|---|---|
preset | ThumbnailPreset enum | Predefined size presets for optimized media thumbnail loading. |
Returned By
media query
Member Of
ContractToken object ● MediaList object ● Token object