Pool connection definition is issued via -P
argument which has this syntax:
-P scheme://user[.workername][:password]@hostname:port[/...]
values in square brackets are optional
where scheme
can be any of:
http
for getwork mode (geth)stratum+tcp
for plain stratum modestratum1+tcp
for plain stratum eth-proxy compatible modestratum2+tcp
for plain stratum NiceHash compatible mode
Ethminer supports secure socket communications (where pool implements and offers it) to avoid the risk of a man-in-the-middle attack To enable it simply replace tcp with either:
tls
to enable secure socket communicationssl
ortls12
to enable secure socket communication allowing only TLS 1.2 encryption
thus your connection scheme changes to -P stratum+tls://[...]
or -P stratum+tls12://[...]
. Same applies for stratum1
and stratum2
.
Stratum autodetection has been introduced to mitigate user's duty to guess/find which stratum flavour to apply (stratum or stratum1 or stratum2).
If you want to let ethminer do the tests for you simply enter scheme as stratum://
(note +tcp
is missing) or stratums://
for secure socket or stratumss://
for secure socket allowing only TLS 1.2 encryption.
Here you can find a collection of samples to connect to most commonly used ethash pools. (alphabetic order).
- Stratum connection is always to be preferred over getwork when pool offers it due to its better network latency.
- If possible the samples use a protocol which supports reporting of hashrate (
--report-hashrate
) if pool supports this.
Check for updates in the pool connection settings visiting the pools homepage.
We tried to merge the requirements of the variables so they match all pools.
Variables | Description | Sample |
---|---|---|
ETH_WALLET |
Replace ETH_WALLET with your Ethereum wallet number including the leading 0x . |
0x1234567890ABCDEF1234567890abcdef12345678 |
WORKERNAME |
WORKERNAME may only contain letters and numbers. Some pools also only allow up to a maximum of 8 characters! |
pl1rig01 |
EMAIL |
EMAIL may contain letters, numbers, underscores, dashes, dots and the @-sign. It must contain a @-sign and a dot! |
[email protected] |
USERNAME |
USERNAME you got from the pool (like miningpoolhub.com) |
my_username |
WORKERPWD |
WORKERPWD is the password you got from the pool for the worker (like miningpoolhub.com) - if you have no password set try using 'x' |
my_workerpwd |
BTC_WALLET |
As some pools honor your work in BTC (eg nicehash.com) BTC_WALLET is your Bitcoin wallet address |
1A2b3C4d5e5F6g7H8I9j0kLmNoPqRstUvW |
The servers are listed in alphabetical order. To get best results reorder them from nearest to farest distance depending on your geographic location.
-P stratum1+tcp://[email protected]:2020
With email
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:8008/WORKERNAME/EMAIL
Without email
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
-P stratum1+tcp://[email protected]:8008
Non-SSL connection:
-P stratum1+tcp://[email protected]:4444
-P stratum1+tcp://[email protected]:4444
-P stratum1+tcp://[email protected]:4444
-P stratum1+tcp://[email protected]:4444
SSL connection:
-P stratum1+ssl://[email protected]:5555
-P stratum1+ssl://[email protected]:5555
-P stratum1+ssl://[email protected]:5555
-P stratum1+ssl://[email protected]:5555
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:8008
-P stratum2+tcp://USERNAME.WORKERNAME:[email protected]:20535
-P stratum2+tcp://USERNAME.WORKERNAME:[email protected]:20535
-P stratum2+tcp://USERNAME.WORKERNAME:[email protected]:20535
HINT: It seems the password is not being verified by the pool so you can use a plain x
as WORKERPWD
.
With email:
-P stratum1+tcp://[email protected]:9999/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:9999/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:9999/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:9999/WORKERNAME/EMAIL
-P stratum1+tcp://[email protected]:9999/WORKERNAME/EMAIL
Without email:
-P stratum1+tcp://[email protected]:9999
-P stratum1+tcp://[email protected]:9999
-P stratum1+tcp://[email protected]:9999
-P stratum1+tcp://[email protected]:9999
-P stratum1+tcp://[email protected]:9999
-P stratum2+tcp://[email protected]:3353
-P stratum2+tcp://[email protected]:3353
-P stratum2+tcp://[email protected]:3353
-P stratum2+tcp://[email protected]:3353
-P stratum2+tcp://[email protected]:3353
-P stratum2+tcp://[email protected]:3353
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:3333
-P stratum1+tcp://[email protected]:8082