outsmartchad / solana-memecoin-cli

Best Open-Source CLI tool for trading dev integrated with Jito bundles, DEXes, Pump.fun on Solana.
https://outsmartchad.github.io/solana-memecoin-cli/
MIT License
40 stars 13 forks source link

Copy trading issue with endpoint #8

Open MBSL73 opened 1 week ago

MBSL73 commented 1 week ago

Hi, I am trying to run the copytrading module and I am getting this error even though i have entered the endpoint correctly in the .env file: throw new TypeError('Endpoint URL must start with http: or https:.'); at assertEndpointUrl (/home/mayo_boy/solana-memecoin-cli/node_modules/@solana/web3.js/lib/index.cjs.js:4456:11) at new Connection (/home/mayo_boy/solana-memecoin-cli/node_modules/@solana/web3.js/lib/index.cjs.js:6044:25) at Object. (/home/mayo_boy/solana-memecoin-cli/src/helpers/config.js:50:24) at Module._compile (node:internal/modules/cjs/loader:1434:14) at Module._extensions..js (node:internal/modules/cjs/loader:1518:10) at Module.load (node:internal/modules/cjs/loader:1249:32) at Module._load (node:internal/modules/cjs/loader:1065:12) at Module.require (node:internal/modules/cjs/loader:1271:19) at require (node:internal/modules/helpers:123:16) at Object. (/home/mayo_boy/solana-memecoin-cli/src/Trading/memecoin_trading_strategies/copy_trading/copy-sell.js:9:61)

any idea how to solve this?

outsmartchad commented 1 week ago

What rpc u are using

MBSL73 commented 1 week ago

Thanks for answering, have tried with both helius and shyft.

I had to change some of the paths to the copy-buy & copy sell files as I am on linux not windows (they seemed to be pointing to a location on a "C: " drive). Don't know if that has caused the issue. Pretty sure they are correct though.

When i run a simple js file to test connection to the solana network with the .env file filled out, it comes back as having a connection.

I am running it by navigating to the copy trade folder and running it with node copy-trade.js , assume that is what I am supposed to be doing?

outsmartchad commented 1 week ago

yes, in https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/helpers/config.js , 1. you should copy your own .env path to change the original path, it's likely your c:// path's format is not correct, and 2. for the copy-trade, you should copy your own copy-buy & copy-sell path, and 3. change the bought_token.json path to ur own path in copy-buy and copy-sell, the way i change it is i put the path in a constant.js at the same dir, and every file refer to it and use it

outsmartchad commented 1 week ago

Sorry for make it complicated to get start, i will put it into a constant.js and refer to it

MBSL73 commented 1 week ago

No problem at all, but I think I have changed all of those correctly and it's not working.

MBSL73 commented 1 week ago

still wrestling with this, it's driving me nuts. also your discord link is expired

outsmartchad commented 1 week ago

Updated link

Othmantork commented 1 week ago

I'm also facing the same problem. I changed all the paths and it still says npm error could not determine executable to run

outsmartchad commented 1 week ago

join the dc, talk about it