Repay
Repays debt amount of asset which has an interestRateMode.
/aave/repay
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/repay
1) Request body must be JSON
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "WBTC",
"gas" : "80",
"amt_float" : -1,
"interestRateMode": 2
}
}
3) from_tkn is case sensitive
4) Sample response contain rawTx object that needs to be signed and broadcast to main net.
5) interestRateMode; send 1 for stable and 2 for variable interest
6) amt_float; send -1 for full repay otherwise send float value up to 4 or 5 decimal.
Query Parameters
key
string
API Key
Request Body
params
object
{
addr : "0xabcd....efe",
from_tkn: "WBTC",
amt_float: 0.14,
gas: "80",
interestRateMode: 2
}
Last updated
Was this helpful?