This Stratum Bridge is currently in BETA. Support is available in the Kaspa Discord’s #mining-and-hardware channel.
For bug reports or feature request, please open an issue at https://github.com/kaspanet/rusty-kaspa/issues and prefix your issue title with [Bridge].
This repository contains a standalone Stratum bridge binary at:
bridge
The bridge can run against:
- External node (you run
kaspadyourself) - In-process node (the bridge starts
kaspadin the same process)
The sample configuration file is:
bridge/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
For detailed command-line options:
cargo run --release --bin stratum-bridge -- --helpThis will show all available bridge options and guidance for kaspad arguments.
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 -p kaspa-stratum-bridge --release --bin stratum-bridge -- --config bridge/config.yaml --node-mode externalcargo run -p kaspa-stratum-bridge --release --bin stratum-bridge -- --config bridge/config.yaml --node-mode inprocess -- --utxoindex --rpclisten=127.0.0.1:16110 --rpclisten-borsh=127.0.0.1:17110Important: Use -- separator before kaspad arguments. Arguments starting with hyphens must come after the -- separator.
Examples:
# ✓ Correct - bridge args first, then --, then kaspad args
cargo run --release --bin stratum-bridge -- --config config.yaml --node-mode inprocess -- --utxoindex --rpclisten=127.0.0.1:16110
# ✗ Incorrect - will show error message
cargo run --release --bin stratum-bridge -- --rpclisten=127.0.0.1:16110 --config config.yaml --node-mode inprocess
# Error: tip: to pass '--rpclisten' as a value, use '-- --rpclisten'Note: In-process mode uses a separate app directory by default to avoid RocksDB lock conflicts with an existing kaspad.
If you want to override it, pass --appdir to the bridge (before the -- separator):
cargo run --release --bin stratum-bridge -- --config bridge/config.yaml --node-mode inprocess --appdir "C:\path\to\custom\datadir" -- --utxoindex --rpclisten=127.0.0.1:16110- 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.