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

Get basic information and royalties of a specific collection.

Path parameters

  • network_id integer Required

    Chain ID.

    Value is 137.

  • address string Required

    Address of the NFT contract

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
      • contract string Required
      • name string Required
      • symbol string Required
      • icon_url string Required
      • slug string | null
      • verified boolean Required
      • show_rarity boolean
      • market_fee_info object
        Hide market_fee_info attributes Show market_fee_info attributes object
        • can_list boolean
        • royalty_fees array[object]
        • market_fees array[object]
  • 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}/detail
curl \
 -X GET https://api.dewapi.com/open/v1/137/contracts/0xa131b877B12B0Ae8BB7da7229b8a1095881497A6/detail \
 -H "X-API-Key: $API_KEY"
Response examples (200)
{
  "code": 0,
  "data": {
    "contract": "0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e",
    "name": "Doodle",
    "symbol": "DOODLE",
    "icon_url": "nfts/qt5xtfvkajlhva1.jpg",
    "slug": "doodles-official",
    "verified": true,
    "show_rarity": false,
    "market_fee_info": {
      "can_list": true,
      "royalty_fees": [
        {
          "fee_rate": 123,
          "fee_address": "0x0000000000000000000000000000000000000000"
        }
      ],
      "market_fees": [
        {
          "fee_rate": 150,
          "fee_address": "0xf7029639f41348e01414a990ff5291f45c1ae2a4"
        }
      ]
    }
  }
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}