Skip to Content
Welcome to RitoSwap's documentation!
Local BlockchainWallet Configuration

Wallet Configuration

Connect wallets like MetaMask to your Local Blockchain for testing transactions and dApp interactions.

MetaMask Setup

Add Network

  1. Open MetaMask
  2. Click network dropdown → “Add Network” → “Add Network Manually”
  3. Enter these details:
FieldValue
Network NameLocal PoA (or any name)
RPC URLhttp://localhost:8545
Chain ID90999999 (or your LOCAL_CHAIN_ID)
Currency SymbolETH (or any symbol)
Block Explorer URLhttp://localhost:4000

You can also replace “localhost” with your local DHCP IP address if your on a separate device than what is running Geth and Blockscout as long as they are on the same wi-fi.

Important: The Chain ID must match your LOCAL_CHAIN_ID from your .env that was used to produce the first genesis block with the genesis.json file. If you changed the .env or genesis.json after generating the genesis block, the system still only recognizes the value used during that genesis block’s creation. Other fields are cosmetic.

Import Accounts

Import Validator Account

  1. Get private key: pnpm run reveal:key
  2. In MetaMask: Menu → “Import Account”
  3. Select “Private Key” and paste
  4. This account has 10,000 ETH for gas

Use Test Account

The pre-funded test account from .env:

  • Default: 0xee1520c50f0ee31a37fd9699db29b69565c9eda9
  • Has 10,000 ETH balance
  • Import via private key if you have it

Other Wallets

Most Ethereum wallets support custom networks:

Trust Wallet

  • Settings → Networks → Add Custom Network
  • Use same RPC and Chain ID

WalletConnect

  • Works automatically once MetaMask is configured
  • Ensure Chain ID matches exactly

Hardware Wallets

  • Connect through MetaMask or MyCrypto
  • Set custom network before signing

Connection Verification

After adding the network:

  1. Switch to your Local Blockchain in wallet
  2. Check ETH balance appears
  3. Try sending a test transaction
  4. Verify on Blockscout: http://localhost:4000

Troubleshooting

”Wrong Network” Errors

  • Verify Chain ID matches exactly
  • Clear wallet cache/activity data
  • Re-add network

No Balance Showing

  • Ensure node is running: pnpm run status
  • Check correct account is selected
  • Verify address in genesis has funds

Transaction Failures

  • Check node is mining: pnpm run geth:attach then miner.start()
  • Ensure sufficient gas price (1 gwei minimum)
  • Verify account has ETH for gas

Block Explorer Integration

Blockscout URL in wallet settings enables:

  • Click-through from wallet to explorer
  • Transaction status tracking
  • Contract interaction history
  • Token balance verification