---
title: "Post a signed PSBT to broadcast the swapping transaction"
method: POST
path: "/v2/ord/btc/runes/swap"
tags: ["Runes Swap"]
---

# Post a signed PSBT to broadcast the swapping transaction

`POST /v2/ord/btc/runes/swap`

## Request

- Base URL: `https://api-mainnet.magiceden.dev/v2`
- URL: `https://api-mainnet.magiceden.dev/v2/v2/ord/btc/runes/swap`
- Auth: none declared
- TypeScript: <https://skmtc.dev/magiceden/apis/magic-eden-api/docs/v2/ord/btc/runes/swap/post.ts> (a function with typed inputs; its response is checked against the schema)

Post a signed PSBT to broadcast the swapping transaction

## Request body

- PostRuneSwapPsbtRequestSchema
  - `requestId` string, required: The unique request identifier.
  - `signedPsbts` SignedSwapPsbtSchema[], required: An array of signed PSBTs (Partially Signed Bitcoin Transactions).
    - `signedPsbtBase64` string, required: The signed PSBT (Partially Signed Bitcoin Transaction) in base64 format.

## Response `200`

Successful response

- PostRuneSwapPsbtResponseSchema
  - `errors` RuneSwapErrorSchema[], nullable: An array of errors encountered during the swap process.
    - `type` 'legacy-buy' | 'rbf-buy' | 'market-sell', required: The type of the Rune swap transaction error.
    - `message` string, required: The error message.
  - `txs` object[], required: An array of transactions with their types and IDs.
    - `type` 'legacy-buy' | 'rbf-buy' | 'market-sell': The type of the Rune swap transaction.
    - `txid` string: The transaction ID.

---

[API](https://skmtc.dev/magiceden/apis/magic-eden-api.md) - [All operations](https://skmtc.dev/magiceden/apis/magic-eden-api/llms.txt) - [OpenAPI document](https://skmtc.dev/magiceden/apis/magic-eden-api/revisions/66028b292693?raw)
