POST
/
check_approval
curl --request POST \
  --url https://trade-api.gateway.uniswap.org/v1/check_approval \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "walletAddress": "<string>",
  "token": "<string>",
  "amount": "<string>",
  "chainId": 1,
  "urgency": "urgent",
  "includeGasInfo": false,
  "tokenOut": "<string>",
  "tokenOutChainId": 1
}'
{
  "requestId": "<string>",
  "approval": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "gasLimit": "<string>",
    "chainId": 1,
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>",
    "gasPrice": "<string>"
  },
  "cancel": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "gasLimit": "<string>",
    "chainId": 1,
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>",
    "gasPrice": "<string>"
  },
  "gasFee": "<string>",
  "cancelGasFee": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Check approval successful.

The response is of type object.