warp-id / solana-trading-bot

Solana Trading Bot - Beta
Microsoft Public License
1.59k stars 732 forks source link

I got error while running the code #27

Closed johnben1986 closed 8 months ago

johnben1986 commented 9 months ago
  throw new SolanaJSONRPCError(
        ^

SolanaJSONRPCError: failed to get accounts owned by program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8: the method getProgramAccounts does not exist/is not available at Connection.getProgramAccounts (/Users/solana-sniper-bot-master 2/node_modules/@solana/web3.js/src/connection.ts:3677:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) { code: -32601, data: undefined }

fdundjer commented 9 months ago

@johnben1986 Try running the latest version of code

johnben1986 commented 9 months ago

Same error, I use quicknode

fdundjer commented 9 months ago

@johnben1986 That's strange since code doesn't use: getProgramAccounts Have you tried other RPCs?

johnben1986 commented 8 months ago

Yeah, I tried and it works fine, consider to close this issues