More resources
Query NFT valuation by chain

Query NFT valuation by chain#

Query the NFT asset valuations of all or specified chains under the specified wallet.

Request URL#

POST https://www.okx.com/api/v5/waas/asset/get-nft-valuation-bychain

Request parameters#

ParameterTypeRequiredDescription
walletIdStringYesUnique identifier of the wallet
chainIdsArray<String>NoUnique identifier of the chain

Response parameters#

ParameterTypeDescription
valuationSumStringCurrent valuation sum
networkValuationsArrayValuation information
>chainIdStringUnique identifier of the chain
>nameStringChain name
>valuationStringValuation (USDT)

Request example#

shell
curl --location --request POST 'https://www.okx.com/api/v5/waas/asset/get-nft-valuation-bychain' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV************3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data-raw '{
  "walletId":"13886e05-1265-4b79-8ac3-b7ab46211002",
  "chainIds":["1"]
}'

Response example#

200
{
  "code": 0,
  "msg": "success",
  "data": [{
    "valuationSum": "7.6671395500191285",
    "networkValuations": [{
      "chainId": "1",
      "name": "Ethereum",
      "valuation": "7.667139550019128500"
    }]
  }]
}