Skip to content

Commit

Permalink
Merge pull request #230 from liteflow-labs/docs/create-sell-nft
Browse files Browse the repository at this point in the history
Add create and sell nft guides
  • Loading branch information
NicolasMahe authored Mar 13, 2024
2 parents 4bbf6dd + 44bc462 commit 8485e5f
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 18 deletions.
10 changes: 2 additions & 8 deletions docs/pages/guides/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
"title": "Create a private collection",
"display": "hidden"
},
"create-nft": {
"title": "Create an NFT",
"display": "hidden"
},
"sell-nft": {
"title": "Sell an NFT",
"display": "hidden"
}
"create-nft": "Creating an NFT",
"sell-nft": "Selling an NFT"
}
5 changes: 0 additions & 5 deletions docs/pages/guides/create-nft.md

This file was deleted.

68 changes: 68 additions & 0 deletions docs/pages/guides/create-nft.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: 'Creating an NFT'
---

import { Steps, Callout } from 'nextra-theme-docs'

# Creating an NFT

## Introduction

You can create new NFTs directly on the [Liteflow dashboard](https://dashboard.liteflow.com/) on any collection you created using the dashboard.

## Prerequisites

Before creating an NFT, ensure you have:

- Created the collection using the Liteflow dashboard
- The info and image of the NFT you want to create
- Native token on your wallet to pay for the transaction

## Steps

<Steps>

### Access NFTs section

Navigate to the [NFTs](https://dashboard.liteflow.com/nfts) section in the Liteflow dashboard.

### Start creation of an NFT

Click on the 'Create' button to open the form to create an NFT.

### Select a Collection

Choose the collection from the list.

<Callout type="info">
If the collection is not listed but is listed in the
[Collections](https://dashboard.liteflow.com/collections) section, it means
your wallet is not authorized to create an NFT on this collection. Make sure
your are login with the right wallet.
</Callout>

### Optional - switch network

If the collection is on a different network than your current wallet is, click the button "Connect to ...". It will ask your wallet to switch to the right network. You will need to login again and come back to this page.

### Set the NFT details

Make sure to set the info correctly, none are editable after the NFT is created.

- **Name**: Input a distinctive and relevant name.
- **Description**: Optional. Describe the NFT in details.
- **Upload file**: Select the image of this NFT. Make sure to select a high resolution image. Compatible format are JPG, JPEG, PNG, GIF, WEBP, MP4, WEBM. Max file size 100MB, GIF max 5MB.
- **Supply**: Only for ERC1155. Input the number of edition you want to create.
- **Traits**: Optional. Traits describe specific NFT features. This is recommended when you want to create many generated NFTs that share many common features, eg: PFP.

### Create the NFT

Double check the info in the form as they cannot be edited later.

Press the "Create" button and follow the steps in your wallet.

The creation of the NFT will take between a few seconds to a few minute.

Once the NFT is successfully created, you will be redirected to its detail page.

</Steps>
5 changes: 0 additions & 5 deletions docs/pages/guides/sell-nft.md

This file was deleted.

68 changes: 68 additions & 0 deletions docs/pages/guides/sell-nft.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: 'Selling an NFT'
---

import { Steps, Callout } from 'nextra-theme-docs'

# Selling an NFT

## Introduction

You can create a listing on any NFTs you own directly on the Liteflow dashboard.

## Prerequisites

Before creating an listing, ensure you have:

- Imported or created the collection using the Liteflow dashboard
- [Set Up the currency you want to use](./setup-currencies).
- You are owner of the NFT

## Steps

<Steps>

### Access Listings section

Navigate to the [Listings](https://dashboard.liteflow.com/listings) section in your Liteflow dashboard.

### Start creating a listing

Click on the 'Create' button to open the form to create a listing on an NFT.

### Select an NFT

Choose the NFT from the list.

<Callout type="info">
If the NFT is not listed but is listed in the
[NFTs](https://dashboard.liteflow.com/nfts) section, it means your wallet is
not the owner of this NFT. Make sure your are login with the right wallet.
</Callout>

### Optional - switch network

If the NFT is on a different network than your current wallet is, you need to switch to the same network as the NFT. Open your wallet and select the right network. You will need to login again and come back to this page.

### Set the listing details

- **Currency**: Select the currency you want to use.
- **Price per unit**: Enter the price you want to sell the NFT for.
- **Expiration date**: Select when the listing will expire.

### Create the listing

Press the 'Create' button and follow the steps in your wallet.

Once the listing is successfully created, you will be redirected to its detail page.

Anyone can now buy your NFT using your marketplace. If you don't have a marketplace, you can create a payment link (next step).

### Optional - Payment link

You can create a payment link to share on social networks or put on any website to sell your NFT in a few clicks.

On the listing detail page, click the 'Create a payment link' button. Fill the **Redirection URL** and copy the payment link.
After the user successfully purchase the NFT, it will be redirected to the URL indicated in **Redirection URL**.

</Steps>

0 comments on commit 8485e5f

Please sign in to comment.