GET /priapi/v1/dx/trade/multi/batchGetTokenApproveInfo

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/okxwallet/priapi/v1/dx/trade/multi/batchGetTokenApproveInfoCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

On-chain approve info for token and address

GET companion of the batch allowance read used by the wallet swap flow after a calldata plan.

Parameters

nameintypedescription
chainIdqueryintrequired
example: 1
tokenContractAddressquerystrrequired
example: 0xdAC17F958D2ee523a2206206994597C13D831ec7
userWalletAddressquerystrrequired
example: 0x1111111111111111111111111111111111111111

Response

type: object
data key: approveInfoList
pagination: none
sample: {
  "approveInfoList": "array[1] object{allowance,routerAddress,routerName}"
}

Safe request

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

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/dx/trade/multi/batchGetTokenApproveInfo?chainId=1&tokenContractAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7&userWalletAddress=0x1111111111111111111111111111111111111111"