Jupiter Arbitrage Trading

| 1 min read

Installation

  1. Git Clone the repository.
  2. Install all the dependencies with yarn.
yarn
  1. Locate or setup your file system wallet file.
  2. Set up a file named .env (right next to where the file named .env.sample is located) and put in at least the Solana RPC URL you want to use. The file contents would be something like this:
NODE_ENV=production
RPC_URI=https://api.mainnet-beta.solana.com
FLM_PROGRAM_ID=1oanfPPN8r1i4UbugXHDxWMbWVJ5qLSN5qzNFZkz6Fg
  1. Run yarn start help to see all the commands.
yarn start help

Examples

yarn start help simple-jupiter-arb

For example, here's how you would run a trade between USDC and BONK:

First, create common token accounts to avoid setup during trades:

yarn start create-token-accounts -k /path/to/solana-wallet.json

Then the actual arb command:

yarn start simple-jupiter-arb -k /path/to/solana-wallet.json -m1 DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 -m2 EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v -a 1000000

Here is what a profitable transaction would look like.