This repository is made for $ORE mining purpose on CLI with bash script. $ORE is a mineable token on Solana blockchain that uses a novel proof-of-work algorithm to guarantee casual miners can never be starved out from earning rewards. You can mine it using your computer or through your phone (anywhere). You can checkout more about token explanation in their X and website.
Here is step by step how to mine $ORE in your computer using terminal (either powershell or WSL terminal it's up to you) or using termux on your phone. You can also run this on cloud-hosted service such as VPS, but make sure your VPS is allowed to do cryptocurrency mining activity.
Use command below before installing Rust if you use cloud-hosted environment. If you are using local environment, you can skip this part.
mkdir -p /home/<your-cloud-environment>/.config/fish/conf.d/
Install Rust and Cargo through curl command line. You can see details about its installation on here.
curl https://sh.rustup.rs -sSf | sh
After installed Rust and Cargo, install Solana CLI with command below. Dont forget to export the path or restart the terminal after installing Solana CLI.
sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)"
export PATH="/home/<path>/.local/share/solana/install/active_release/bin:$PATH"
Create a new solana wallet on your CLI. Alternatively, if you want to import solana wallet you can use solana-keygen recover
instead.
solana-keygen new
Assuming 0.01 SOL is enough and optimal for mining later on. You can deposit more SOL if you want.
solana-keygen pubkey
Add $ORE token on your solana CLI, it will cost SOL gasfee.
spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz
There is plenty way to install Ore CLI.
cargo install ore-cli
You can also clone the source and build from it.
git clone https://github.com/HardhatChad/ore-cli.git
cd ore-cli
cargo build --release
You can use different Solana RPC endpoints such as Alchemy, Helius, or Solana Mainnet RPC. Here is the list of RPC examples you can use
- https://api.mainnet-beta.solana.com
- Alchemy
- Helius
- Triton
- Syndica
- QuickNode
- Ankr
- GetBlock
- Chainstack
- Blockdaemon
- OMNIA
- Hello Moon
- EXTR
- Ironforge
Clone my github repo and go the repo folder
git clone https://github.com/0xrsydn/ore-miner.git
cd ore-miner
You should configure and modify the script (oreminer.sh) first such as adding rpc endpoints, adding public key path, configure cpu threads, etc. You could also create a lot of oreminer bash scripts with different rpc endpoints and configurations. After finishing your configuration, make the script executable:
chmod +x oreminer.sh claimbalance.sh unclaimedbalance.sh
Stay in that folder and execute oreminer.sh and watch your machine mine ORE for you automatically:
./oreminer.sh
You can checkout other bash scripts such as claimbalance.sh for claim $ORE, unclaimedbalance.sh for checking unclaimed balance, and checkore.sh to check your $ORE balance.
Big thanks for @fear-rush for insight and optimization for running the mining script. Also thanks for Little Things and its member for great alpha!
Feel free to contribute to the ore-miner script or build on top of it to make it more efficient, run smoothly, or resolve any issues.