> For the complete documentation index, see [llms.txt](https://rust-mev-bot.solboxs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rust-mev-bot.solboxs.com/basics/jito-shredstream.md).

# Jito ShredStream

## 放开相关端口

```shell

# 允许来自Frankfurt的IP
ufw allow from 74.118.140.240 comment 'jito-frankfurt'
ufw allow from 64.130.52.138 comment 'jito-frankfurt'
ufw allow from 202.8.8.177 comment 'jito-frankfurt'
ufw allow from 64.130.55.26 comment 'jito-frankfurt'
ufw allow from 64.130.55.174 comment 'jito-frankfurt'
ufw allow from 64.130.55.28 comment 'jito-frankfurt'

# 允许来自New York的IP
ufw allow from 64.130.50.14 comment 'jito-newyork'
ufw allow from 64.130.57.199 comment 'jito-newyork'
ufw allow from 64.130.57.99 comment 'jito-newyork'
ufw allow from 64.130.57.171 comment 'jito-newyork'
ufw allow from 64.130.40.23 comment 'jito-newyork'
ufw allow from 64.130.40.22 comment 'jito-newyork'
ufw allow from 64.130.40.21 comment 'jito-newyork'

# 允许来自Salt Lake City的IP
ufw allow from 141.98.216.96 comment 'jito-saltlake'
ufw allow from 64.130.51.137 comment 'jito-saltlake'
ufw allow from 64.130.51.41 comment 'jito-saltlake'
ufw allow from 64.130.59.205 comment 'jito-saltlake'
ufw allow from 64.130.34.189 comment 'jito-saltlake'
ufw allow from 64.130.34.190 comment 'jito-saltlake'
ufw allow from 64.130.34.141 comment 'jito-saltlake'
ufw allow from 64.130.34.142 comment 'jito-saltlake'

# 允许来自Tokyo的IP
ufw allow from 64.130.53.8 comment 'jito-tokyo'
ufw allow from 64.130.53.88 comment 'jito-tokyo'
ufw allow from 64.130.53.90 comment 'jito-tokyo'
ufw allow from 64.130.53.82 comment 'jito-tokyo'
ufw allow from 202.8.9.160 comment 'jito-tokyo'
ufw allow from 202.8.9.22 comment 'jito-tokyo'
ufw allow from 208.91.107.252 comment 'jito-tokyo'
ufw allow from 64.130.49.142 comment 'jito-tokyo'

ufw allow 20000/udp comment 'jito-udp'

```

## clone 项目

```
git clone https://github.com/jito-labs/shredstream-proxy.git --recurse-submodules
```

## 安装Rust

安装命令

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

设置环境变量

```
source $HOME/.cargo/env
```

## 启动ShredStream

进入screen 后，进如clone 的文件夹

```
screen -S shredstream
```

启动命令，其中/root/jito.json 是你的私钥json文件

```
RUST_LOG=info cargo run --release --bin jito-shredstream-proxy -- shredstream \
    --block-engine-url https://amsterdam.mainnet.block-engine.jito.wtf \
    --auth-keypair /root/jito.json \
    --desired-regions amsterdam,frankfurt \
    --dest-ip-ports 127.0.0.1:8001
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rust-mev-bot.solboxs.com/basics/jito-shredstream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
