Skip to main content
Version: Next

Interface: ProtocolReturnedNonFungibleTokenMetadata

General structure of Non-Fungible Token Metadata 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:46


description

Optional description: string

free-form description

Defined in

lib/types/nft.ts:40


expires_at

Optional expires_at: number

When token expires, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:50


extra

Optional extra: string

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

Defined in

lib/types/nft.ts:56


issued_at

Optional issued_at: number

When token was issued or minted, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:48


media

Optional media: string

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

Defined in

lib/types/nft.ts:42


media_hash

Optional media_hash: string

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

Defined in

lib/types/nft.ts:44


reference

Optional reference: string

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

Defined in

lib/types/nft.ts:58


reference_hash

Optional reference_hash: string

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

Defined in

lib/types/nft.ts:60


starts_at

Optional starts_at: number

When token starts being valid, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:52


title

Optional title: string

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

Defined in

lib/types/nft.ts:38


updated_at

Optional updated_at: number

When token was last updated, Unix epoch in milliseconds

Defined in

lib/types/nft.ts:54