Solo Mining
Solo mining is a method where you mine Ergo independently, without joining a mining pool. This approach can be more rewarding if you have significant mining power, but it also comes with higher variance in rewards.
Before You Start
Before you decide to solo mine, you might want to use the calculator above to evaluate if solo mining is the right choice for you. If you decide to proceed with solo mining, you have two options:
Option 1: Use a Mining Pool's Solo Port
Some mining pools offer a solo port for miners who prefer to work independently. You can find a list of such pools on Mining Pool Stats.
Option 2: Host Your Own Pool
If you prefer to have complete control over your mining process, you can set up and host your own mining pool.
Mining Profitability Calculator
Calculate your breakeven ERG price based on your mining setup and electricity costs.
Remember EIP-27!
To be able to spend any ERG mined via the reference client, you will need to include the EIP27 rules in your ergo.conf. See the configuration section below for more information.
Solo Node Configuration
To be able to spend any ERG mined this way, you will need to include the EIP27 rules in your ergo.conf file which you run with the .jar as such:
Run Command
java -Xmx4g -jar ergo-5.0.4.jar --mainnet -c ergo.confergo.conf Configuration
ergo {
node {
mining = true
}
chain {
reemission {
checkReemissionRules = true
}
}
wallet {
checkEIP27 = true
}
}
scorex {
restApi {
## Hex-encoded Blake2b256 hash of an API key.
## Should be 64-chars long Base16 string.
## below is the hash of the string 'hello'
## replace with your actual hash generated from within swagger.
apiKeyHash = "324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf"
}
}You'll then either want to use the Ergo Stratum mining server or Mining Core.
Resources
Spending Mining Rewards
Keep in mind
Please note this page contains information that pre-dates EIP-27.
This section guides miners on how to withdraw funds they have mined. Many users have launched both a node and a miner, with the miner's pubkeyHex embedded in the node's configuration.
Keys Overview
1. Base16-encoded raw public key
Mining software and mining support in the node use this format, represented as a serialized point on an elliptic curve.
2. Pay-To-Public-Key (P2PK) addresses
These addresses are displayed in the node wallet and start with "9." They include the elliptic curve point, network prefix and a checksum.
3. Mining/rewardAddress API method
Displays a special encoded script used to pay a miner, such as 88dhgzEuTXaSfKEbxfa6vghvEGdBH39sn9h7As2Y2Z6SGd8bKXCXmRLY5JtU4g4RYBP4WcZWb3JwjXDK
Viewing Your Balance and Withdrawing Funds
After initializing your wallet, you may not see the mined coins if the initialization occurred after the corresponding blocks were mined. The node does not scan blocks retrospectively; it only scans new blocks after initialization.
Step-by-Step Withdrawal Guide
Step 1: Clear Node State (if stopping the node)
If you intend to stop your node, you must clear its state. Stop the node and remove all contents of the .ergo directory.
Step 2: Restoring a Local Wallet
Retrieve the mnemonic sentence from your Autolykos miner's config.json. Send a POST request to restore your wallet:
{
"pass": "your_wallet_pass",
"mnemonic": "mnemonic_sentence_from_your_miner",
"mnemonicPass": "mnemonic_pass_if_set"
}ATTENTION: Restore the wallet before your node starts downloading full blocks to allow scanning from genesis.
Step 3: Checking Your Balance
Once synchronized, check the /wallet/balances API method:
{
"height": 3560,
"balance": 67500000000,
"assets": {}
}Step 4: Making a Transaction
To withdraw rewards, create a payment transaction using /wallet/payment/send:
{
"address": "your_address",
"value": 10000000
}Solo Mining FAQ
Why Aren't My Funds Visible in My Wallet?
Mining rewards are initially linked to a time-and-pubkey lock script, not your standard P2PK address. You need to transfer all funds to your own address in the node wallet to make them visible.
Why Do My Rewards Go to a Different Address?
Mining rewards are directed to UTXOs with specific scripts that lock the rewards to the miner's public keys for 720 blocks. After 720 confirmations, the wallet will display the mined rewards.
How Do I Verify If a Block Is Mined by Me?
You can obtain your mining rewards address with the /mining/rewardAddress API call:
{
"rewardAddress": "mPdcmQkPPvyMGoCDNg9oiasLyPpKJhHjgjpt89uJZE1oN9PJ9fKbdKDcfomtWoy3d1E7RFLTUbXbt1AS"
}You can then verify your rewards on the Ergo Explorer.
/mining/solution API Endpoint
The mining solution endpoint returns:
{
"pk": "0350e25cee8562697d55275c96bb01b34228f9bd68fd9933f2a25ff195526864f5",
"w": "0366ea253123dfdb8d6d9ca2cb9ea98629e8f34015b1e4ba942b1d88badfcc6a12",
"n": "0000000000000000",
"d": 987654321
}- • pk is the public key in binary format
- • n is the nonce
- • w and d are no longer used in Autolykos2 and are constant