Skip to main content

What will we build?

In this serires, we will create cw721-dapp project by using Beaker toolchain.

Before go into detail about code smart contract and dApp line by line, I will give an overview. So in previous chapter, I introduced CW721 - a specification for non-fungible tokens. Basically, we will store and instantiate CW721 contract then we can call contract address to create NFT. But it has one problem:
If you want to generate many NFTs, you must deploy same smart contract repeatedly. Let's imagine you want to generate 1,000,000 NFTs, you must do same activities over and over again. So how to resolve this problem? We will build a cw721 factory contract, using cw721-base contract to create new instances. So you only need deploy the contract once, and instantiate a new instance of this contract. Then you can interact with this instance to create own NFT.
Integrate with previous series, we know how to create cw20 token. We will create a fixed-price-nft contract. It allows users to pay a fee in Cw20 tokens and get one new NFT in return.

cw721-dapp

You can clone example source code from this.