solana_exec/jito/
get_be_url_from_region.rs

1use std::env;
2
3/// Get Jito block engine URL from region environment variable.Reads `JITO_BE_REGION` environment
4/// variable (ny) and constructs the block engine URL (https://ny.mainnet.block-engine.jito.wtf)
5pub fn get_be_url_from_region() -> String {
6  let region = env::var("JITO_BE_REGION").expect("JITO_BE_REGION must be set");
7  format!("https://{region}.mainnet.block-engine.jito.wtf")
8}