---
title: "Get an unsigned PSBT to execute a market order to sell the runes"
method: POST
path: "/v2/ord/btc/runes/psbt/get-market-sell"
tags: ["Runes Market Sell"]
---

# Get an unsigned PSBT to execute a market order to sell the runes

`POST /v2/ord/btc/runes/psbt/get-market-sell`

## Request

- Base URL: `https://api-mainnet.magiceden.dev/v2`
- URL: `https://api-mainnet.magiceden.dev/v2/v2/ord/btc/runes/psbt/get-market-sell`
- Auth: none declared

Get an unsigned PSBT to execute a market order to sell the runes

## Request body

- GetMarketSellPsbtRequestSchema
  - `orders` object[]
    - `amount` string, bigint: The amount for the order, represented as a string to accommodate large integers.
    - `id` string: The unique identifier for the order.
  - `runeTicker` string: The ticker symbol for the rune.
  - `takerPaymentAddress` string: The payment address of the taker.
  - `takerRunesAddress` string: The runes address of the taker.
  - `takerRunesPublicKey` string: The runes public key of the taker.
  - `feeRateTier` 'custom' | 'minimumFee' | 'halfHourFee' | 'hourFee' | 'fastestFee': The fee rate tier.
  - `feeRateNum` number, nullable: The numerical fee rate.

## Response `200`

Successful response

- GetMarketSellPsbtResponseSchema
  - `invalidOrders` string[], required: List of order IDs that could not be processed.
  - `psbtBase64` string, required: Base64-encoded unsigned PSBT (Partially Signed Bitcoin Transaction) of the market sell.
  - `requestId` string, required: The unique request ID for the market sell.
  - `runeUtxoIndexes` integer[], required: Array of rune UTXO indexes.
  - `settlement` SettlementSchema, required
    - `amount` string, bigint, required: A large integer value, represented the total amount of runes.
    - `price` number, float, required: The price value as a floating-point number, represented the total amount of BTC payment.

---

[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)
