TreeCityWes / Pump-Fun-Trading-Bot-Solana

Solana / Pump.fun Sniper and Trading bot - Free and Open-Source
24 stars 10 forks source link

having trouble getting this running on windows system #1

Open kurtatwork opened 3 weeks ago

kurtatwork commented 3 weeks ago

I was able to clone the github repo, and followed the instructions, set up a new wallet using the Solana CLI, added the path of the wallet json to the variable file, and then tried running the scripts like it says in the instructions.

when i tried running sh node script.mjs, i got an error saying:

PS C:\Users\kurt\Desktop\Solana Trading Bots\Pump-Fun-Trading-Bot-Solana> sh solana config set --url https://api.mainnet-beta.solana.com solana config set --keypair /path/to/your/solana/wallet.json /c/Users/kurt/.local/share/solana/install/active_release/bin/solana: /c/Users/kurt/.local/share/solana/install/active_release/bin/solana: cannot execute binary file

whenever i tried to run a sh command it would tell me that it 'cannot execute binary file', i'm guessing thats because 'sh' is a linux command and not for use on windows.

anyway, I was able to manually configure my wallet path with the following command

solana config set --keypair C:/Users/kurt/Desktop/Solana Trading Bots/Pump-Fun-Trading-Bot-Solana/your-wallet.json

tried running it again and it still gave errors and wouldn't run, issues relating to the reading of the env file

eventually i just hardcoded the full path to the solana json file rather than having the script get it from the env file, by modifying the line of code that sets the SOLANA_WALLET_PATH.

after that, i dropped the 'sh' from the command and just typed 'node script.mjs' in the terminal and got it to run and could see the initial screen of the trading bot, but then when i pressed return it threw up an error message and closed really quickly.

the error message said this:

(node:22476) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certification verification. at getAllowUnauthorized (node:internal/options:58:13) at Object.connect (node:_tls_wrap:1631:29) at Client.connect (node:internal/deps/undici/undici:8403:24) at socket (node:internal/deps/undici/undici:9795:29) at new Promise () at connect (node:internal/deps/undici/undici:9794:30) at _resume (node:internal/deps/undici/undici:9962:11) at resume (node:internal/deps/undici/undici:9888:7) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

anyway, long story short, i'm having some serious issues getting this running on a windows machine. is this for linux only? do you have any advice for getting this running on windows? what do you suggest i do?

thank you for your time.

cnstephen commented 3 weeks ago

Hi, if you can succeed with Linux, why not use Linux? I would like to ask, does this need to be used in conjunction with the solana-trading-bot project? thanks

0xdevlen commented 3 weeks ago

@kurtatwork @TreeCityWes @cnstephen Hi that seems a temporary issue with API, its is up and running... would suggest to try again.

Cokallll commented 6 days ago

same problem...this bot not working