> 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/withdraw.md).

# Withdraw

## /aave/withdraw

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

**1)** Request body must be *JSON*\
\
**2)** Request structure sample\
&#x20;  `{`\
&#x20;     `"params" : {` \
&#x20;             `"addr" : "0xabcd...efe",` \
&#x20;             `"from_tkn" : "ETH",` \
&#x20;             `"gas" : "80",` \
&#x20;             `"amt_float" : 1.234`\
&#x20;    `}`\
`}`\
\
**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&#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.2345,</code><br>  <code>gas: "80",</code><br><code>}</code></p> |

{% tabs %}
{% tab title="200 Sample response of ETH withdrawal. In original request, amt\_float was sent as -1" %}

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

{% endtab %}
{% endtabs %}
