Create buy offer
This endpoint is designed for creating an transaction to purchase an ordinal listed for sale on the marketplace. 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.
Upon usage, it generates a Partially Signed Bitcoin Transaction (PSBT) encoded in base64. This PSBT must be signed by the individual intending to buy the ordinal.
Here's an example of executing a purchase transaction with Xverse wallet:
POST
Buy an ordinal
POST
Buy an ordinalBuy a listed ordinal
POST
https://api.ordinalsbot.com/marketplace/create-offer
API Key is required in the header:
headers: { 'x-api-key': '<YOUR_API_KEY>', ...otherHeaders }
Request Body
ordinalId*
String
Id of the ordinal to buy.
buyerPaymentAddress*
String
Buyer's payment wallet address. The buyer will need to pay the cost of the transaction from UTXOs belonging to this address.
buyerPaymentPublicKey*
String
Public Key for buyer's payment wallet address.
buyerOrdinalAddress*
String
Buyer's Ordinal wallet address. The purchased Ordinal will be transferred to this address.
feeRateTier
String
Transaction fee rate should be one of the following. Defaults to fastestFee if not specified: fastestFee halfHourFee hourFee minimumFee
Last updated