mallow
  • SMORES Token
    • Overview
    • How to earn
    • Economics
    • SMORES Uses
    • FAQ
  • REST API
    • Overview
    • Reference
      • Types
        • Artwork
        • Collection
      • /artworks
        • GET /artworks/:mintAccount
        • GET /artworks/trending
        • POST /artworks/listedBySeller
        • POST /artworks/byCreator
      • /events
        • POST /events/byMint
        • POST /events/bySeller
      • /users
        • GET /users/:address
      • /rewards
        • GET /rewards/unclaimed/:address
      • /getBidOrBuyTx
        • POST /getBidOrBuyTx
      • /scheduledBids
        • POST /scheduledBids/getBidTx
        • POST /scheduledBids/getCancelBidTx
        • GET /scheduledBids/:bidder
  • Actions/Blinks
Powered by GitBook
On this page
  1. REST API
  2. Reference
  3. /getBidOrBuyTx

POST /getBidOrBuyTx

Bid on an auction or buy an item

POST https://api.mallow.art/v1/getBidOrBuyTx

Generates a base64 encoded VersionedTransaction to bid on an auction or buy an item from the marketplace. The transaction must be signed and sent by the buyer.

Request Body

Name
Type
Description

buyer*

string

The buyer's wallet address

mint*

string

The mint address of the artwork to purchase

price

number

The price to use for the bid if the NFT is listed on auction, or price to use for a SYOP edition purchase. Otherwise ignored. NOTE: price does not include decimals, use lamports for SOL listings and full token amount for tokens (e.g. 5000000000 for 5 SOL / 6000000 for 6 USDC)

receiver

string

Receiver of the NFT when buying an item. Defaults to buyer. Ignored for auction listings.

transactionPriorityFeeLamports

string

Priority fee in lamports to spend on the transaction. Defaults to 100000.

{
    "result": "AQAAAAAAAAAAA...AAAHL2xa1PfAJQ1dwAAAAA="
}
{
    "error": { 
        "message": "Invalid API Key" 
    }
}
{
    "error": { 
        "message": "Missing buyer" 
    }
}
{
    "error": { 
        "message": "NFT not found" 
    }
}

Edition sales with an allow-list are not yet supported by this endpoint. Check the listingMetadata.whitelistConfig field in the /artworks/:mintAccount response to see if a listing is for an allow-list.

Previous/getBidOrBuyTxNext/scheduledBids

Last updated 1 month ago