Get NFT List
API-v2get_nft_list
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 or refresh the local database.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
chains | array | ✓ | - | List of networks to scan for NFTs. See NftNetworkEnum for allowed values. |
filters | object | ✗ | - | A standard NftFilter object. |
limit | integer | ✗ | 10 | The number of NFTs displayed per page in response. |
max | boolean | ✗ | false | If true , response will return all NFTs without pagination, and will ignore the limit and page_number values. |
page_number | integer | ✗ | 1 | The page offset for items in response. |
protect_from_spam | boolean | ✗ | false | If true , any potential spam link found in collection name, token name, or symbol will be replaced with URL redacted for user protection . |
Parameter | Type | Description |
---|---|---|
nfts | list of objects | A list of standard NftInfo objects. |
skipped | integer | The number of NFTs in your wallet excluded by the request filters. |
total | integer | The total number of NFTs in your wallet matching the request filters. |
Get NFT List (basic)
POST
get_nft_list{
"userpass": "RPC_UserP@SSW0RD",
"method": "get_nft_list",
"mmrpc": "2.0",
"params": {
"chains": [
"BSC",
"POLYGON"
]
}
}
Get NFT List (paginated)
POST
get_nft_list{
"userpass": "RPC_UserP@SSW0RD",
"method": "get_nft_list",
"mmrpc": "2.0",
"params": {
"chains": [
"BSC",
"POLYGON"
],
"limit": 1,
"page_number": 2
}
}