v2 Env
This page details the spec for the env.json
file for the v2 bot. Learn more here.
Example env
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 tohttps://mainnet.block-engine.jito.wtf/api/v1/bundles
grpc
(string, optional): A Solana gRPC URL. Defaults to nothing, and only used in conjunction with thedocker
option.docker
(string, optional): The docker endpoint you want to use. Defaults to nothing. Find it withdocker context list
- it’s probably something likeunix:///var/run/docker.sock
. Untested on Windows!