v1

latestOpenAPI 3.0.1Apache 2.02026-07-2686219209.3 KB
Runes Swap

Get an unsigned PSBT for swapping runes

Get an unsigned PSBT for swapping runes

post/v2/ord/btc/runes/psbt/swap

Request body

amountstring bigint required

The amount for the swap, represented as a string to accommodate large integers.

priceToleranceBpinteger nullable

The price tolerance in percentate x 10000.

runeTickerstring required

The ticker symbol for the rune.

side'buy' | 'sell' required

The side of the trade, either "buy" or "sell".

takerPaymentAddressstring required

The payment address of the taker.

takerPublicKeystring nullable

The public key of the taker, required for buying.

takerRunesAddressstring required

The runes address of the taker.

takerRunesPublicKeystring nullable

The runes public key of the taker, required for selling.

feeRateTier'custom' | 'minimumFee' | 'halfHourFee' | 'hourFee' | 'fastestFee'

The fee rate tier.

feeRateNumnumber nullable

The numerical fee rate.

legacyListingOnlyboolean nullable

Flag indicating if only legacy listings should be considered.

rbfPreventionListingOnlyboolean nullable

Flag indicating if only RBF prevention listings should be considered.

Response

Successful response

btcChangeOutputIndexinteger nullable

The index of the BTC change output, optional for sweeping post split.

requestIdstring required

The unique request identifier.