Time to read: 1 min
Setup Your Own Airdrop Giveaway Machine
Prerequisite
Before going further in this guide, it's essential to have the following foundational knowledge and tools in place:
- Familiarity with Remix IDE:
- Understanding how to navigate and utilize Remix IDE is crucial. This includes knowledge of its features, such as the Solidity compiler, file management, and debugging tools. Being comfortable with the IDE will enable you to write, test, and deploy smart contracts efficiently.
- Basic Knowledge of Solidity:
- A foundational grasp of Solidity, the primary programming language for Ethereum smart contracts, is necessary. This should include familiarity with basic syntax, data types, functions, and contract structures. You should be able to write simple smart contracts and understand how to interact with them.
- Git Installation:
- Ensure that Git is installed on your machine. Familiarity with Git will help you manage version control effectively, collaborate with others, and track changes to your code.
Installation
To install and run the Runes giveaway machine Airdrop claim locally, follow these steps:
- Clone the Repository:
git clone https://github.com/rsksmart/airdrop-ui.git
cd airdrop-ui
- Install Dependencies:
Run the following command to install the necessary packages:
npm install
- Configure Environment Variables: Create a
.envfile in the root directory and add the necessary environment variables. Below is an example of how to configure the environment variables:
NEXT_PUBLIC_AIRDROP_MANAGER_ADDRESS=<your_airdrop_manager_address>
NEXT_PUBLIC_RPC_URL=<your_rpc_url>
NEXT_PUBLIC_EXPLORER=<your_blockchain_explorer>