Skip to main content
Version: Next

Interface: NonFungibleTokenMetadata

General structure of Non-Fungible Token Metadata (in camelCase) as per official NEP-177 standard (https://github.com/near/NEPs/blob/master/neps/nep-0177.md).

Properties

copies

Optional copies: number

number of copies of this set of metadata in existence when token was minted.

Defined in

lib/types/nft.ts:76


description

Optional description: string

free-form description

Defined in

lib/types/nft.ts:70


expiresAt

Optional expiresAt: number

When token expires, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:80


extra

Optional extra: string

anything extra the NFT wants to store on-chain. Can be stringified JSON.

Defined in

lib/types/nft.ts:86


issuedAt

Optional issuedAt: number

When token was issued or minted, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:78


media

Optional media: string

URL to associated media, preferably to decentralized, content-addressed storage

Defined in

lib/types/nft.ts:72


mediaHash

Optional mediaHash: string

Base64-encoded sha256 hash of content referenced by the media field. Required if media is included.

Defined in

lib/types/nft.ts:74


reference

Optional reference: string

URL to an off-chain JSON file with more info.

Defined in

lib/types/nft.ts:88


referenceHash

Optional referenceHash: string

Base64-encoded sha256 hash of JSON from reference field. Required if reference is included.

Defined in

lib/types/nft.ts:90


startsAt

Optional startsAt: number

When token starts being valid, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:82


title

Optional title: string

ex. "Arch Nemesis: Mail Carrier" or "Parcel #5055"

Defined in

lib/types/nft.ts:68


updatedAt

Optional updatedAt: number

When token was last updated, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:84