---
title: "Gets the history of swap."
method: GET
path: "/v1/brc20-swap/swap_history"
tags: ["BRC20-Swap"]
---

# Gets the history of swap.

`GET /v1/brc20-swap/swap_history`

## Request

- Base URL: `https://open-api.unisat.io`
- URL: `https://open-api.unisat.io/v1/brc20-swap/swap_history`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unisat/apis/unisat-wallet-openapi/docs/v1/brc20-swap/swap_history/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `address` string
- `tick` string
- `start` number, required
- `limit` number, required

## Response `200`

Default Response

- object
  - `code` number, required
  - `msg` string, required
  - `data` object, required
    - `total` number
    - `list` object[]
      - `tickIn` string, required: Input tick
      - `tickOut` string, required: Output tick
      - `amountIn` string, required: The amount of input tick
      - `amountOut` string, required: The amount of output tick
      - `exactType` string
      - `ts` number

---

[API](https://skmtc.dev/unisat/apis/unisat-wallet-openapi.md) - [All operations](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/revisions/68de350419c7?raw)
