Refresh NFT metadata

This endpoint enables you to submit a background task. The task will refresh the metadata of a specified NFT asset.

API Endpoint

https://open-platform.nodereal.io/{apiKey}/nftscan

method_path:/api/v2/refresh/metadata/{chain_name}

method_type:POST

Request:

ParametersDescriptionsQuery TypeRequiredData Typeschema
chain_nameName of the chain you’re querying. List of supported values: "eth" for Ethereum; "bnb" for BNB Smart Chain; "polygon" for Polygon; "moonbeam" for Moonbeam; "arbitrum" for Arbitrum One; "optimism" for Optimism; "platon" for PlatON; "avalanche" for Avalanche; "cronos" for Cronos; "fantom" for Fantom; "gnosis" for Gnosis;pathtruestring
MetadataTaskReqMetadataTaskReqbodytrueMetadataTaskReqMetadataTaskReq
  contract_addressThe contract addresstruestring
  token_idThe token IDtruestring

Request Example:

{
  "contract_address": "0x3e855b7941fe8ef5f07dad68c5140d6a3ec1b286",
  "token_id": "0x000000000000000000000000000000000000000000000000000000000000013a"
}

Response:

ParametersDescriptionsData Typeschema
codeResponse status code (200 means the request was successful, 4XX or 5XX means the request failed)integer(int32)integer(int32)
dataResponse dataTaskRetModelTaskRetModel
  reasonThe reason for the FAIL statusstring
  statusTask status. SUCCESS means the task was successfully submitted, FAIL means the task was not submitted due to some reasonstring
msgError message when request failsstring

Example:

{
	"code": 200,
	"data": {
		"reason": "task already exists",
		"status": "SUCCESS"
	},
	"msg": ""
}