Withdraw
Withdraws amount of the underlying asset, i.e. redeems the underlying token and burns the aTokens.
/aave/withdraw
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/withdraw
1) Request body must be JSON
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "ETH",
"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) amt_float : send -1 if you want to withdraw full amount otherwise send floating value up to 4 decimal
Query Parameters
key
string
API Key
Request Body
params
object
{
addr : "0xabcd....efe",
from_tkn: "ETH",
amt_float: 1.2345,
gas: "80",
}
{
"operation": "WITHDRAW",
"token": "ETH",
"to_addr": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
"rawTx": {
"from": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
"value": "0x0",
"to": "0xdcd33426ba191383f1c9b431a342498fdac73488",
"data": "0x36118b52ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000eb4add4ba497357546da7f5d12d39587ca24606",
"nonce": "0xe69",
"gasLimit": "0x7a120",
"gasPrice": "0x104c533c00"
},
"isError": false,
"resendRequest": false,
"text": ""
}
Last updated
Was this helpful?