Update NFTAPI-v2update_nft

This method will scan selected networks to update NFT information stored in the local database. To interact with your NFTs, you will first need to activate the coin for the network the NFT is on.

See below for which coin to activate for each network:

NetworkCoin
AVALANCHEAVAX
BSCBNB
ETHETH
FANTOMFTM
POLYGONMATIC

These coins can be activated using the enable_eth_with_tokens or method.

Request Parameters

ParameterTypeDescription
chainsarrayList of networks to scan for NFTs. Options are: POLYGON, FANTOM, ETH, BSC, or AVALANCHE.
komodo_proxybooleanOptional. Indicates whether authentication is required for accessing the proxy URLs.
urlstringURL link to the Moralis API proxy base url or equivalent (if komodo_proxy is set to true, will need to provide a new Komodo Proxy URL).
url_antispamstringURL link to the Antispam API proxy base url or equivalent.

📌 Example

POST Update NFT update_nft
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "update_nft",
  "mmrpc": "2.0",
  "params": {
    "chains": [
      "BSC",
      "POLYGON"
    ],
    "komodo_proxy": false,
    "url": "https://moralis-proxy.komodo.earth",
    "url_antispam": "https://nft.antispam.dragonhound.info"
  }
}
Show Response
{
	"mmrpc": "2.0",
	"result": null,
	"id": null
}
Show Errors

Error Types

TokenIsAlreadyActivated

This error occurs when NFTs are already activated for the selected network.

{
    "mmrpc": "2.0",
    "error": "Token NFT_MATIC is already activated",
    "error_path": "token",
    "error_trace": "token:121]",
    "error_type": "TokenIsAlreadyActivated",
    "error_data": "NFT_MATIC",
    "id": null
}

TokenIsAlreadyActivated

This error occurs when NFTs are already activated for the selected network.

{
    "mmrpc": "2.0",
    "error": "Token NFT_MATICC config is not found",
    "error_path": "token.prelude",
    "error_trace": "token:124] prelude:79]",
    "error_type": "TokenConfigIsNotFound",
    "error_data": "NFT_MATICC",
    "id": null
}