tonyke-bot / ore-miner

ORE Miner built on top of Jito bundle with both CPU and GPU support.
457 stars 211 forks source link

Add Collect Function for Remaining Balance #22

Closed Umiiii closed 3 months ago

Umiiii commented 3 months ago

Description

This pull request introduces a new collect function that allows users to collect the remaining balance from their account while considering transaction fees. The collected balance will be transferred to a specified beneficiary address, and the transaction fees will be paid by a separate fee payer account.

Usage

To use the collect function, run the following command:

cargo run --release -- --rpc {your_rpc} collect --key_folder {your_key_folder} --beneficiary {your_beneficiary_address} --fee-payer {fee_payer_keypair}
{your_rpc}: Replace with the URL of your RPC endpoint.
{your_key_folder}: Replace with the path to your keypair file.
{your_beneficiary_address}: Replace with the address of the beneficiary account where the remaining balance will be transferred.
{fee_payer_keypair}: Replace with the path to the keypair file of the fee payer account.
Umiiii commented 3 months ago

I