---
title: "Create a cancel-withdraw psbt to be signed by the user."
method: GET
path: "/v1/brc20-swap/create_cancel_withdraw"
tags: ["BRC20-Swap"]
---

# Create a cancel-withdraw psbt to be signed by the user.

`GET /v1/brc20-swap/create_cancel_withdraw`

## Request

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

## Query parameters

- `id` string, required

## Response `200`

Default Response

- object
  - `code` number, required
  - `msg` string, required
  - `data` object, required
    - `id` string
    - `psbt` string
    - `networkFee` 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)
