GET /tx/{requestId}/check-approval
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/rango/tx/{requestId}/check-approvalCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeApproval status of the token-approval transaction for a route request.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
requestId | path | str | required | Route request id returned by /routing/best or /routing/bests example: 50895f4e-112e-4757-b25a-01872e5dd852 |
txId | query | str | required | On-chain transaction hash of the executed approval/swap transaction example: 0x0000000000000000000000000000000000000000000000000000000000000001 |
Response
type: object
pagination: none
sample: {
"isApproved": "bool",
"txStatus": "str",
"currentApprovedAmount": "null",
"requiredApprovedAmount": "null",
"error": "null",
"errorCode": "null",
"traceId": "null"
}
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/rango/tx/50895f4e-112e-4757-b25a-01872e5dd852/check-approval?txId=0x0000000000000000000000000000000000000000000000000000000000000001"