POST /priapi/v6/dx/trade/multi/batchOkxApproveAllowance

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/okxwallet/priapi/v6/dx/trade/multi/batchOkxApproveAllowanceCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

On-chain ERC-20 allowance snapshot for addresses

On-chain read: reports existing router allowances for arbitrary addresses; no identity injection, any address list is accepted.

Parameters

nameintypedescription
chainIdbodyintrequired
example: 1
tokenContractAddressbodystrrequired
example: 0xdAC17F958D2ee523a2206206994597C13D831ec7
userWalletAddressListbodylist[str]required
example: 0x1111111111111111111111111111111111111111

Response

type: object
data key: allowanceList
pagination: none
sample: {
  "allowanceList": "array[1] object{allowance:object{amount,defiPlatformId,needCancelApproveToken,status,tokenContractAddress,txId}}"
}

Safe request

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

curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v6/dx/trade/multi/batchOkxApproveAllowance" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"chainId": 1, "tokenContractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "userWalletAddressList": "0x1111111111111111111111111111111111111111"}'