Skip to main content

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

FieldTypeDescription
contractString! non-null scalarThe address of the contract managing the token associated with this media.
tokenIdUInt256! non-null scalarThe unique identifier of the token associated with this media within its contract.
fileTypeFileType enumThe MIME type of the media content (e.g., image/png or video/mp4).
mediaTypeMediaType enumThe categorized type of media.
metadataMetadataReference objectAn object representing the metadata associated with the token associated with this media.
thumbnails[MediaThumbnail!]! non-null objectAn array of MediaThumbnail objects representing a generated variant of this media.
createdAtTime! non-null scalarTimestamp of when this media record was first created.
updatedAtTime! non-null scalarTimestamp 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.

ArgumentTypeDescription
presetThumbnailPreset enumPredefined size presets for optimized media thumbnail loading.

Returned By

media query

Member Of

ContractToken object ● MediaList object ● Token object