List ordinals for sale
This endpoint is used to list one or more ordinals for sale on the marketplace. The endpoint returns a Partially Signed Bitcoin Transaction (PSBT) which the owner must sign. If someone buys the ordinal, the buyer must supply the unspent transaction output (UTXO) covering the ordinal's price and any applicable fees. The seller's signature is required only during the initial listing, while only the buyer's signature is necessary for completing the purchase. Platform Cost: A platform fee is applied only when an ordinal is sold. It is not charged for listing an ordinal. The current fee is 1% of sale amount charged to the seller.
The response from this endpoint is a PSBT, encoded in base64, which the Ordinal owner's wallet needs to sign.
Here's an example of how you can sign a listing transaction with the Xverse wallet:
POST
List a new ordinal for sale
POST
List a new ordinal for saleList a Ordinal for sale
POST
https://api.ordinalsbot.com/marketplace/create-listing
API Key is required in the header:
headers: { 'x-api-key': '<YOUR_API_KEY>', ...otherHeaders }
Request Body
sellerOrdinals*
Array
An array with one or more objects. The object should include:
id:string; => Ordinal id for the ordinal to be listed for sale.
price:number | string; => Sale price of the ordinal in Sats.
sellerPaymentAddress
String
The address to receive the sale proceeds when the ordinal is sold. This will be part of the sale transaction that the buyer will sign.
sellerOrdinalPublicKey
String
The public key for the wallet address that owns the ordinal being listed for sale
Last updated