├── README.md ├── checkore.sh ├── claimbalance.sh ├── img ├── Screenshot_23.png └── dog-destroy.gif ├── oreminer.sh └── unclaimedbalance.sh /README.md: -------------------------------------------------------------------------------- 1 | # Ore Miner 2 | 3 |

4 | ore 5 | 7 | 8 | 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](https://twitter.com/OreSupply/status/1775176540340547818) and [website](https://ore.supply/). 9 | 10 | ## How to Start 11 | 12 | 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. 13 | 14 | ### 0. Make folder first 15 | Use command below before installing Rust if you use cloud-hosted environment. If you are using local environment, you can skip this part. 16 | ``` 17 | mkdir -p /home//.config/fish/conf.d/ 18 | ``` 19 | 20 | ### 1. Install Rust and Cargo: 21 | Install Rust and Cargo through curl command line. You can see details about its installation on [here](https://www.rust-lang.org/tools/install). 22 | ``` 23 | curl https://sh.rustup.rs -sSf | sh 24 | ``` 25 | 26 | ### 2. Install Solana CLI, then export PATH to verify your Solana CLI: 27 | 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. 28 | ``` 29 | sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)" 30 | 31 | export PATH="/home//.local/share/solana/install/active_release/bin:$PATH" 32 | ``` 33 | 34 | ### 3. Create a new solana wallet: 35 | Create a new solana wallet on your CLI. Alternatively, if you want to import solana wallet you can use `solana-keygen recover` instead. 36 | ``` 37 | solana-keygen new 38 | ``` 39 | ### 4. Find your Solana address and send 0.01 SOL on your address: 40 | Assuming 0.01 SOL is enough and optimal for mining later on. You can deposit more SOL if you want. 41 | ``` 42 | solana-keygen pubkey 43 | ``` 44 | 45 | ### 4. Add $ORE contract address to the wallet: 46 | Add $ORE token on your solana CLI, it will cost SOL gasfee. 47 | ``` 48 | spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz 49 | ``` 50 | 51 | ### 6. Install the Ore CLI: 52 | There is plenty way to install Ore CLI. 53 | ``` 54 | cargo install ore-cli 55 | ``` 56 | You can also clone the source and build from it. 57 | ``` 58 | git clone https://github.com/HardhatChad/ore-cli.git 59 | cd ore-cli 60 | cargo build --release 61 | ``` 62 | 63 | ### 7. Choosing RPC 64 | 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 65 | - https://api.mainnet-beta.solana.com 66 | - [Alchemy](https://www.alchemy.com/solana) 67 | - [Helius](https://www.helius.dev/) 68 | - [Triton](https://triton.one/) 69 | - [Syndica](https://syndica.io/) 70 | - [QuickNode](https://www.quicknode.com/docs/solana) 71 | - [Ankr](https://www.ankr.com/rpc/solana/) 72 | - [GetBlock](https://getblock.io/nodes/sol/) 73 | - [Chainstack](https://chainstack.com/build-better-with-solana/) 74 | - [Blockdaemon](https://www.blockdaemon.com/protocols/solana) 75 | - [OMNIA](https://omniatech.io/pages/solana-rpc/) 76 | - [Hello Moon](https://www.hellomoon.io/developers) 77 | - [EXTR](https://extrnode.com/solana/) 78 | - [Ironforge](https://ore.supply/settings) 79 | 80 | ### 8. Clone My Repo 81 | Clone my github repo and go the repo folder 82 | ``` 83 | git clone https://github.com/0xrsydn/ore-miner.git 84 | cd ore-miner 85 | ``` 86 | 87 | ### 9. Configure The Script 88 | 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: 89 | ``` 90 | chmod +x oreminer.sh claimbalance.sh unclaimedbalance.sh 91 | ``` 92 | 93 | ### 10. Run The Script 94 | Stay in that folder and execute oreminer.sh and watch your machine mine ORE for you automatically: 95 | ``` 96 | ./oreminer.sh 97 | ``` 98 | 99 | ### 11. Additional information 100 | 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. 101 | 102 | 103 | ## Acknowledgements 104 | 105 | Big thanks for [@fear-rush](https://github.com/fear-rush) for insight and optimization for running the mining script. Also thanks for [Little Things](https://t.me/yourlittlething) and its member for great alpha! 106 | 107 | ## Contribution 108 | 109 | 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. 110 | 111 | -------------------------------------------------------------------------------- /checkore.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Checking ORE balance..." 4 | 5 | while true; do 6 | ore --keypair ~/.config/solana/id.json balance 7 | sleep 10 8 | done 9 | -------------------------------------------------------------------------------- /claimbalance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Define your RPC URL 4 | RPC_URL="your_rpc_url_here" 5 | 6 | while true; do 7 | # Claim rewards 8 | ore --keypair ~/.config/solana/id.json --rpc "$RPC_URL" claim 9 | # Add a delay of 10 seconds 10 | sleep 10 11 | done 12 | -------------------------------------------------------------------------------- /img/Screenshot_23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xrsydn/ore-miner/e6b53dc5d3ec10dd58cecd07d3bd71d5ade874cd/img/Screenshot_23.png -------------------------------------------------------------------------------- /img/dog-destroy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xrsydn/ore-miner/e6b53dc5d3ec10dd58cecd07d3bd71d5ade874cd/img/dog-destroy.gif -------------------------------------------------------------------------------- /oreminer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #add your solana rpc endpoint 4 | DEFAULT_RPC_URL="......" 5 | #add your solana pubkey path 6 | DEFAULT_KEY="....." 7 | #define solana gas fee 8 | DEFAULT_FEE=0 9 | #define how many cpu threads used 10 | DEFAULT_THREADS=10 11 | 12 | RPC_URL=${1:-$DEFAULT_RPC_URL} 13 | KEY=${2:-$DEFAULT_KEY} 14 | FEE=${3:-$DEFAULT_FEE} 15 | THREADS=${4:-$DEFAULT_THREADS} 16 | 17 | COMMAND="ore --rpc ${RPC_URL} --keypair ${KEY} --priority-fee ${FEE} mine --cores ${THREADS}" 18 | 19 | while true; do 20 | echo "Starting the process..." 21 | eval $COMMAND 22 | [ $? -eq 0 ] && break 23 | echo "Restart in 5 seconds..." 24 | sleep 5 25 | done 26 | -------------------------------------------------------------------------------- /unclaimedbalance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Checking the unclaimed balance..." 4 | 5 | while true; do 6 | ore --keypair ~/.config/solana/id.json rewards 7 | sleep 10 8 | done 9 | --------------------------------------------------------------------------------