A command line interface for ORE cryptocurrency mining.
To install the CLI, use cargo:
cargo install ore-cliIf you run into issues during installation, please install the following dependencies for your operating system and try again:
sudo apt-get install openssl pkg-config libssl-dev
brew install openssl pkg-config
# If you encounter issues with OpenSSL, you might need to set the following environment variables:
export PATH="/usr/local/opt/openssl/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
choco install openssl pkgconfiglite
To start mining, load your keypair with some SOL, and then use the mine command:
ore mineAdd the -h flag on any command to pull up a help menu with documentation:
ore -hRun the Docker image with your wallet mapped:
docker run -it \
-e RPC=mainnet \
-e BUFFER_TIME=5 \
-e CORES=4 \
-v /local/path/to/id.json:/ore/id.json:ro \
ghcr.io/regolith-labs/ore:latestThe Docker image supports the following functions:
balance: Fetch an account balance.benchmark: Benchmark your hashpower.busses: Fetch the bus account balances.claim: Claim your mining rewards.close: Close your account to recover rent.config: Fetch the program config.mine: Start mining.proof: Fetch a proof account by address.rewards: Fetch the current reward rate for each difficulty level.stake: Stake to earn a rewards multiplier.transfer: Send ORE to anyone, anywhere in the world.upgrade: Upgrade your ORE tokens from v1 to v2.
RPC: Set the RPC URL (mainnet, devnet, or custom URL). Default isdevnet.BUFFER_TIME: The number of seconds before the deadline to stop mining and start submitting (default: 5).CORES: Number of CPU cores to allocate to mining (default: 1).PRIORITY_FEE: Price to pay for compute units. If dynamic fee URL is also set, this value will be the max (default: 500000).DYNAMIC_FEE_URL: RPC URL to use for dynamic fee estimation.DYNAMIC_FEE_STRATEGY: Strategy to use for dynamic fee estimation. Must be one of 'helius' or 'triton'.
To use your wallet files, mount them as volumes:
- Mount your wallet file:
-v /path/to/your/id.json:/ore/id.json
- Mount your payer wallet file, which is used to pay fees for transactions:
-v /path/to/your/payer.json:/ore/payer.json
- Display balance account:
docker run --rm -it \ -v /path/to/your/id.json:/ore/id.json:ro \ ghcr.io/regolith-labs/ore:latest balance
- Display help:
docker run --rm -it ghcr.io/regolith-labs/ore:latest --help
- Benchmark your hashpower:
docker run --rm -it ghcr.io/regolith-labs/ore:latest benchmark