Borrow
Borrows amount of asset with interestRateMode, sending the amount to address provided. Note: user must have enough collateral via deposit
/aave/borrow
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/borrow
1) Request body must be 'JSON'
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"gas" : "80",
"amt_float" : 1.234,
"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 2 for variable rate and 1 for stable rate
Query Parameters
key
string
API Key
Request Body
params
object
{
addr : "0xabcd....efe",
from_tkn: "ETH",
amt_float: 1.35467,
gas: "80",
interestRateMode : 2
}
Last updated
Was this helpful?