# Borrow

## /aave/borrow

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

**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;                         `"interestRateMode" : 2`\
&#x20;                     `}`\
&#x20;  `}`\
\
**3)** ***from\_tkn*** is case sensitive\
\
**4)** Sample response contain **rawTx** object that needs to be signed and broadcast to main net. \
\
**5)** ***interestRateMode -*** send 2 for variable rate and 1 for stable rate

#### 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>interestRateMode : 2</code>     <br><code>}</code></p> |

{% tabs %}
{% tab title="200 Sample response of 15,000 KNC borrow." %}

```
{
  "operation": "BORROW",
  "token": "KNC",
  "to_addr": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
  "rawTx": {
    "from": "0x0eb4add4ba497357546da7f5d12d39587ca24606",
    "value": "0x0",
    "to": "0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9",
    "data": "0xa415bcad000000000000000000000000dd974d5c2e2928dea5f71b9825b8b646686bd20000000000000000000000000000000000000000000000032d26d12e980b600000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eb4add4ba497357546da7f5d12d39587ca24606",
    "nonce": "0xe69",
    "gasLimit": "0x52c2f",
    "gasPrice": "0x12a05f2000"
  },
  "isError": false,
  "text": ""
}
```

{% endtab %}
{% endtabs %}
