GET /open/v1/{network_id}/contracts/{address}/{token_id}

Get information including name, owner, and rarity ranking of a specific token id.

Path parameters

  • network_id integer Required

    Chain ID.

    Value is 137.

  • address string Required

    Address of the NFT contract

  • token_id string Required

    Token id

Responses

  • 200 application/json

    Successful

    Hide response attributes Show response attributes object
    • code integer Required

      0: success, others: error

    • data object
      Hide data attributes Show data attributes object
      • owner string | null
      • contract string
      • token_id string
      • name string | null
      • rank integer | null
      • status integer | null
  • 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
GET /open/v1/{network_id}/contracts/{address}/{token_id}
curl \
 -X GET https://api.dewapi.com/open/v1/137/contracts/0xa131b877B12B0Ae8BB7da7229b8a1095881497A6/1 \
 -H "X-API-Key: $API_KEY"
Response examples (200)
{
  "code": 0,
  "data": {
    "owner": "0x40415c1c0e7a8ff3e184b51a94a2fc5b92df9434",
    "contract": "0xa131b877B12B0Ae8BB7da7229b8a1095881497A6",
    "token_id": "1",
    "name": "BAYC #1",
    "rank": 1,
    "status": 0
  }
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}