GET /trade/v1/{chainId}/approval/allowance

Get the number of tokens that the Unizen DEX Aggregator is allowed to spend.

Get the number of tokens that the Unizen DEX Aggregator is allowed to spend

get
Authorizations
Path parameters
chainIdnumber · enumRequired

The chain ID of the chain to approve token

Example: 1Possible values:
Query parameters
tokenAddressstringRequired

Token address you want to exchange

Example: 0xc52c326331e9ce41f04484d3b5e5648158028804
walletAddressstringRequired

Wallet address for which you want to check

contractVersionstring · enumRequired

Contract version, return from quote endpoint

Example: v1Possible values:
Responses
200
The allowance amount
application/json
get
GET /trade/v1/{chainId}/approval/allowance?tokenAddress=text&walletAddress=text&contractVersion=v1 HTTP/1.1
Host: 
Authorization: Bearer Bearer
Accept: */*
200

The allowance amount

{
  "allowance": "0"
}

Last updated

Was this helpful?