Allowance
To check if desired wallet address has provided allowance to AAVE for tokens.
/aave/allowance
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/allowance
1) Request body must be JSON
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"gas" : "80",
"amt_float" : 1.234
}
}
3) from_tkn
is case sensitive
4) Sample response contain rawTx
object that needs to be signed and broadcast to main net.
5) Our API automatically check which token should be allowed for which Aave smart contract. For example: aWETH should be allowed for ETH Wrapper where as other tokens must give allowance to Lending pool
6) If allowance is already provided, isAllowed
flag will be true
Query Parameters
key
string
API Key
Request Body
params
object
{
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"gas" : "80",
"amt_float" : 1.234
}
Tool used: Insomnia or Postman
Last updated
Was this helpful?