Coder Social home page Coder Social logo

ore-miner's Introduction

Ore Miner

ore

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.

How to Start

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.

0. Make folder first

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/

1. Install Rust and Cargo:

Install Rust and Cargo through curl command line. You can see details about its installation on here.

curl https://sh.rustup.rs -sSf | sh

2. Install Solana CLI, then export PATH to verify your Solana CLI:

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"

3. Create a new solana wallet:

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

4. Find your Solana address and send 0.01 SOL on your address:

Assuming 0.01 SOL is enough and optimal for mining later on. You can deposit more SOL if you want.

solana-keygen pubkey

4. Add $ORE contract address to the wallet:

Add $ORE token on your solana CLI, it will cost SOL gasfee.

spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz

6. Install the Ore CLI:

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

7. Choosing RPC

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

8. Clone My Repo

Clone my github repo and go the repo folder

git clone https://github.com/0xrsydn/ore-miner.git
cd ore-miner

9. Configure The Script

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

10. Run The Script

Stay in that folder and execute oreminer.sh and watch your machine mine ORE for you automatically:

./oreminer.sh

11. Additional information

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.

Acknowledgements

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!

Contribution

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.

ore-miner's People

Contributors

0xrsydn avatar allupeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ore-miner's Issues

Solana address is't the same as rewards account

Hi, the Solana address (obtain via solana-keygen pubkey) is not the same as miner account, may I know does it correct or not?

I am encountering the error when run rewards command:

Failed to get miner account: Error { request: None, kind: RpcError(ForUser("AccountNotFound: pubkey={pubkey_a}")) }

pubkey_a is not the same as generated Solana address.

this guy report the same issue on ore-cli repo -> regolith-labs/ore-cli#20

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.