Skip to content
RocketRPC

Guide · Mining

How to mine your own cryptocurrency: algorithm, pool and first miners

You can mine your own coin if it uses proof of work. The coin's code does the rest, but a few choices decide whether miners show up and whether your chain stays safe. This guide covers how mining starts at block one, which algorithm to pick, solo mining versus a pool, and how to invite your first miners.

By , Bitcoin writer
Updated · 10 min read

Before we start

Which one sounds like you?

What's inside

6 chapters. Read it start to finish, or jump to the part you need.

  1. Chapter 1How mining starts at block oneA new chain begins at its genesis block. Miners then race for block one, and the first ones face very little competition.
  2. Chapter 2Difficulty: why blocks keep a steady paceThe network adjusts how hard the puzzle is, so blocks arrive at a steady pace whatever the mining power.
  3. Chapter 3Choosing the mining algorithmThe algorithm decides what hardware mines your coin, and who else can point their machines at it.
  4. Chapter 4Solo mining or a mining pool?Solo miners keep whole rewards but wait a long time for them. A pool trades a small fee for steady payouts.
  5. Chapter 5Getting your first minersMiners join coins they can set up in minutes. Give them everything on one page.
  6. Chapter 6The RocketRPC mining pool add-onPick proof of work in the builder, add the mining pool, and your miners have somewhere to go from day one.

The short answer

The short answer

To mine your own cryptocurrency, launch a proof of work coin, run at least two nodes, and point mining software at them. Choose a mining algorithm that is not shared with a much bigger coin, add a mining pool so small miners can join, and publish clear instructions. Difficulty then adjusts on its own as miners come and go.

  1. Step 1: Launch a proof of work coinWith its own genesis block and at least two nodes.
  2. Step 2: Pick the mining algorithmAvoid one that a much bigger coin also uses.
  3. Step 3: Mine the first blocksSolo at first, with the node and mining software.
  4. Step 4: Add a mining poolSo small miners earn steady payouts.
  5. Step 5: Invite minersPublish instructions, the pool address and an explorer.

The first step is easy. The second one is where small coins get into trouble.

1Chapter 1

How mining starts at block one

A new chain begins at its genesis block. Miners then race for block one, and the first ones face very little competition.

Your chain starts with the genesis block, the first block. Mining means finding the next one. A miner keeps hashing a block with different numbers until the result is at or below a target. The first miner to succeed adds the block and earns the block reward.

The Bitcoin Wiki says the main purpose of mining is to set the history of transactions, in a way that is impractical for any one party to change. It also issues new coins and pays fees to miners, which is why people are willing to spend electricity on it.

  • Block 1Few miners, big shareEarly on, the people who show up earn most of the new coins. That is a fair way to spread a coin if your community comes in early.
  • RiskFew miners, weak chainA chain with little mining power is easy to overpower. Chapter 3 covers why this matters.
  • ToolSeparate mining softwareBitcoin Core's built-in miner was removed. Its node can still create blocks on request, but real mining uses separate mining software.

The last point comes from the Bitcoin Core maintainers in issue 14745. A coin forked from Bitcoin or Litecoin inherits this, so plan for external mining software and, soon after, a pool.

Quick check: Who earns the most new coins in the first days of a mining coin?

2Chapter 2

Difficulty: why blocks keep a steady pace

The network adjusts how hard the puzzle is, so blocks arrive at a steady pace whatever the mining power.

If ten miners join, blocks would arrive faster. If they leave, blocks would crawl. To prevent that, the network changes the difficulty on a schedule. Bitcoin does it every 2,016 blocks.

2,016

blocks between Bitcoin difficulty changes. At one block every 10 minutes that is two weeks. If the last 2,016 blocks took longer than two weeks, difficulty goes down.Source: Bitcoin Wiki, Difficulty

Litecoin's settings (3.5 days at 2.5 minutes per block) work out to the same 2,016 blocks, only much faster. Your coin sets its own block time and adjustment window in the same place, so pick a pair that suits your community:

