mallow docs

Fixed-price buy

POST
/v2/tx/fixed-price/buy

Builds a purchase of asset at its listed price, signed and paid for by buyer. Set maxPrice to fail rather than pay more than you expect.

The buyer pays in the listing's currency. To pay with a different token, pass a Jupiter swapQuote whose outputMint is the listing's currency. For some assets the swap can't fit in the purchase transaction, and the response contains swapTx instead of tx: send it, wait for confirmation, then call this endpoint again without swapQuote.

A whitelisted listing rejects buyers who aren't on its list.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Buys a listed artwork at its listed price, paid in the listing's currency. Supply a swapQuote only to pay with a different token; its outputMint must match the listing currency and cover the price.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/tx/fixed-price/buy" \  -H "Content-Type: application/json" \  -d '{    "buyer": "string",    "asset": "string"  }'
{  "result": {    "creatorRentTopUpLamports": "string",    "tx": "string",    "swapTx": "string",    "setupTx": "string"  }}