> For the complete documentation index, see [llms.txt](https://1nodeio.gitbook.io/1node/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1nodeio.gitbook.io/1node/1node-api/endpoints/swap-and-deploy.md).

# Swap & Deploy

**CLI:** 1node swapAndDeploy

**API:**

POST /v1/swap-deploy

**Body (JSON):**

```
{ "fromToken":"1NODE","toToken":"AKT","amount":20,"chain":"polygon","provider":"akash","autoFund":true }
```

**Response (200):**

```
{ "swapTxHash":"0xabc...","leaseId":"akash1def..." }
```
