GET /trade/v1/{chainId}/approval/allowance
Get the number of tokens that the Unizen DEX Aggregator is allowed to spend.
Authorizations
Path parameters
chainIdnumber · enumRequiredExample:
The chain ID of the chain to approve token
1
Possible values: Query parameters
tokenAddressstringRequiredExample:
Token address you want to exchange
0xc52c326331e9ce41f04484d3b5e5648158028804
walletAddressstringRequired
Wallet address for which you want to check
contractVersionstring · enumRequiredExample:
Contract version, return from quote endpoint
v1
Possible 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?