Block time and difficulty window in two proven coins
BitcoinLitecoin
Target block time10 minutes2.5 minutes
Time between difficulty changesTwo weeks3.5 days
Blocks between difficulty changes2,0162,016
Halving every210,000 blocks840,000 blocks
From the chainparams files in Bitcoin Core and Litecoin Core on GitHub.

Try your own numbers. The calculator shows how block time, reward and halving interval shape your coin's supply:

Coin supply calculator

Start from

A block every 10 minutes, 50 coins at first, halving every 210,000 blocks (about 4 years). Ends near 21 million.

How often a new block is found. Shorter means faster payments.

New coins paid to the miner or validator of each block at launch.

The reward is cut in half this often. Use 0 for a reward that never changes.

Coins created at launch before anyone mines. Use 0 for a fair launch.

A hard limit on all coins ever created. Leave empty for no limit.

Coins in existence, by years since launch

08M16M24M010203040 yrs99 percent by year 27
Coin supply every 5 years
YearCoins in existence
00
511,820,000
1017,070,000
1519,365,000
2020,345,625
2520,714,063
3020,877,656
3520,949,141
4020,979,609
After 1 year
2,628,000
After 4 years
10,506,000
Final supply
21,000,000
99 percent mined by
Year 27

About 144 blocks a day, 7,200 new coins a day at the starting reward.

Try these rules on a real chain: open the blockchain builderSource

3Chapter 3

Choosing the mining algorithm

The algorithm decides what hardware mines your coin, and who else can point their machines at it.

The mining algorithm is the puzzle itself. Our builder offers three, each tied to a base coin:

Mining algorithms in the RocketRPC builder
AlgorithmBuilder basesWhat to know
SHA-256Bitcoin, Bitcoin CashBitcoin's algorithm. Purpose-built ASIC machines for it have existed since 2013, per the Bitcoin Wiki
ScryptLitecoin, DogecoinUsed by Litecoin and Dogecoin. Their original coins have large mining communities
X11DashDash's algorithm. Dash's documentation says X11 ASICs have existed since early 2016
Algorithm names from the base coins' own code and documentation. The Bitcoin Wiki says Bitcoin hashes its block header twice with SHA-256.

The danger of sharing an algorithm

Anyone with hardware for an algorithm can point it at any coin that uses the same one. If a much bigger coin shares your algorithm, its miners can switch to yours in minutes, and they have far more power than your community has.

What lowers the risk:

  • Pick an algorithm where your coin can be a real share of the miners, not a rounding error next to a giant.
  • Ask exchanges and shops to wait for more confirmations while the chain is young. A confirmation is another block built on top of a payment.
  • Build a community of loyal miners early, with a pool, so power stays with you.
  • Consider another model. For a small, open coin, proof of stake can be safer. See proof of work vs proof of stake.
Quick check: Your new coin uses the same algorithm as a coin with thousands of times your mining power. What is the main risk?

4Chapter 4

Solo mining or a mining pool?

Solo miners keep whole rewards but wait a long time for them. A pool trades a small fee for steady payouts.

In solo mining, one miner works alone. When it finds a block, it keeps the whole reward. Until then it earns nothing, and finding a block can take a long time if the chain has many miners.

A mining pool combines the work of many miners. The Bitcoin Wiki explains that miners prove their effort with shares, which are easier proofs of work than a full block, and that the reward is split according to each miner's contribution. The result is a steady trickle of small payouts instead of one rare big one.

Solo mining and pool mining compared
Solo miningPool mining
Reward when you find a blockAll of itA share of it, based on your shares
How often you get paidRarely, and unpredictablyRegularly, in small amounts
Good forTesting, and very large minersSmall and medium miners
CostNoneUsually a small pool fee
For a new coinFine for the first test blocksNeeded to attract regular miners

How payouts work, simply

Pools use different payout schemes. The simplest to understand is pay per share (PPS): the Bitcoin Wiki describes it as an instant flat payment for each share, from the pool's own balance, which gives miners the least variance because the pool operator carries the risk. Other schemes pay only when a block is actually found. Whichever one you pick, publish it, so miners know what to expect.

