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
}
{
"operation": "REPAY",
"token": "WBTC",
"to_addr": "0xA5576138F067EB83C6Ad4080F3164b757DEB2737",
"rawTx": {
"from": "0xa5576138f067eb83c6ad4080f3164b757deb2737",
"value": "0x0",
"to": "0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9",
"data": "0x573ade810000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a5576138f067eb83c6ad4080f3164b757deb2737",
"nonce": "0x743",
"gasLimit": "0x7a120",
"gasPrice": "0x104c533c00"
},
"isError": false,
"resendRequest": false,
"text": ""
}
Last updated
Was this helpful?