Crates.io | ore-cli-2rpc |
lib.rs | ore-cli-2rpc |
version | 0.1.3 |
source | src |
created_at | 2024-04-11 17:23:02.317019 |
updated_at | 2024-04-15 14:22:50.628147 |
description | A command line interface for the Ore program with 2 rpcs. |
homepage | |
repository | |
max_upload_size | |
id | 1205141 |
size | 177,001 |
A custom command line interface for the Ore program that utilizes 2 rpcs, one for sending the sendTransaction method, the other one to do all the rest. (Actually using v0.4.10 ore cli version)
To install my custom Ore CLI, you will need to have the Rust programming language installed. You can install Rust by following the instructions on the Rust website.
curl https://sh.rustup.rs -sSf | sh
If you don't have Solana client installed yet, run the following commands
sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)"
Install the ore client 2 rpc
cargo install ore-cli-2rpc
Use the command ore2rpc instead of ore.
This custom ore client accept one more option that is the rpc2 option. The rpc2 option will be the rpc who will receive the sendTransaction method. The other rpc will receive all the others request like getSignaturesStatuses, getLatestBlockHash, getVersion, etc...
You can use the same rpc in both variables
$rpc1="url_rpc_1"
$rpc2="url_rpc_2"
ore2rpc \
--rpc $rpc1 \
--rpc2 $rpc2 \
--keypair ~/.config/solana/id.json \
--priority-fee 10000 mine \
--threads 4
Expect around ~2500 requets per hour for one command.
You can add the speed-mode (optionnal) option to increase or decrease the sending rate to your rpc. There is, at the moment, 3 modes slow, normal, or fast.
I will suggest that you use slow mode if you have free rpcs, normal mode if you have cheap plan rpcs, fast mode if you have expensive plan rpcs.
$rpc1="url_rpc_1"
$rpc2="url_rpc_2"
ore2rpc \
--rpc $rpc1 \
--rpc2 $rpc2 \
--keypair ~/.config/solana/id.json \
--priority-fee 10000 mine \
--threads 4 \
--speed-mode "slow"
This project is developed by me and I am not a professional Rust developer, so use with caution. Always monitor your rpc credits.
I am accepting donations and tips at this solana adress (ORE, SOL, USDC) : AwdcrnSqdzdEdsGkx2f2zxNA4dENBDjMdpBtMtVDCrKc