---
title: "Submit a signed PSBT for buying a rune"
method: POST
path: "/v2/ord/btc/runes/sweeping"
tags: ["Runes Sweeping"]
---

# Submit a signed PSBT for buying a rune

`POST /v2/ord/btc/runes/sweeping`

Submit a signed PSBT for buying a rune

## Request body

- PostRunesSweepingRequestSchema
  - `orderIds` string[], required — Array of order IDs, must contain at least one and no more than 50.
  - `signedPsbtBase64` string — Base64-encoded signed PSBT (Partially Signed Bitcoin Transaction) of non RBF protection sweeping. You must sign before submitting.
  - `takerPaymentAddress` string, btc-address, required — Bitcoin address for the taker’s payment.
  - `takerReceiveAddress` string, btc-address, required — Bitcoin address for the taker to receive assets. Should be your taproot address
  - `enableRBFProtection` boolean — Boolean value to enable RBF protection sweeping
  - `fullRBFProtectedSweepingRequest` FullRBFProtectedSweepingRequestSchema
    - `takerPaymentPublicKey` string, btc-public-key, required — The Bitcoin public key of the taker.
    - `signedFundsPreparationPsbtBase64` string, required — Base64 encoded PSBT for the user-signed funds preparation.

## Response `200`

Successful response

- PostRunesSweepingResultSchema
  - `txid` string, required — Transaction ID of the successfully broadcasted Bitcoin RBF protection sweeping transaction.
  - `error` string — Error message, if an error occurred during broadcasting RBF protection sweeping transaction.
  - `fullRBFProtectedSweepingResponse` FullRBFProtectedSweepingResponseSchema
    - `fundsPreparationTxId` string, nullable — The transaction ID for the funds preparation, if available.
    - `fulfillmentId` string, nullable — The ID of the fulfillment, if available.
    - `error` string, nullable — Error message, if an error occurred.

---

[API](https://skmtc.net/magiceden/apis/magic-eden-api.md) · [All operations](https://skmtc.net/magiceden/apis/magic-eden-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magiceden/magic-eden-api/revisions/66028b292693/schema)
