---
description: Non Fungible Token Lottery
---

# NFT Lottery

PaySwap enables normal users/businesses to launch and run their own lotteries. An NFT lottery is a lottery that rewards its players with non-fungible tokens. The tickets are purchased in fungible tokens but the prize won is one or multiple NFT tokens

Here is a step-by-step guide to launching your own NFT lottery:

* Go to the [lotteries page](https://payswap.org/lotteries) and click on the **Create Lottery** button

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fcj8ugcoEypLU9qzVjppK%2Flottery5.png?alt=media&#x26;token=10020aba-347b-43e2-990a-2f4f23091bb0" alt=""><figcaption></figcaption></figure>

* Fill in the form with the appropriate values and validate the transaction. You can read the description of each parameter by hovering your cursor over the help icon next to each parameter.\
  Make sure you pick the type of your NFT reward for the NFT prize parameter.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FqxCuAqjH0Ut7W9MmWlla%2FScreenshot%20from%202024-02-05%2010-55-11.png?alt=media&#x26;token=837e5967-a7fc-4aaa-aea5-d836c6f0891d" alt=""><figcaption></figcaption></figure>

&#x20;You can learn more about how lotteries work by reading the documentation on the page below:

{% content-ref url="" %}
[]()
{% endcontent-ref %}

* After you've deployed your lottery, reload the page and tick the **Mine Only** button to only show your lotteries. This will enable you to find your lottery faster.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FOI2dTr1dfiZiY221Hk8z%2Flottery4.png?alt=media&#x26;token=08d9bd67-f113-4f6e-af18-bdb80775d90b" alt=""><figcaption></figcaption></figure>

* For a list of all the functions you have access to, to run your lottery, click on the **Control Panel** button to view its menu of functions
* The next step is to add tokens to your NFT lottery, these are the fungible tokens with which your users will be purchasing your tickets. You can add as many tokens as you please but you have to also add a ticket prize for the token you are adding. To add a token, go to your lottery's control panel menu and click on the **Add New Token** button. Fill in the form with appropriate information and validate the transaction

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FiqE6OWgdmwHJ2Mv1JxIQ%2FScreenshot%20from%202024-02-05%2012-39-45.png?alt=media&#x26;token=b823514d-a9ae-457d-b341-ea1395ad715a" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fd9oDXrUA3JZH8mi8HPS8%2FScreenshot%20from%202024-02-05%2012-40-03.png?alt=media&#x26;token=4802907a-2aa6-4314-9328-95bd0851ea2f" alt=""><figcaption></figcaption></figure></div>

* You should see your added tokens listed in the bottom left section of your lottery's panel.
*   The step after that is to add your NFT prizes. To do so, click on the **Add NFT Prize** button in the control panel menu of your lottery



    <div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FiqE6OWgdmwHJ2Mv1JxIQ%2FScreenshot%20from%202024-02-05%2012-39-45.png?alt=media&#x26;token=b823514d-a9ae-457d-b341-ea1395ad715a" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2F8pFFscvC483iSE719KBO%2FScreenshot%20from%202024-02-05%2012-53-05.png?alt=media&#x26;token=dea2fd25-6607-4c11-9188-042fa1a2c725" alt=""><figcaption></figcaption></figure></div>

    Fill in the form and validate the transaction. Your NFT prize will be transferred from your wallet to the lottery helper contract for lottery players to win. You can add as many prizes as you wish. You should be able to see your NFT prizes from the [lotteries page](https://payswap.org/lotteries) by clicking on the **View NFT Prize** button

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fdjj3BBpJfmvUXnMu3kGW%2FScreenshot%20from%202024-02-05%2012-55-41.png?alt=media&#x26;token=03fef8d9-2bfd-41aa-8792-9fe1bf0931df" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FNfS3e7jt5U68quTILW3B%2FScreenshot%20from%202024-02-05%2012-56-11.png?alt=media&#x26;token=66ad4651-bd1d-4d9e-b61b-5a8eea4a0153" alt=""><figcaption></figcaption></figure>

You can also view your NFT prizes by going to your lottery's page (click on the **View Lottery** link)

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FBTMMMqmfi7mVEZbHasyz%2FScreenshot%20from%202024-02-05%2012-57-45.png?alt=media&#x26;token=12aebff3-4cbf-41c8-8983-786fcf5bb2ea" alt=""><figcaption></figcaption></figure>



## Buying Tickets, Closing Lottery, Drawing Final Numbers

These steps are exactly the same as in the [FT Lottery](ft-lottery) and you should read those guides if you're looking to know how to perform them.

## Note

NFT lotteries can be a formidable way to sell your NFTs or to purchase new NFTs.&#x20;

Take an NFT that might be worth 100k USD, put it in an NFT lottery, sell the tickets for 100 USD to 1k people, and voila! You've sold your NFT and the winner of the lottery just won a 100k USD NFT for just 100 USD.&#x20;

[Get further support from the community here.](https://paychat.payswap.org/#/room/%23paycom%3Amatrix.org?via=matrix.org)