5Chapter 5

Getting your first miners

Miners join coins they can set up in minutes. Give them everything on one page.

People who mine for fun or profit look for coins that are simple to start. A short page that answers every question will do more for you than any advert:

What your mining page should include

0 of 7 done

The hardware depends on the algorithm. According to the Bitcoin Wiki, Bitcoin mining moved from CPUs to graphics cards, then to purpose-built ASIC machines, which made graphics card mining financially unviable for Bitcoin. For a coin on an algorithm with ASICs, that is the competition you face. Be honest on your page about what hardware your coin suits.

Also set up the rest of the launch: a website, a supply page and a chat. The complete guide to creating a cryptocurrency walks through day one.

6Chapter 6

The RocketRPC mining pool add-on

Pick proof of work in the builder, add the mining pool, and your miners have somewhere to go from day one.

A coin with its own blockchain starts at $149 one-time. The mining pool is an optional add-on for proof of work coins, for $149 one-time. It lets miners team up on your coin and get paid steadily. Hosting is $5 per server per month after launch, shown in the builder's price box before you pay.

  • Start from a proof of work base: Bitcoin, Litecoin, Dogecoin, Bitcoin Cash or Dash.
  • Add the mining pool, plus an explorer, so miners can see blocks and verify payouts.
  • Set your block time, reward and halving, with the live supply calculator.

Questions people ask

Can I mine my own cryptocurrency?

Yes, if your coin uses proof of work. Launch the chain with at least two nodes, point mining software at them, and mine the first blocks yourself. Then add a pool so other miners can join.

How do I create a mineable coin?

Choose a proof of work base, such as Bitcoin, Litecoin, Dogecoin, Bitcoin Cash or Dash in our builder. Set your block time, reward and supply, and launch. Mining starts at block 1 after the genesis block.

What is solo mining?

Mining on your own. If you find a block you keep the whole reward, but with many miners on the chain that can take a long time. A pool shares the work and the reward.

Do I need a mining pool for my coin?

Not for the very first test blocks, but yes if you want regular miners. A pool turns rare rewards into steady payouts, which small miners need.

Which mining algorithm should my coin use?

Pick one where your coin can be a meaningful share of the miners. If a much bigger coin uses the same algorithm, its miners can point their hardware at yours, as happened to Bitcoin Gold in May 2018.

How does mining difficulty change?

On a schedule. Bitcoin adjusts every 2,016 blocks, which is two weeks at 10 minutes per block. If blocks came too slowly, difficulty goes down. If they came too fast, it goes up.

What happens if all the miners leave my coin?

Blocks slow down until the next difficulty change, and in the worst case stop. Keeping a few loyal miners and a pool running early is the best protection.

Can I mine on a CPU or graphics card?

It depends on the algorithm. On Bitcoin, the Bitcoin Wiki says purpose-built ASIC machines made graphics card mining financially unviable. A coin on an algorithm with no ASICs is more open to ordinary hardware.

Sources

  1. Bitcoin Wiki, Difficulty, 2016-block adjustment and two weeks
  2. Bitcoin developer guide, block chain, difficulty adjustment every 2,016 blocks
  3. Bitcoin Wiki, Mining, purpose of mining and the CPU to GPU to ASIC history
  4. Bitcoin Wiki, Pooled mining, shares, why pools exist, pay per share
  5. Bitcoin Wiki, Block hashing algorithm, double SHA-256
  6. Dash documentation, features, X11 algorithm and ASIC mining
  7. Bitcoin Core, src/kernel/chainparams.cpp, Bitcoin block time, halving interval and difficulty window
  8. Litecoin Core, src/chainparams.cpp, Litecoin block time, halving interval and difficulty window
  9. Bitcoin Core issue 14745, built-in miner removed
  10. BleepingComputer, Bitcoin Gold double-spend attack (May 2018)