Join the discussion on our discord, telegram, or matrix!
Blutgang is a blazing fast, caching, minimalistic load balancer designed with Ethereum's JSON-RPC in mind. Historical RPC queries are cached in a local database, bypassing the need for slow, repeating calls to your node.
For more info about blutgang and how to use it, please check out the wiki.
For detailed instructions on how to use blutgang, please read the wiki.
To install blutgang via cargo, run the following command:
cargo install blutgang
Once done, grab the example_config.toml
from this repository, modify it to your liking, and start blutgang with it.
Clone the repository, and find the example_config.toml
file. Edit it to your liking, and run cargo run --release -- -c example_config.toml
.
If you want to use command line arguments instead, please run cargo run --release -- --help
for more info. Keep in mind that the recommended way to run blutgang is via a config file.
If you need the absolute maximum performance from blutgang, compile it using the command below:
RUSTFLAGS='-C target-cpu=native' cargo build --profile maxperf
Note: The overhead of running blutgang inside of docker reduces cache read performance by 10-20%.
The official docker image is available on dockerhub.
You must provide a config file to the docker container, as well as expose the port specified. Example:
docker run -v /full/path/to/config.toml:/app/config.toml --network host makemake1337/blutgang
Benchmarks were performed with a Ryzen 7 2700X, NVME SSD, and default Ubuntu 23.04 kernel. Same RPC endpoints were used
time sothis --source_rpc http://localhost:3000 --mode call_track --contract_address 0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6 --origin_block 17885300 --terminal_block 17892269 --calldata 0x06f13056 --query_interval 20
Blutgang is libre software licensed under the AGPL-3.0 license. If you are using blutgang in a commercial enviroment, and do not get a commercial license from us, you are required by law to disclose the source code of blutgang, or any works based on or that use the licensed software in any way. This includes MEV bots. Blutgang respects the freedom of it's users and will always be free for non-commercial use.
If you want to use blutgang in a commercial setting without disclosing any source code, please reach out.