Refresh collection metadata

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

  • Path: https://api.blockin.ai/v2/nft/collection/refresh_metadata

  • Description: Refresh the metadata for an NFT

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

chain_name

Y

String

Chain's name.eg : eth,Ethereum,pol. EVM chain of the Enumeration

address

Y

String

Collection's address

item_id

N

String

The item ID of the NFT in Number

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

Boolean

Success Boolean

error_code

N

String

Error code

error_msg

N

String

Error message

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/nft/collection/refresh_metadata?chain_name=ETH&address=0x06012c8cf97bead5deae237070f9587f8e7a266d&item_id=1000891"

Successful Response Sample

{
    "success": true,
    "data": true,
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

{
    "success": false,
    "data": null,
    "error_code": "INVALID_PARAM",
    "error_msg": "Invalid chain"
}

Last updated