Airdrop Reference DApp is a decentralized application (DApp) that demonstrates the token airdrop process using the service described in the TonConsole Airdrop Documentation.
This application allows users to connect their wallets, check the airdrop status, and claim tokens through interaction with the TON blockchain.
You can test the application in demo mode by visiting the demo link.
Before you begin, ensure you have the following tools installed on your computer:
-
Clone the repository:
git clone https://github.com/tonkeeper/airdrop-reference-dapp.git cd airdrop-reference-dapp
-
Install dependencies:
npm install
Create a .env
file in the root of the project and add the following variables:
VITE_TONAPI_ENDPOINT=https://tonapi.io
VITE_AIRDROP_UUID=your-claim-uuid
VITE_TONAPI_ENDPOINT
: Base URL for TonAPI. Defaults tohttps://tonapi.io
if not specified.VITE_AIRDROP_UUID
: Unique identifier for the airdrop. Obtain this from your airdrop service.
To start the application in development mode, run:
npm run dev
Open http://localhost:5173 in your browser to view the application.
To build the application for production, execute:
npm run build
The build output will be located in the dist
directory.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is a reference implementation for the service described in the TonConsole Airdrop Documentation.