Skip to content

Error when trying to setup Solana Jupiter bot #86

Answered by TatyOko28
houstonTaleubou asked this question in Q&A
Discussion options

You must be logged in to vote

The issue could be caused by:

Missing Dependencies:
Ensure you have installed @jup-ag/core and required Solana libraries:

npm install @jup-ag/core @solana/web3.js

Invalid RPC Connection:
Make sure your RPC URL is correct:

const connection = new Connection("https://api.mainnet-beta.solana.com", "confirmed");

Invalid Wallet Setup:
If using a wallet, ensure it's initialized properly:

const wallet = Keypair.generate();
const jupiter = await Jupiter.load({ connection, wallet });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by houstonTaleubou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants