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.
Parameter | Type | Description |
---|---|---|
chains | array | List of networks to scan for NFTs. Options are: POLYGON , FANTOM , ETH , BSC , or AVALANCHE . |
max | boolean | Optional, defaults to false . If true , response will return all NFTs without pagination, and will ignore the limit and page_number values. |
limit | integer | Optional, defaults to 10 . The number of NFTs displayed per page in response. |
page_number | integer | Optional, defaults to 1 . The page offset for items in response. |
protect_from_spam | boolean | Optional, 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 |
filters | object | Optional. A standard NftFilter object. |
Parameter | Type | Description |
---|---|---|
nfts | list of objects | A list of standard NftInfo objects. |
total | integer | The total number of NFTs in your wallet matching the request filters. |
skipped | integer | The number of NFTs in your wallet excluded by 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
}