MINERD(1)
π MINERD(1) β General Commands Manual π
okay bestie, welcome to the minerd page: it's giving CPU miner, it's giving group-chat energy, and it is fully about to explain every flag without skipping a single one. π
πΈ NAME πΈ
minerd β CPU miner for Bitcoin and Litecoin. π
β¨ SYNOPSIS β¨
minerd [OPTION]...
π DESCRIPTION π
minerd is a multi-threaded CPU miner for Bitcoin, Litecoin and other cryptocurrencies. It supports the getwork and getblocktemplate (BIP 22) methods, as well as the Stratum mining protocol. slay.
In its normal mode of operation, minerd connects to a mining server (specified with the -o option), receives work from it and starts hashing. As soon as a solution is found, it is submitted to the same mining server, which can accept or reject it. When using getwork or getblocktemplate, minerd can take advantage of long polling, if the server supports it; in any case, fresh work is fetched as needed. When using the Stratum protocol this is not possible, and the server is responsible for sending fresh work at least every minute; if it fails to do so, minerd may drop the connection and try reconnecting again. no cap, that connection can absolutely ghost you. π
By default, minerd writes all its messages to standard error. On systems that have a syslog, the --syslog option can be used to write to it instead.
On start, the nice value of all miner threads is set to 19. On Linux, the scheduling policy is also changed to SCHED_IDLE, or to SCHED_BATCH if that fails. On multiprocessor systems, minerd automatically sets the CPU affinity of miner threads if the number of threads is a multiple of the number of processors. organized queen behavior. π
π EXAMPLES π
To connect to a Litecoin mining pool that provides a Stratum server at example.com on port 3333, authenticating as worker "foo" with password "bar":
minerd -o stratum+tcp://example.com:3333 -O foo:bar
To mine to a local Bitcoin testnet instance running on port 18332, authenticating with username "rpcuser" and password "rpcpass":
minerd -a sha256d -o http://localhost:18332 -O rpcuser:rpcpass \
--coinbase-addr=mpXwg4jMtRhuSpVq4xS3HFHmCmWp9NyGKt
To connect to a Litecoin P2Pool node running on my.server on port 9327, mining in the background and having output sent to the syslog facility, omitting the per-thread hashmeter output:
minerd -BSq -o http://my.server:9327
π OPTIONS π
-a,--algo=ALGORITHMβ set the hashing algorithm to use. Default isscrypt. Possible values are:scryptβscrypt(1024, 1, 1)(used by Litecoin)scrypt:Nβscrypt(N, 1, 1)(Nmust be a power of 2 greater than 1)sha256dβSHA-256d(used by Bitcoin)
--benchmarkβ run in offline benchmark mode.-B,--backgroundβ run in the background as a daemon.--cert=FILEβ set an SSL certificate to use with the mining server. Only supported when using theHTTPSprotocol.--coinbase-addr=ADDRESSβ set a payout address for solo mining. This is only used ingetblocktemplatemode, and only if the server does not provide a coinbase transaction. It can be either a base-58 address, or a bech32 address (BIP 173).--coinbase-sig=TEXTβ set a string to be included in the coinbase (if allowed by the server). This is only used ingetblocktemplatemode.-c,--config=FILEβ load options from a configuration file.FILEmust contain a JSON object mapping long options to their arguments (as strings), or totrueif no argument is required. Sample configuration file:
{
"url": "stratum+tcp://example.com:3333",
"userpass": "foo:bar",
"retry-pause": "10",
"quiet": true
}
-D,--debugβ enable debug output.-h,--helpβ print a help message and exit.--no-gbtβ do not use thegetblocktemplateRPC method.--no-getworkβ do not use thegetworkRPC method.--no-longpollβ do not use long polling.--no-redirectβ ignore requests from the server to switch to a different URL.--no-stratumβ do not switch toStratum, even if the server advertises support for it.-o,--url=[SCHEME://][USERNAME[:PASSWORD]@]HOST:PORT[/PATH]β set the URL of the mining server to connect to. Supported schemes arehttp,https,stratum+tcpandstratum+tcps. If no scheme is specified,httpis assumed. Specifying aPATHis only supported forHTTPandHTTPS. Specifying credentials has the same effect as using the-Ooption.
By default, on HTTP and HTTPS, the miner tries to use the getblocktemplate RPC method, and falls back to using getwork if getblocktemplate is unavailable. This behavior can be modified by using the --no-gbt and --no-getwork options.
-O,--userpass=USERNAME:PASSWORDβ set the credentials to use for connecting to the mining server. Any value previously set with-uor-pis discarded.-p,--pass=PASSWORDβ set the password to use for connecting to the mining server. Any password previously set with-Ois discarded.-P,--protocol-dumpβ enable output of all protocol-level activities.-q,--quietβ disable per-thread hashmeter output.-r,--retries=Nβ set the maximum number of times to retry if a network call fails. If not specified, the miner will retry indefinitely.-R,--retry-pause=SECONDSβ set how long to wait between retries. Default is30seconds.-s,--scantime=SECONDSβ set an upper bound on the time the miner can go without fetching fresh work. This setting has no effect inStratummode or when long polling is activated. Default is5seconds.-S,--syslogβ log to the syslog facility instead of standard error.-t,--threads=Nβ set the number of miner threads. If not specified, the miner will try to detect the number of available processors and use that.-T,--timeout=SECONDSβ set a timeout for long polling.-u,--user=USERNAMEβ set the username to use for connecting to the mining server. Any username previously set with-Ois discarded.-V,--versionβ display version information and quit.-x,--proxy=[SCHEME://][USERNAME:PASSWORD@]HOST:PORTβ connect to the mining server through a proxy. Supported schemes are:http,socks4,socks5. Since libcurl 7.18.0, the following are also supported:socks4a,socks5h(SOCKS5with remote name resolving). If no scheme is specified, the proxy is treated as anHTTPproxy.
π¦ ENVIRONMENT π¦
The following environment variables can be specified in lower case or upper case; the lower-case version has precedence. http_proxy is an exception as it is only available in lower case.
http_proxy[SCHEME://]HOST:PORTβ sets the proxy server to use forHTTP.HTTPS_PROXY[SCHEME://]HOST:PORTβ sets the proxy server to use forHTTPS.ALL_PROXY[SCHEME://]HOST:PORTβ sets the proxy server to use if no protocol-specific proxy is set.
Using an environment variable to set the proxy has the same effect as using the -x option.
π AUTHOR π
Most of the code in the current version of minerd was written by Pooler <pooler@litecoinpool.org> with contributions from others.
The original minerd was written by Jeff Garzik <jeff@garzik.org>.
β and that's the whole page, bestie: signed with cpuminer 2.5.1, June 2020, and all the MINERD(1) energy you could ever need ππ¦β¨
π¦ where this page comes from
- nixos 26.05: cpuminer 2.5.1
- nixpkgs unstable: cpuminer 2.5.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms