Sell an Item
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 price of the item, and the royalty fee will be paid to the creator.
When selling an item, an NFT is minted and sent to the buyer's wallet.
Selling Items
Requests to server api's require a valid auth token scoped to your project.
For a guide on how to get your auth token, see this guide.
Generate item mint transaction
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' \
--data '{
"wallet_public_key": "<user_wallet_public_key>"
}
'
For Fractal wallet users, this will return a URL that you redirect users to. They will be prompted to sign the mint transaction, and if successful, will receive the item in their wallet.
For non-Fractal wallet users, we return a raw transaction that you can manually process like any other transaction.