This is a Next.js project using Ether.js to mint ERC721 NFTs. It features the ability to pay with different ERC20 tokens.
In src/utils/contract.ts you will need to set the following:
ERC721_CONTRACT_ADDRESS: the main contractBUSD_CONTRACT_ADDRESS: ERC20 contract to use (currently set as BUSD)URI_BASE: url base where NFT assets are hostedERC721ABI: contract ABIERC20ABI: contract ABIMINT_PRICE: mint price for accepted tokensCRYPTO: accepted tokens
Change src/utils/seo.ts to fit your site information
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Build project:
npm run buildIn the contract/DeCTB.txt file you'll find an example contract to be used with this app. To deploy, use Ethereum Remix IDE and update src/utils/contract.ts addresses to interact with the contract.