POST /open/v1/{network_id}/wallet/{wallet}/contracts/query

Get the list of contracts from a wallet address.

Path parameters

  • network_id integer Required

    Chain ID.

    Value is 137.

  • wallet string Required

    Address of the wallet

application/json

Body

  • contracts array[string] Required

    Array of NFT collection addresses.

    At least 1 element.

Responses

  • 200 application/json

    Successful

    Hide response attributes Show response attributes object
    • code integer Required

      0: success, others: error

    • data array[object]
      Hide data attributes Show data attributes object
      • code integer Required

        0: success, others: error

      • contract object
        Hide contract attributes Show contract 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]
      • owned integer Required

        Owned token count.

  • 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}/wallet/{wallet}/contracts/query
curl \
 -X POST https://api.dewapi.com/open/v1/137/wallet/0x0000000000000000000000000000000000000000/contracts/query \
 -H "X-API-Key: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"contracts":["0xa131b877B12B0Ae8BB7da7229b8a1095881497A6"]}'
Request example
{
  "contracts": [
    "0xa131b877B12B0Ae8BB7da7229b8a1095881497A6"
  ]
}
Response examples (200)
{
  "code": 0,
  "data": [
    {
      "code": 0,
      "contract": {
        "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"
            }
          ]
        }
      },
      "owned": 1
    }
  ]
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}