Skip to content

v2 Env

This page details the spec for the env.json file for the v2 bot. Learn more here.

Example env

env.json
{
"keypair": "",
"jup": "",
"rpc": "",
"send_rpcs": [""]
}

Fields

  • keypair (string): The private key of the wallet you want to use.
  • jup (string): A Jupiter API URL.
  • rpc (string): A Solana RPC URL.
  • send_rpcs (list of strings): The URLs of the RPCs you want to send transactions to.

Addendum on rpc vs send_rpcs

rpc is the main RPC you want to use for querying data.

send_rpcs, on the other hand, is a list of RPCs you want to send transactions to. You can use multiple RPCs to send txs, to let the fastest one win, so to speak.

There is no limit on what you can use as a send rpc - you can even use the same URL as the main RPC.

Extra fields (Only use if you know what you’re doing!)

  • block_engines (list of strings, optional): The URL of the Jito block engine you want to use, with the bundles path. Defaults to https://mainnet.block-engine.jito.wtf/api/v1/bundles
  • grpc (string, optional): A Solana gRPC URL. Defaults to nothing, and only used in conjunction with the docker option.
  • docker (string, optional): The docker endpoint you want to use. Defaults to nothing. Find it with docker context list - it’s probably something like unix:///var/run/docker.sock. Untested on Windows!