Query the NFT asset valuations of all or specified chains under the specified wallet.
POST https://www.okx.com/api/v5/waas/asset/get-nft-valuation-bychain
Parameter | Type | Required | Description |
---|---|---|---|
walletId | String | Yes | Unique identifier of the wallet |
chainIds | Array<String> | No | Unique identifier of the chain |
Parameter | Type | Description |
---|---|---|
valuationSum | String | Current valuation sum |
networkValuations | Array | Valuation information |
>chainId | String | Unique identifier of the chain |
>name | String | Chain name |
>valuation | String | Valuation (USDT) |
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"]
}'
{
"code": 0,
"msg": "success",
"data": [{
"valuationSum": "7.6671395500191285",
"networkValuations": [{
"chainId": "1",
"name": "Ethereum",
"valuation": "7.667139550019128500"
}]
}]
}