Once you have your listings created, users can buy your items. The price, royalty fee, and other details were set when you created the item in FStudio. You can change them by editing the item on FStudio.
The user will be prompted to pay the item's price, and the royalty fee will be paid to the creator. An NFT is minted and sent to the buyer's wallet when selling an item.
To request a mint transaction for specific item template, you can use the /create_mint_transaction (opens in a new tab) GET endpoint.
Requests require a valid project's API authentication token to be passed in the
The item's ID should be a part of the URL, and the body of the request should be a JSON object with the following attributes:
|The public key of the wallet you want to mint the item to.
curl --request GET \
--url 'https://api.fractal.is/sdk/v1/inventory/solana/item/<ITEM_ID>/create_mint_transaction' \
--header 'Authorization: Bearer <PROJECT_API_TOKEN>' \
--header 'Content-Type: application/json' \
For Fractal Account users, this will return a URL that you redirect users to. They will be prompted to sign the mint transaction, and if successful, they will receive the item in their wallet.
For non-Fractal Account users, we also return a raw transaction you can manually process using any other wallet.