This guide provides step-by-step instructions for INTMAX Block Builders to claim their earned rewards. As a Block Builder participant in the INTMAX network, you can receive two types of rewards: user fees collected from transactions processed in your blocks, and ITX tokens distributed through the reward program.
This document covers the complete process from initial setup to reward claiming, including how to:
You can claim your rewards using the command-line tool provided in the repository below:
https://github.com/InternetMaximalism/intmax2
First, clone the repository using:
git clone [email protected]:InternetMaximalism/intmax2.git
cd intmax2
Next, set up your environment variables in the cli/.env
file. Specifically, you'll need an RPC URL, which you can obtain by creating an account with providers such as Alchemy or Infura and generating an API key.
ENV=staging
IS_FASTER_MINING=false
INDEXER_BASE_URL=https://stage.api.indexer.intmax.io
STORE_VAULT_SERVER_BASE_URL=https://stage.api.node.intmax.io/store-vault-server
LOCAL_BACKUP_PATH="data/testnet_beta"
STORE_VAULT_TYPE="remote_with_backup"
BALANCE_PROVER_BASE_URL=https://stage.api.private.zkp.intmax.io
USE_PRIVATE_ZKP_SERVER=true
VALIDITY_PROVER_BASE_URL=https://stage.api.node.intmax.io/validity-prover
WITHDRAWAL_SERVER_BASE_URL=https://stage.api.node.intmax.io/withdrawal-server
WALLET_KEY_VAULT_BASE_URL=https://slxcnfhgxpfokwtathje.supabase.co/functions/v1/keyvault
DEPOSIT_TIMEOUT=180
TX_TIMEOUT=80
BLOCK_BUILDER_QUERY_WAIT_TIME=5
BLOCK_BUILDER_QUERY_INTERVAL=5
BLOCK_BUILDER_QUERY_LIMIT=20
LIQUIDITY_CONTRACT_ADDRESS=0x81f3843aF1FBaB046B771f0d440C04EBB2b7513F
ROLLUP_CONTRACT_ADDRESS=0xcEC03800074d0ac0854bF1f34153cc4c8bAEeB1E
WITHDRAWAL_CONTRACT_ADDRESS=0x914aBB5c7ea6352B618eb5FF61F42b96AD0325e7
REWARD_CONTRACT_ADDRESS=0x7f7a7734f74970bf8c5ca0ee0b6073f2e8dc5e30
L1_RPC_URL="<https://eth-sepolia.g.alchemy.com/v2/your_api_key>"
L2_RPC_URL="<https://scroll-sepolia.g.alchemy.com/v2/your_api_key>"
Once you've completed these setup steps, execute the following commands step-by-step:
Step 1: Generate INTMAX keys from your Ethereum private key
cargo run -r -- key-from-eth --eth-private-key <eth-private-key>