Guide 3: Creating Your First NFT Auction
Setup
- To begin, import your previous build from the Guide 2 “Building An App” into the web-app by selecting “Import Template” in the ADO builder.
![ADO by Flex file Upload exported flex file](/learn/blogs/guides_imgs/3/1.Upload_flex_file.png)
- Rename the App and NFT collection to a more suitable name, and don't forget to update the minter address if you've switched to a different chain or wallet.
- Next, add an “Auction” component to the App and give it a suitable name. Then, you can publish the App to the chain and start setting up your auctions.
![Auction Component Add Auction Component](/learn/blogs/guides_imgs/3/2.add_auction_component.png)
- First, mint some NFTs that you will be auctioning. In the assets page locate your new app and the CW721 component, select the Batch Mint execute to mint 3 (or however many tokens you’d like to mint) tokens. Once done, “publish” to the chain.
![Publish App to the chain Publish App to the chain](/learn/blogs/guides_imgs/3/3.after_publish_assets_page.png)
Auction/Sale
- To start an auction for your NFTs, send the NFT to the auction and attach the appropriate message using the SendNft execute message for the CW721 component.
![CW721 component: Send NFTs CW721 component: Send NFTs](/learn/blogs/guides_imgs/3/4.send_nfts.png)
- Fill out the required field - Recipient Address.
- Then, provide the Token ID of the NFT you want to send.
- In addition, select the message to attach along with your NFT. Select “Auction” from the “Base ADO” options, then select “CW721 start auction”
![support Msg Template” Support msg](/learn/blogs/guides_imgs/3/5.supporting_msg_blank.png)
- Finally, configure the auction options: Coin denomination, duration of the auction in milliseconds, specify the minimum bid allowed (floor price) and specify when the auction starts
![support Msg Template” Support msg](/learn/blogs/guides_imgs/3/6.supporting_msg_filled.png)
- To set up as a private auction, you can provide a whitelist of addresses allowed to bid on the NFT.
- Once done configuring the fields, publish the message to the chain.
- To sell an NFT, select Transfer Agreement from the list of “execute”messages.
You will need to specify the following fields: Amount, Denom, Purchaser, and Token ID. Once the fields are filled out, publish the message to the chain.
- Congratulations, you just minted and sold an NFT using aOS.