This repository contains a standalone Stratum bridge binary:
stratum-bridge
The bridge can run against:
- External node (you run
kaspadyourself) - In-process node (the bridge starts
kaspadin the same process)
The bridge no longer supports spawning kaspad as a subprocess.
The sample configuration file is:
config.yaml
When running from the repository root, pass this full relative path via --config.
By default it exposes these Stratum ports:
:5555:5556:5557:5558
Terminal A (node):
cargo run --release --bin kaspad -- --utxoindex --rpclisten=127.0.0.1:16110 --rpclisten-borsh=127.0.0.1:17110Terminal B (bridge):
cargo run --release --bin stratum-bridge -- --config config.yaml --node-mode externalcargo run --release --bin stratum-bridge -- --config config.yaml --node-mode inprocess --node-args="--utxoindex --rpclisten=127.0.0.1:16110 --rpclisten-borsh=127.0.0.1:17110"Note: If you already have a kaspad running, in-process mode may fail with a DB lock error (RocksDB meta/LOCK). Either stop the other kaspad or run in-process with a separate app directory, e.g. add to --node-args:
--appdir=E:\\rusty-kaspa\\tmp-kaspad-inprocess
- Pool URL:
<your_pc_ip>:5555(or whicheverstratum_portyou configured) - Username / wallet:
kaspa:YOUR_WALLET_ADDRESS.WORKERNAME
To verify connectivity on Windows:
netstat -ano | findstr :5555To see detailed miner connection / job logs:
$env:RUST_LOG="info,kaspa_stratum_bridge=debug"On Windows, Ctrl+C may show STATUS_CONTROL_C_EXIT which is expected.
Contributions are welcome! Please feel free to submit a Pull Request.
Special thanks to the following individuals and the entire Kaspa Community for their invaluable contributions, support, and efforts that made this Rust-based Stratum bridge possible:
- @onemorebsmith
- @kaspapulse
- @aglov413
- @kaffinpx
- @coderofstuff
- @rdugan
- @pbfarmer
- @dablacksplash
- The Kaspa Community
Your dedication and collaboration have been instrumental in bringing this project to life. Thank you!
Donations are welcomed but not expected. If you find this project useful and would like to support its development:
kaspa:qr5wl2hw4vk374vrnk59jnh64tyj8nvsmax3s0gw5ej2yukwlc3gsuxxc2u0y