MCPcopy Index your code
hub / github.com/WSOL12/Solana-Relayer

github.com/WSOL12/Solana-Relayer @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
194 symbols 274 edges 29 files 31 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Running a Relayer

Setup

See https://jito-foundation.gitbook.io/mev/jito-relayer/running-a-relayer until Section "RPC Server" for setup instructions.

--> Create a new folder (e.g. "explorer-relayer") and add your jito-relayer authentication files: public.pem, private.pem, keypair.json

Run

The easiest way to run the Explorer Relayer is to run our public docker image.

Example run command with a explorer-relayer at /home/ubuntu/explorer-relayer authentication folder and a local RPC running:

sudo docker run -d -v /home/ubuntu/explorer-relayer/:/home/ubuntu/explorer-relayer \
    --name=explorer-relayer \
    --restart=always \
    --network=host \
    --entrypoint=./jito-transaction-relayer explorerlabs/explorer-relayer:latest \
    --rpc-servers="http://127.0.0.1:8899" \
    --websocket-servers="ws://127.0.0.1:8900" \
    --keypair-path=/home/ubuntu/explorer-relayer/keypair.json \
    --signing-key-pem-path=/home/ubuntu/explorer-relayer/private.pem \
    --verifying-key-pem-path=/home/ubuntu/explorer-relayer/public.pem \
    --block-engine-url=https://amsterdam.mainnet.block-engine.jito.wtf \
    --explorer-engine-url=<redacted> \
    --packet-delay-ms=200 \
    --public-ip 178.0.0.0

Extension points exported contracts — how you extend this code

ValidatorAuther (Interface)
(no doc) [1 implementers]
relayer/src/auth_service.rs

Core symbols most depended-on inside this repo

len
called by 30
relayer/src/auth_challenges.rs
send
called by 10
packet_blaster/src/main.rs
join
called by 8
core/src/tpu.rs
handle
called by 6
relayer/src/relayer.rs
push
called by 5
relayer/src/auth_challenges.rs
is_expired
called by 3
relayer/src/auth_challenges.rs
rpc_client
called by 3
rpc/src/load_balancer.rs
cmp
called by 2
relayer/src/auth_challenges.rs

Shape

Method 119
Class 36
Function 28
Enum 10
Interface 1

Languages

Rust100%

Modules by API surface

relayer/src/relayer.rs25 symbols
block_engine/src/block_engine_stats.rs21 symbols
block_engine/src/block_engine.rs20 symbols
packet_blaster/src/main.rs14 symbols
explorer_engine/src/explorer_engine.rs14 symbols
relayer/src/auth_challenges.rs11 symbols
transaction-relayer/src/main.rs10 symbols
relayer/src/schedule_cache.rs10 symbols
relayer/src/auth_service.rs10 symbols
web/src/lib.rs8 symbols
relayer/src/auth_interceptor.rs8 symbols
rpc/src/load_balancer.rs6 symbols

For agents

$ claude mcp add Solana-Relayer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact