Enumeration | NEAR Protocol Specification
function nft_total_supply(): string {}
Returns the total supply of non-fungible tokens as a string representing an unsigned 128-bit integer to avoid JSON number limit of 2^53; and "0" if there are no tokens.
function nft_tokens(
from_index: string|null, // default: "0"
limit: number|null, // default: unlimited (could fail due to gas limit)
): Token[] {}
Get a list of all tokens
Arguments:
from_index: a string representing an unsigned 128-bit integer, representing the starting index of tokens to returnlimit: the maximum number of tokens to returnReturns an array of Token objects, as described in Core standard, and an empty array if there are no tokens
function nft_supply_for_owner(
account_id: string,
): string {}
Get number of tokens owned by a given account
Arguments:
account_id: a valid NEAR accountReturns the number of non-fungible tokens owned by given account_id as a string representing the value as an unsigned 128-bit integer to avoid JSON number limit of 2^53; and "0" if there are no tokens.
function nft_tokens_for_owner(
account_id: string,
from_index: string|null, // default: 0
limit: number|null, // default: unlimited (could fail due to gas limit)
): Token[] {}
Get list of all tokens owned by a given account
Arguments:
account_id: a valid NEAR accountfrom_index: a string representing an unsigned 128-bit integer, representing the starting index of tokens to returnlimit: the maximum number of tokens to return