Skip to content

HqmmSam/SUI_META

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Miner for META and FOMO PoW on the Sui Blockchain

CLI miner expects you to have node.js installed of version >= 18 node.js

git clone https://gitlab.com/suidouble/sui_meta.git 
cd sui_meta
npm install

Upgrade miner version

git pull
npm upgrade

Run it

Miner supports both META and FOMO coins:

node mine.js --meta --chain=mainnet --phrase="secretphrase"
node mine.js --fomo --chain=mainnet --phrase="secretphrase"

or you can run it in the boss mode, mining both:

node mine.js --fomo --meta --chain=mainnet --phrase="secretphrase"

Where secretphrase is 24 words secret phrase for your wallet private key or private key in the format of "suiprivkey1....." ( you can export it from your Sui Wallet extension or use the one generated in Web Miner )

Please never share or disclose your secret phrase or private key. !!

Be sure you have some SUI in your wallet for the gas, 1 SUI is enough for submiting many hashes.

Combined mining of FOMO

If your goal is to reduce gas fees and increase mining profits, you can try combined mining. This approach creates multiple instances of the Miner object and processes several hashes in a single transaction, combining the results efficiently.

As an added bonus, it automatically merges FOMO coins on the fly, eliminating the need for you to manually merge them later

node mine.js --fomo --chain=mainnet --phrase="secretphrase" --combined=8

Merge META or FOMO coins

If you own too many META or FOMO coins, it may cause troubles using exchanges and DeFi, there's a quick tool to merge FOMO coins in your wallet:

node merge.js --meta --chain=mainnet --phrase="secretphrase"
node merge.js --fomo --chain=mainnet --phrase="secretphrase"

It merges up to 500 coin objects into single one. But you can run it few times, until it merges every META or FOMO you have.

Threads/CPU count

The miner attempts to utilize all available system resources. You can adjust the number of CPU threads it uses by modifying the workersCount setting in the config.js file. Change the value from auto to a specific number, such as 8, 24, or any other desired amount.

Set custom RPC

If you experience frequent timeouts with the public Sui RPC, you can try using a custom RPC. Simply add the configuration in the config.js file. Uncomment the one there and adjust:

"rpc": {
    url: 'https://sui-mainnet.g.allthatnode.com/full/json_rpc',
    headers: {
        "x-allthatnode-api-key": "xxxxxxxxxxxxxx",
    },
},

Please note that mining is a resource-intensive process. If you are using a premium RPC service, make sure to monitor your RPC usage with your provider dashboard.

Development fee

FOMO Miner contributes 1% of the hashes to the developer as a small way to support my work.

License

Apache

Please open-source your fork

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors