更多资源
按链查询 NFT 估值

按链查询 NFT 估值#

查询指定钱包下有所有或指定的链的 NFT 资产估值。

请求地址#

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

请求参数#

ParameterTypeRequiredDescription
walletIdStringYes钱包唯一标识
chainIdsArray<String>No链唯一标识列表

响应参数#

ParameterTypeDescription
valuationSumString当前估值总和
networkValuationsArray<String>估值信息
>chainIdString链唯一标识
>nameString链名称
>valuationString估值 (USDT)

请求示例#

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"]
}'

响应示例#

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