---
title: "GetSwapQuote"
method: POST
path: "/rpc/API/GetSwapQuote"
---

# GetSwapQuote

`POST /rpc/API/GetSwapQuote`

After selecting a swap price from 'GetSwapPrices', use this API to retrieve the transaction data needed to execute the swap on-chain.

## Request body

- APIGetSwapQuoteRequest
  - `userAddress` string
  - `buyCurrencyAddress` string
  - `sellCurrencyAddress` string
  - `buyAmount` string
  - `chainId` number
  - `includeApprove` boolean
  - `slippagePercentage` number

## Response `200`

OK

- APIGetSwapQuoteResponse
  - `swapQuote` SwapQuote
    - `currencyAddress` string, required
    - `currencyBalance` string, required
    - `price` string, required
    - `maxPrice` string, required
    - `to` string, required
    - `transactionData` string, required
    - `transactionValue` string, required
    - `approveData` string, required

## Other responses

- `4XX` — Client error
- `5XX` — Server error

---

[API](https://skmtc.net/sequence/apis/analytics-api.md) · [All operations](https://skmtc.net/sequence/apis/analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequence/analytics-api/versions/12db1459a050/schema)
