> For the complete documentation index, see [llms.txt](https://docs.radfi.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.radfi.co/dev/api-endpoints/amm/increase-liquidity.md).

# Increase Liquidity

### Build PSBT

**Endpoint:** `/api/transactions`\
**Method:** `POST`

**Request Body**

```json
{
  "type": "increase-liquidity",
  "params": {
    "userAddress": "string",
    "token0Id": "string",
    "token1Id": "string",
    "amount0": "string",
    "amount1": "string",
    "nftId": "string"
  }
}
```

**Response**

```json
{
  "code": 1,
  "message": "common.success",
  "data": {
    "base64Psbt": "string",
    "fee": {
      "feeRate": "number",
      "totalFee": "number"
    }
  }
}
```

### Sign and Broadcast Transaction

**Endpoint:** `/api/transactions/sign`\
**Method:** `POST`

**Request Body**

```json
{
  "type": "increase-liquidity",
  "params": {
    "userAddress": "string",
    "signedBase64Tx": "string"
  }
}
```

**Response**

```json
{
  "code": 1,
  "message": "common.success",
  "data": {
    "txId": "string"
  }
}
```
