Skip to main content
Version: Next

Interface: ProtocolReturnedNonFungibleTokenObject

General structure of a Non-Fungible Token object as per official NEP-171 standard (https://github.com/near/NEPs/blob/master/neps/nep-0171.md).

Properties

approved_account_ids

Optional approved_account_ids: Map<string, number>

Map of account IDs to approval IDs as per official NEP-178 standard (https://github.com/near/NEPs/blob/master/neps/nep-0178.md).

Defined in

lib/types/nft.ts:28


metadata

Optional metadata: ProtocolReturnedNonFungibleTokenMetadata

Metadata for the token

Defined in

lib/types/nft.ts:26


owner_id

owner_id: string

Account ID of the owner

Defined in

lib/types/nft.ts:24


royalty

Optional royalty: Map<string, number>

A mapping of NEAR accounts to the amount each should be paid out as per official NEP-199 standard (https://github.com/near/NEPs/blob/master/neps/nep-0199.md).

Defined in

lib/types/nft.ts:30


token_id

token_id: string

String ID for the token

Defined in

lib/types/nft.ts:22