Marketplace
Buying Items

Buying Item From Marketplace

Buying Items from Fractal Marketplace is a simple process. First, you need to generate a buy transaction and then sign it using Fractal Account or other wallet providers.

💡

Read Sign Transaction page to learn how to sign a transaction payload using Fractal Account.

Buying Item

To generate a buy transaction that user can sign, you need to send a request to /sdk/v1/marketplace/solana/token/buy (opens in a new tab) GET

The following query parameters are required and need to be passed as part of the URL:

AttributeContent
tokenIdThe unique listing id of the item you want to buy.
walletIdThe public key of the buyer's wallet.
quantityThe quantity of the item you want to buy.

Example
curl --request GET \
     --url 'https://api.fractal.is/sdk/v1/marketplace/solana/token/buy?tokenId=<TOKEN_ID_TO_BUY>&walletId=<BUYER_PUBLIC_KEY>&quantity=<QUANTITY>' \
     --header 'Accept: application/json'
Response

This will return a base58 encoded transaction you can sign and verify using Fractal Account or other wallet providers.

{
    "transaction": "<BASE58_TRANSACTION_PAYLOAD>"
}