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

# GetSwapPrice

`POST /rpc/API/GetSwapPrice`

Currency abstraction

## Request body

- APIGetSwapPriceRequest
  - `buyCurrencyAddress` string
  - `sellCurrencyAddress` string
  - `buyAmount` string
  - `chainId` number
  - `slippagePercentage` number

## Response `200`

OK

- APIGetSwapPriceResponse
  - `swapPrice` SwapPrice
    - `currencyAddress` string, required
    - `currencyBalance` string, required
    - `price` string, required
    - `maxPrice` string, required
    - `transactionValue` 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)
