Deposit ETH into a DeFi Protocol (Aave)
{
"actions": [
{
"target": "0x5283BEcEd7ADF6D003225C13896E536f2D4264FF",
"functionSignature": "function depositETH(address, address onBehalfOf, uint16 referralCode)",
"args": [
{
"value": "0x0000000000000000000000000000000000000000",
"populateDynamically": false
},
{
"value": "0x718648C8c531F91b528A7757dD2bE813c3940608",
"populateDynamically": false
},
{
"value": "0",
"populateDynamically": false
}
],
"value": "0",
"isNativeTransfer": false,
"populateCallValueDynamically": true
}
]
}Query parameters
tradeTypestring · enumRequiredExample:
exactInputPossible values: amountstringRequiredExample:
10000000inputTokenstringRequiredExample:
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48outputTokenstringRequiredExample:
0x0000000000000000000000000000000000000000originChainIdintegerRequiredExample:
1destinationChainIdintegerRequiredExample:
42161depositorstringRequiredExample:
0xA4d353BBc130cbeF1811f27ac70989F9d568CeABrecipientstringRequiredExample:
0xA4d353BBc130cbeF1811f27ac70989F9d568CeABBody
Responses
200
Successful swap approval
application/json
Responseobject
400
Invalid request
application/json
post
/swap/approvalLast updated