Collateral Setting
Sets the asset of address to be used as collateral or not.
/aave/setUserUseReserveAsCollateral
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/setUserUseReserveAsCollateral
1) Request body must be JSON
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"gas" : "80",
"useAsCollateral" : false
}
}
3) from_tkn is case sensitive
4) Sample response contain rawTx object that needs to be signed and broadcast to main net.
5) useAsCollateral; send false if you don't want to use asset as collateral. Otherwise send true
Query Parameters
Name
Type
Description
key
string
API Key
Request Body
Name
Type
Description
params
object
{
addr : "0xabcd....efe",
from_tkn: "ETH",
gas: "80",
useAsCollateral : false
}
Last updated
Was this helpful?