> For the complete documentation index, see [llms.txt](https://cryptotalk.gitbook.io/aave-protocol-rest-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cryptotalk.gitbook.io/aave-protocol-rest-apis/aave-v2/deposit.md).

# 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

<mark style="color:green;">`POST`</mark> `https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/deposit`

`1) Request body must be 'JSON'`\
\
`2) Request structure sample`\
&#x20; `{`\
&#x20;   `"params" : {` \
&#x20;                `"addr" : "0xabcd...efe",`\
&#x20;                `"from_tkn" : "DAI",`\
&#x20;                `"gas" : "80",`\
&#x20;                `"amt_float" : 1.234`\
&#x20;              `}`\
&#x20; `}`\
\
`3) from_tkn is case sensitive`\
\
`4) Sample response contain rawTx object that needs to be signed and broadcast to main net.`&#x20;

#### Query Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| key  | string | API Key     |

#### Request Body

| Name   | Type   | Description                                                                                                                                                                      |
| ------ | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| params | object | <p><code>{</code><br><code>addr : "0xabcd....efe",</code><br><code>from\_tkn: "ETH",</code><br><code>amt\_float: 1.35467,</code><br><code>gas: "80"</code><br><code>}</code></p> |

{% tabs %}
{% tab title="200 Sample response of ETH deposit. In request, amt\_float was sent as 1.35439" %}

```
{
  "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": ""
}
```

{% endtab %}
{% endtabs %}
