Token 2022 Bot is a Solana-based project designed to automatically airdrop tokens whenever SOL is transferred to the owner's wallet. This bot leverages the Solana blockchain's capabilities to ensure seamless and automated token distribution.
- Automatic Airdrop: Automatically airdrops tokens to the sender whenever SOL is transferred to the owner's wallet.
- Solana Blockchain: Utilizes the Solana blockchain for fast and secure transactions.
- Easy Integration: Simple to set up and integrate with your Solana wallet.
- Node.js (v14 or later)
- Solana CLI
- A Solana wallet with sufficient SOL for transaction fees
- Token 2022 was created and deployed on the Solana blockchain
-
Clone the repository:
git clone https://github.com/2enology/token2022-airdrop-bot.git cd token-2022-bot
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory of the project and add the following variables:PRIVATE_KEY=your_wallet_private_key SOL_VAULT_WALLET=your_owner_wallet_address SOL_TOKEN_ADDRESS=your_token_mint_address
-
Replace
your_wallet_private_key
,your_owner_wallet_address
, andyour_token_mint_address
with your actual wallet's private key, the owner's wallet address, and the token mint address respectively.
-
Start the bot:
npm start
-
The bot will now listen for incoming SOL transfers to the owner's wallet and automatically airdrop the specified token to the sender.
Here is an example of how the bot works:
- A user transfers 1 SOL to the owner's wallet.
- The bot detects the transfer.
- The bot automatically airdrops a predetermined amount of the token to the user's wallet.
We welcome contributions to enhance the functionality and features of the Token 2022 Bot. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.