On this page

latest contributor to this doc

Last Edit:

@smk762

Get a list of NFTs

Returns a list of the NFTs owned by the user, shown in descending order of the block_number value (the block height when the amount or owner changed). If the request is for NFTs on more than one chain, this means that the order may not be chronological. In the case of ERC1155 tokens, the block_number will update when additional NFTs are received or when all NFTs are withdrawn, but will generally remain the same if only some NFTs are withdrawn.

Before using this method, you must first call the update_nft method to populate/refresh the local database.

ParameterTypeDescription
chainsarrayList of networks to scan for NFTs. Options are: POLYGON, FANTOM, ETH, BSC, or AVALANCHE.
maxbooleanOptional, defaults to false. If true, response will return all NFTs without pagination, and will ignore the limit and page_number values.
limitintegerOptional, defaults to 10. The number of NFTs displayed per page in response.
page_numberintegerOptional, defaults to 1. The page offset for items in response.
protect_from_spambooleanOptional, defaults to false. If true, any potential spam link found in collection name, token name, symbol will be replaced with URL redacted for user protection
filtersobjectOptional. A standard NftFilter object.

ParameterTypeDescription
nftslist of objectsA list of standard NftInfo objects.
skippedintegerThe number of NFTs in your wallet excluded by the request filters.
totalintegerThe total number of NFTs in your wallet matching the request filters.

Get a list of NFTs

POST
get_nft_list
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "get_nft_list",
  "mmrpc": "2.0",
  "params": {
    "chains": [
      "BSC",
      "POLYGON"
    ]
  }
}

Get a list of NFTs

POST
get_nft_list
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "get_nft_list",
  "mmrpc": "2.0",
  "params": {
    "chains": [
      "BSC",
      "POLYGON"
    ],
    "limit": 1,
    "page_number": 2
  }
}

Get a list of NFTs

POST
get_nft_list
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "get_nft_list",
  "mmrpc": "2.0",
  "params": {
    "chains": [
      "BSC",
      "POLYGON"
    ],
    "protect_from_spam": true,
    "filters": {
      "exclude_spam": true,
      "exclude_phishing": true
    }
  }
}

The supported chains are

{
  "mmrpc":"2.0",
  "error":"Error parsing request: UnsupportedChainType",
  "error_path":"dispatcher",
  "error_trace":"dispatcher:109]",
  "error_type":"InvalidRequest",
  "error_data":"UnsupportedChainType",
  "id":null
}