GET /open/v1/{network_id}/wallet/{wallet}/tokens

Get the list of NFTs from a wallet address, filtered by collection contracts.

Path parameters

  • network_id integer Required

    Chain ID.

    Value is 137.

  • wallet string Required

    Address of the wallet

Query parameters

  • contract string Required

    Address of the NFT contract

    Default value is 0xa131b877B12B0Ae8BB7da7229b8a1095881497A6.

  • limit integer

    Minimum value is 1, maximum value is 1000. Default value is 50.

  • offset integer

    Minimum value is 0. Default value is 0.

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
      • nft object Required
        Hide nft attributes Show nft attributes object
        • owner string | null
        • contract string
        • token_id string
        • name string | null
        • rank integer | null
        • status integer | null
      • balance string Required

        Default value is 0.

    • total integer Required
  • 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}/wallet/{wallet}/tokens
curl \
 -X GET https://api.dewapi.com/open/v1/137/wallet/0x0000000000000000000000000000000000000000/tokens?contract=0xa131b877B12B0Ae8BB7da7229b8a1095881497A6 \
 -H "X-API-Key: $API_KEY"
Response examples (200)
{
  "code": 0,
  "data": [
    {
      "nft": {
        "owner": "0x40415c1c0e7a8ff3e184b51a94a2fc5b92df9434",
        "contract": "0xa131b877B12B0Ae8BB7da7229b8a1095881497A6",
        "token_id": "1",
        "name": "BAYC #1",
        "rank": 1,
        "status": 0
      },
      "balance": "0"
    }
  ],
  "total": 0
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}