Thirdweb is a platform that provides a suite of tools for creators, artists, and entrepreneurs to build, launch and manage a Web3 project easily.
It enables users to add features such as NFTs, marketplaces, and social tokens to their Web3 projects without writing a line of code.
In this article, you’ll better understand what DAO is, why you should create a DAO, and how you can create a DAO with Thirdweb.
This will allow users to mint your DAO’s NFT, receive cryptocurrency via airdrops, and participate in the DAO’s polls.
Prerequisites
Before you can continue with this tutorial, you should:
- Have Metamask installed
- Have knowledge of JavaScript/React.js, and the blockchain
- Have set up an account with Alchemy
What is a DAO?
Decentralized autonomous organizations (DAOs) are a type of governance commonly used for DApps, projects, and crypto-investment funds. DAOs are famous for their openness, decentralization, and working with self-executing smart contracts. There are so many different definitions and explanations of what a DAO is.
In general terms, DAOs are member-owned communities without centralized leadership. The precise legal status of this type of business organization is unclear. A DAO’s financial transaction records and program rules are maintained on a blockchain.
Setting up the DAO Client-side
To start building your DAO client-side application, you’ll be using the thirdweb-CLI
command.
First, Install the Thirdweb CLI globally tool by typing the below command:
yarn add @thirdweb-dev/cli
Thirdweb contains starters that help generate a base setup for your project. Use the command below to generate a Thirdweb starter project. Type a project title and name of your choice for the project directory. Follow the prompts to complete the setup.
npx thirdweb create
Once the installation is complete, head over to the project directory and run the command below to start your application:
npm start
Navigate to localhost:3000 to view your project on a browser.
Get Metamask
Next, you need an Ethereum wallet. There are a bunch of these, but for this project, you will use Metamask. Download the browser extension and set up your wallet here. Even if you already have another wallet provider, just use Metamask for now.
But why Metamask?
Well. You need to be able to call functions on your smart contract that live on the blockchain. And to do that, you need to have a wallet with your Ethereum address and private key.
It’s almost like authentication. You need something to “Login” to the blockchain and then use those login credentials to make API requests from your website.
So, for your website to talk to the blockchain, you need to somehow connect your wallet to it. Once you connect your wallet to the website, your website will have permission to call smart contracts on your behalf. Remember, it’s just like authenticating into a website.
So, go ahead and set it all up! Their setup flow is pretty self-explanatory.
Once you set up your wallet, switch the…
Read More: web3.hashnode.com