- Ensure you have MON & ETH MON in your wallet.
- Complete all Monad Testnet tasks before running the script.
-
Clone the Repository
git clone https://github.com/sadi200/Monad.git cd Monad -
Install Dependencies
npm install node-fetch@2 && npm install node-fetch && npm install ethers@5 dotenv ethers ora readline cfonts prompts colors axios chalk figlet solc
-
Set Private Key
echo PRIVATE_KEY=0x2xxxxxxxxxxx > .env
-
Create and Use Screen
screen -R monad
nano main.js- Run the Application
node main.js
(Press Ctrl + A, then D to keep the session running in the background.)
Node.js Cleanup & Reinstallation
sudo apt remove --purge nodejs npm libnode-dev -y
sudo apt autoremove -y
sudo rm -rf /usr/include/node /usr/lib/node_modules ~/.npm ~/.nvm
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
node -v && npm -v