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 freeOn-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
| name | in | type | description | |
|---|---|---|---|---|
chainId | query | int | required | example: 1 |
tokenContractAddress | query | str | required | example: 0xdAC17F958D2ee523a2206206994597C13D831ec7 |
userWalletAddress | query | str | required | 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"