Buy on Magic Eden
Builds a purchase of a Magic Eden listing, from an order quoted by GET /v2/magic-eden/quote. The purchase fails rather than spend more than maxPaymentAmount or maxSolDebitLamports. Returns 409 if the order has changed since it was quoted.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/magic-eden/buy" \ -H "Content-Type: application/json" \ -d '{ "buyer": "string", "orderId": "string", "revision": 0, "paymentMint": "string", "maxPaymentAmount": "string", "maxSolDebitLamports": "string" }'{ "result": { "tx": "string", "quote": { "orderId": "string", "revision": 0, "mintAccount": "string", "seller": "string", "currencyMint": "string", "sellerPrice": "string", "creatorRoyalty": "string", "magicEdenFee": "string", "mallowFeeLamports": "string", "networkFeeLamports": "string", "rentLamports": "string", "totalPaymentAmount": "string", "totalSolDebitLamports": "string", "expiresAt": "2019-08-24T14:15:22Z", "currencySymbol": "string", "currencyDecimals": 0, "buyerPaymentBalance": "string", "buyerSolBalanceLamports": "string" }, "lastValidBlockHeight": 0 }}Magic Eden buy quote GET
Quotes buying mintAccount from its Magic Eden listing: the price, fees and royalties, the total the buyer pays, and whether they can afford it. When it can't be bought, available is false and reason says why. Pass the quote's orderId and revision to POST /v2/tx/magic-eden/buy.
Cancel Tensor listing POST
Builds a transaction cancelling seller's Tensor listing of asset and returning the asset to their wallet. Only the listing's owner can cancel it. mallow charges no fee.