Deposit
Deposits a certain amount of an asset into the protocol, minting the same amount of corresponding aTokens, and transferring them to the provided address.
/aave/deposit
POST https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/deposit
1) Request body must be 'JSON'
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"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.
Query Parameters
key
string
API Key
Request Body
params
object
{
addr : "0xabcd....efe",
from_tkn: "ETH",
amt_float: 1.35467,
gas: "80"
}
{
"operation": "DEPOSIT",
"token": "ETH",
"to_addr": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
"rawTx": {
"from": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
"value": "0x12cbc28775576000",
"to": "0xdcd33426ba191383f1c9b431a342498fdac73488",
"data": "0x58c22be70000000000000000000000000eb4add4ba497357546da7f5d12d39587ca246060000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0xe69",
"gasLimit": "0x3844e",
"gasPrice": "0x12a05f2000"
},
"isError": false,
"resendRequest": false,
"text": ""
}Last updated
Was this helpful?