POST /priapi/v1/wallet/asset/queryByAddress

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/okxwallet/priapi/v1/wallet/asset/queryByAddressCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Multi-chain USD asset balance for public addresses

Checksummed EVM returned amount '0'). Client normalizes both {address}, {evm}, and [{evm}] shapes automatically.

Parameters

nameintypedescription
addressbodystroptionalPublic EVM/Tron/BTC address (client wraps into [{evm:[addr.lower()]}])
example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
evmbodylist[str]optionalOptional explicit list of EVM addresses (lowercased automatically)
example: ["0xd8da6bf26964af9d7eed9e03e53415d37aa96045"]

Response

type: array
pagination: none
sample: {
  "[0]": "object{evm:array[1] object{address:str,amount:str},bitcoin:array[0],tron:array[0],bch:array[0],ltc:array[0],dash:array[0]}"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/asset/queryByAddress" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "evm": ["0xd8da6bf26964af9d7eed9e03e53415d37aa96045"]}'