POST /open/v1/{network_id}/contracts/{contract}/tokens/{token_id}/refresh

Refresh nft metadata by contract address and token id.

Path parameters

  • contract string Required

    Address of the NFT contract

  • network_id integer Required

    Chain ID.

  • token_id string Required

Responses

  • 200 application/json

    Successful

    Hide response attribute Show response attribute object
    • code integer Required

      0: success, others: error

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer Required

      0: success, others: error

    • error string | null Required
    • errors array[object] | null
POST /open/v1/{network_id}/contracts/{contract}/tokens/{token_id}/refresh
curl \
 -X POST https://api.dewapi.com/open/v1/137/contracts/0xa131b877B12B0Ae8BB7da7229b8a1095881497A6/tokens/1/refresh \
 -H "X-API-Key: $API_KEY"
Response examples (200)
{
  "code": 0
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}