Build a programmatic ORE miner on Solana logoBuild a programmatic ORE miner on Solana
ORE mining uses no GPU: you deploy SOL on a 25-tile board every minute and most of it comes back. We read the regolith-labs/ore program to set out the rules and fees, walk through a minimal Rust miner with ore-api, cover the on-chain Automate option, and do the economics honestly.
devrels.xyz/a/414ORE mining does not use a GPU. It uses a 5x5 board, a one-minute clock and your SOL. A program can play every round, all day. This article shows how to build that program, and what it really costs. We read the regolith-labs/ore program and checked mainnet on 21 November 2026, and rechecked the repository on 4 December. ORE's directory page and its builder Hardhat Chad are on devrels.xyz. For the program and mint addresses, see our shorter ORE reference piece.
How ORE mining works in v3
ORE is a Solana token with a hard cap of 3,000,000 ORE. On 4 December 2026, the mint supply on mainnet was about 527,200 ORE.
Mining in v3 is a game of capital, not of hashes. These are the rules in the current program:
- The board has 25 tiles.
- A round is 300 slots. The on-chain config sets this value, and at current slot times a round is about one minute. A short intermission of 60 slots follows each round.
- During a round, you deploy SOL on one or more tiles. The program rejects a deploy of less than 2 lamports per tile.
- At the end of the round, the program selects one winning tile from on-chain entropy. Each tile has a 1 in 25 chance.
- The program mints 1 ORE for the winning tile. On 15 "split" tiles, all miners on the tile share the ORE pro rata. On 10 "solo" tiles, one miner gets all of it, and your chance of being that miner equals your share of the SOL on the tile. The program changes which tiles are solo and split each round.
- The program also adds 0.2 ORE to the "motherlode" pool each round. The motherlode has a 1 in 500 chance to pay out each round, to miners on the winning tile.
Emissions are about to step down. A change merged on 28 November replaces the fixed 1 + 0.2 ORE with a schedule based on circulating supply. Below 600,000 ORE the rates stay at 1 and 0.2. From 600,000, every extra 100,000 ORE cuts them by 0.05 and 0.01, down to a floor of 0.05 and 0.01 at 2.4 million. Supply is still below the first step. We did not confirm that this code is deployed on mainnet, so check the live program before you plan around it.
You get most of your SOL back. The winning tile pays a 1% admin fee. All other tiles pay the 1% admin fee and then 10% of the remainder to the protocol, so SOL on a losing tile returns at 89.1%. Winners do not get other miners' SOL.
The protocol SOL goes to the treasury. The program sends 15% to a liquidity reserve and uses the rest to buy back ORE. It buries (burns) 90% of that ORE and gives 10% to stakers.
Why program it
Rounds are short and they do not stop. A program can read the board, apply a rule and deploy before each round ends. There are three main routes.
- The Rust
ore-apicrate. Regolith Labs publishes the program and its client SDK in regolith-labs/ore. Theore_api::sdkmodule builds each instruction for you. The miner instructions areDeploy,Checkpoint,ClaimSOL,ClaimORE,AutomateandClose. - The on-chain
Automateinstruction. You do not always need a server.Automatecreates an automation account (PDA seeds["automation", authority]) that you fund with SOL, and an executor deploys for you each round. You set the amount per tile, the tile mask, an executor fee and a strategy:Random,Preferred,DiscretionaryorDiscretionaryBps. The newest version also adds conditions, such as a maximum production cost or a minimum motherlode size, and skips rounds that do not meet them. - TypeScript SDKs.
@oredata/sdkis a client for the oredata.supply API, with live board data and transaction builders, and needs an API key.ore-sdk-corereads the board and builds deploy transactions with@solana/web3.js. Both had their last release before the latest program changes, so test them before you trust them.
Third-party hosted autominers also exist, such as refinORE. They are not part of Regolith Labs, and we have not reviewed them.
A minimal miner in Rust
This example deploys 0.001 SOL on each of five tiles in the current round. It checkpoints first, because the program rejects a deploy if you did not checkpoint your last round.
Add these dependencies: ore-api = "3.9.2", solana-client and solana-sdk (2.x, to match the program's solana-program ^2.1), steel = "4.0.9", tokio and anyhow.
use ore_api::prelude::*;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_sdk::{
native_token::LAMPORTS_PER_SOL,
signature::{read_keypair_file, Signer},
transaction::Transaction,
};
use steel::AccountDeserialize; // Gives Board/Miner::try_from_bytes.
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Read config from env. Never hard-code an RPC URL or a key.
let rpc = RpcClient::new(std::env::var("RPC_URL")?);
let payer = read_keypair_file(std::env::var("KEYPAIR_PATH")?)
.map_err(|e| anyhow::anyhow!("keypair: {e}"))?;
let authority = payer.pubkey();
// 1. Read the board to get the current round.
let board_data = rpc.get_account_data(&board_pda().0).await?;
let board = *Board::try_from_bytes(&board_data)?;
let slot = rpc.get_slot().await?;
if board.end_slot != u64::MAX && slot >= board.end_slot {
anyhow::bail!("Round {} is closed. Wait for the next round.", board.round_id);
}
let mut ixs = Vec::new();
// 2. Checkpoint the last round if necessary.
if let Ok(data) = rpc.get_account_data(&miner_pda(authority).0).await {
let miner = *Miner::try_from_bytes(&data)?;
if miner.checkpoint_id != miner.round_id {
ixs.push(checkpoint(authority, authority, miner.round_id));
}
}
// 3. Deploy on five tiles. The amount is per tile, in lamports (minimum 2).
let mut squares = [false; 25];
for i in [0, 6, 12, 18, 24] {
squares[i] = true;
}
ixs.push(deploy(authority, authority, LAMPORTS_PER_SOL / 1_000, board.round_id, squares));
// 4. Sign and send.
let blockhash = rpc.get_latest_blockhash().await?;
let tx = Transaction::new_signed_with_payer(&ixs, Some(&authority), &[&payer], blockhash);
let sig = rpc.send_and_confirm_transaction(&tx).await?;
println!("Deployed in round {}: {sig}", board.round_id);
Ok(())
}Points to note:
deploy(signer, authority, amount, round_id, squares)converts the 25 booleans into a bit mask. Bitiis tilei.- The miner PDA seeds are
["miner", authority]. The round PDA seeds are["round", round_id as u64 LE]. - Use
claim_sol(authority)to get your SOL back. Useclaim_ore(authority, bps)to claim ORE, wherebpsis the share of your claimable ORE in basis points: 10,000 claims all of it. Read the refining fee below before you claim. - Checkpoint within a day. A deploy stamps the round with a close time one day of slots after it ends, and a fix merged on 3 December (#182) keeps at least a full day after a late reset. If you checkpoint after that, the program logs "Round expired" and you forfeit that round's rewards. In the last 12 hours before the close, anyone may checkpoint your miner and collect its checkpoint fee.
The economics, honestly
Most miners lose money over time. Work out your cost before you start.
The fees are:
- 1% of all SOL you deploy (admin fee).
- 10% of the remainder on each losing tile (protocol fee). If you cover all 25 tiles, this is about 10.5% of your SOL each round.
- A 10% refining fee when you claim ORE. The program gives this fee to miners who have not claimed yet, so a patient holder earns a small yield and a fast seller pays.
- Executor or service fees, if you use
Automateor a hosted service. - Transaction fees and priority fees for each deploy.
The board account tracks a production-cost moving average. On 21 November 2026 it was about 1.01 SOL per ORE, or about US$67 at that day's SOL price. The ORE spot price was also about US$67 (CoinGecko). This average does not include the 1% admin fee, the refining fee or your executor fee. Add those and your cost per ORE is often more than the spot price. Expected value changes each round with the total SOL on the board and the motherlode size, so some rounds can be positive. Do not assume all of them are.
Staking is the other side of the trade. Stakers get 10% of the ORE from buybacks. That yield depends on protocol revenue, so it falls when mining activity falls.
Risks
- RPC reliability. A slow or failed RPC call can make you miss a round. Use a paid RPC and retry with a new blockhash.
- Round timing. A round is about one minute. If your transaction lands after
end_slot, the program rejects it. Do not deploy at the last second. - SOL price. You deploy SOL and earn ORE. If SOL rises against ORE, your cost per ORE rises.
- Custody and keys. A local bot keeps your keypair on your machine. Encrypt the disk, and use a dedicated wallet with a small balance. A hosted service holds a wallet for you, and its API key can spend your funds, so keep the budget small.
- Protocol changes. The ORE program is upgradeable, and the emissions, minimum-deploy and checkpoint changes above all landed within a week. Fees, round length and rules can change. Pin your crate version and read the commit log before you upgrade.
Conclusion
A programmatic ORE miner is a good small project for learning Solana. You read PDAs, build instructions, manage slot timing and handle RPC failures. Use ore-api for full control, or Automate to let the chain do the work. Start small, record your cost per ORE, and stop if mining costs more than buying.
Sources
- regolith-labs/ore:
api/src/instruction.rs,api/src/sdk.rs,api/src/state/,api/src/consts.rs,api/src/emissions.rs, andprogram/src/(reset.rs,checkpoint.rs,deploy.rs,wrap.rs,bury.rs); commits #178 (stepped emissions), #179 (minimum deploy) and #182 (checkpoint window) - ore-api on crates.io (v3.9.2) and ore-mint-api (
MAX_SUPPLY) - Solana mainnet reads: ORE mint
oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcpsupply (4 December 2026); configround_slotsandintermission_slots, and boardproduction_cost_ema(21 November 2026) - CoinGecko ORE and SOL prices, 21 November 2026
- @oredata/sdk and ore-sdk-core on npm
- ore.com
Keep reading
sol-trade-sdk is the execution end of Fnzero's open-source bot stack: solana-streamer and sol-parser-sdk turn gRPC or ShredStream data into events, and the trade SDK turns those events into signed transactions sent through several landing services at once. v11 (3 November 2026) is a dependency-alignment major: parser 0.11, streamer 6.0 and a new Go module path.
Program oreV3EG1…vWv. 11 decimals. Repo regolith-labs/ore. Site ore.com.
Anchor optimises for developer experience. Pinocchio optimises for compute units. Steel sits in the middle. Bundle size, CU cost, and ergonomics — compared.
Get new articles in your inbox
Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.
