This application facilitates automated SOL transactions between a main account and multiple sub-accounts on the Solana blockchain. It supports transferring SOL from a main wallet to several sub-accounts and consolidating SOL from those sub-accounts back into the main wallet.
- Bulk Transfer: Transfer SOL from a main wallet to multiple sub-accounts.
- Consolidation: Aggregate SOL from multiple sub-accounts back into the main wallet.
Before running this application, make sure you have the following installed:
- Node.js: Version 16.x or higher recommended.
- npm: Typically comes with Node.js.
-
Clone the repository and navigate into the project directory:
git clone https://github.com/Winnode/Sol-multisender cd Sol-multisender -
Install the required dependencies:
npm install or npm install @solana/web3.js chalk dotenv readline-sync bs58 boxen
-
Create a
.envfile in the root directory and add the following content:MAIN_WALLET=<Your_Main_Wallet_Secret_Key> HTTP_RPC_URL=https://api.mainnet-beta.solana.com -
Ensure you have an
accounts.txtfile in the./files/directory containing base58 encoded secret keys of the sub-accounts, one per line:PK1 PK2 PK3
Start the application using the following command:
npm start