This guide explains how to start mining on the Intmax network using the intmax2 mining CLI. While the instructions below describe the process for the Base Sepolia testnet.
❗ Note: The tokens you receive through mining on the mainnet currently cannot be transferred to other addresses, but this feature will be enabled in the future.
🆘 Support: please join this with an anonymous account https://discord.gg/nByKNNhyvn
Before you begin, please ensure you have the following:
- Ethereum (ETH): A minimum of 0.5 ETH for testnet plus additional ETH for gas fees. Please refer to the guide to obtain testnet ETH.
- Alchemy or Infura API key: You need either an Alchemy or Infura API key. Please refer to this guide for Alchemy or this guide for Infura to obtain your API key.
- Withdrawal Private Key: The private key of the address you'll use to withdraw ETH and receive ITX tokens.(Instruction for Metamask here)
- Navigate to the Releases page of this repository.
- Download the ZIP file appropriate for your operating system.
- Extract the contents of the ZIP file.
-
Launch the CLI Double-click on the mining-cli shown in this image to launch.
NOTICE: If you're using a Mac, you may see a message saying "Cannot be opened because the developer cannot be verified" as shown in the image. In that case, you need to change your Mac's security settings by referring to this link: https://support.apple.com/en/guide/mac-help/mh40616/mac
-
Select Network: When you double-click the CLI, you'll see a screen like this:
You can move the cursor with the arrow keys and confirm with Enter
.
For this time, select base-sepolia (testnet)
.
-
Select Config File: If you're setting up the CLI for the first time, select
Create New Config
, which will guide you through setting up your mining account. If you've already configured it before, select config of choice. You'll see a screen like this:
❗ Note: When mining on Base, each config file can only link one deposit address to one withdrawal address. To use multiple deposit addresses, you'll need to create separate config files. If you've already set one up previously, you'll be able to select from existing config files.
If you choose Create New Config
, this is the setup process:
- Enter API key: Select
Alchemy
orInfura
and enter your API key which you obtained. Your API key will not be displayed. PressEnter
after pasting it.
- Configure settings for the mining process: Set
max gas price
,mining unit
, andmining times
. You can use the default values by pressingEnter
or pressingy
. You can also set your own values by pressingn
, then entering the desired values. We recommend using the default values.
Here is the explanation of each setting:
-
Max Gas Price: The maximum gas price allowed when executing transactions. Setting a higher value will cause undesirable funds loss.
-
Mining Unit: The amount of ETH to send in one deposit. The default is 0.1 ETH.
-
Mining Times: Specifies how many times to mine. The default is 10 times (for mainnet), 5 times (for testnet).
- Enter Withdrawal Private Key: Enter the private key of the address you'll use to withdraw ETH and receive ITX tokens. Your withdrawal private key will not be displayed. Press
Enter
after pasting it.
After entering the withdrawal private key, the address will be displayed. Confirm that the address is correct.
❗ Note: It is recommended to use an empty wallet as your withdrawal address. Make sure not to deposit directly into this address from the deposit address that would be generated for you during mining.
- Choose whether to encrypt the private key: Choose whether to encrypt the private key. Because the withdrawal private key will be stored in local storage, we highly recommend encrypting it. Press
y
orEnter
to encrypt the private key, orn
to store it in plain text.
- Enter a password for the private key: If you choose to encrypt the private key, you'll be asked to enter a password. Please enter a password of at least 12 characters.
-
Select Config: If you've already configured the CLI before, you'll see a screen like this:
You can select any of the config files to continue mining with that account.
-
Config Options: After selecting a config file, you'll see a screen like this:
Here is the explanation of each setting:
-
Continue: Continue mining with the existing settings in the config file
-
Overwrite: This allows you to clear existing settings and set new ones.
-
Modify: Modify some of the existing settings and change them, e.g, change withdrawal private key. Note that when using this method, mining times and mining unit cannot be changed.
-
Enter password for the private key: If you choose to encrypt your password during setup, you'll be prompted to enter it. This step is optional and won't appear if you didn't set a password.
- Select Mode: Choose from the following modes using the arrows key:
Mining
,Claim
,Exit
orExport
. For this time, selectMining
.
Here is the explanation of each mode:
-
Start Mining: performs mining by repeatedly executing deposits and withdrawals
-
Claim: claims available ITX tokens
-
Exit: withdraws all balances in intmax2 and cancels pending deposits
-
Export: exports the private key of the deposit addresses.
-
Check Update: shows your current version and checks for latest updates of the CLI.
For this time, please select Mining.
- Deposit ETH to your deposit address:
The mining process will begin.
The CLI will generate a deposit address and display it. In the first time, the deposit account does not have any balance. CLI will display the required amount of ETH to deposit (equals to (mining unit)*(mining times) + (gas fees for deposits)
). Please send the required amount of ETH to the deposit address.
- Mining Process:
CLI automatically deposits and withdraws ETH.
The mining process will pause if
-
the balance of the deposit address is insufficient: please send ETH to the deposit address
-
the network's gas price is higher than the max gas price setting: wait until the network's gas price drops or change the
max gas price
value. -
the number of
mining times
is reached: CLI will generate a new deposit address. Please send ETH to the new deposit address.
- Stop and Resume process:
You can safely close the CLI window or press ctrl + c
to stop the mining process. When you restart the CLI, you can resume the mining process by selecting Mining
mode.
❗ Note: After the number of mining time
is reached, Press any key to go back to the mode options. If you stop the mining process when there is a balance in the intmax2, you can withdraw the balance by running in Exit
mode, or you can continue the mining process by running in Mining
mode.
On testnet, the deposits eligible for ITX tokens are confirmed every day at 3 AM UTC. After that, you claim ITX tokens.
-
Select Mode: To claim ITX token, select
Claim
. You can check whether an deposit address is eligible for rewards in the "Qualified" column after selecting the mode.
-
Claim ITX Token To Withdrawal Address: If
Claim
was selected and your address qualifies for ITX tokens, the CLI automatically transfers your available ITX tokens to your withdrawal wallet immediately or when the token availablity time reaches. To see the tokens in your wallet, ensure to add the ITX token contract address to your wallet using the Network guide.
Check wallet to see tokens. Follow the CLI instructions and press any key to proceed.
You can retrieve the available ETH from the intmax2 Network to your withdrawal address.
Important: Avoid making direct or indirect transfers between deposit and withdrawal addresses. Depositing in a withdrawal address will disqualify it from receiving rewards during mining. Please refer to the README document for more information.
-
Select Mode: Select
Exit
to retrieve assets to withdrawal address.
-
Withdraw ETH To Withdrawal Address: When selected, any pending deposit would be cancelled and all ETH balance will be withdrawn to your withdrawal address.
❗ Note: If there are still ETH in your deposit address after this process, you can manually transfer ETH from deposit wallet to another wallet using the Export
mode below.
You can see the private keys of the deposit addresses. This is useful when you want to retrieve the balance of the deposit addresses.
-
Select Mode: Select
Export
mode.
-
Copy Deposit Private Key: Copy private key and import account into metamask using this guide.
-
Transfer in CLI: To transfer ETH balance inside the CLI instead, type yes and select
#0
or your account of choice if you have several deposit accounts.
-
Transfer ETH Balance: Paste the address to transfer ETH balance to.
-
Transfer in CLI: Approve transfer by typing
Yes
.
Repeat approval until ETH balance is insufficient. To end the process, press any key.
After withdrawal process is done, proceed by pressing any key as instructed by CLI.
- Select Mode:
Select
Check Update
to check if you are using the latest version.
- Confirm CLI Version: Your current version should be same as the latest release to mine. Navigate to the Releases page of this repository to see the latest available version.
To continue with other modes, press Enter
key on your keyboard.
- Select Mode:
Select
Check Update
to check if you are using the latest version.
- Confirm CLI Version: Your current version should be same as the latest release to mine. Navigate to the Releases page of this repository to see the latest available version.
To continue with other modes, press Enter
key on your keyboard.