Tools & Automation RivETH v1.7.4

Injected Providers

To test how your contracts behave with real browser signature prompts and gas dialogs, RivETH supports Injected Web3 Providers—allowing you to seamlessly connect wallets such as MetaMask or Frame alongside your local Hardhat provider.

Connecting MetaMask to RivETH via an injected provider.
Connecting MetaMask to RivETH via an injected provider.
Internet Connection Required for Browser Wallets
While core RivETH features work fully offline after installation, browser wallet extensions such as MetaMask require connectivity to initialize and prompt signatures.

1. Configuring Your Wallet

Add a custom network in MetaMask or Frame pointing to your running local Hardhat node:

Custom Network Settings
Network Name
Hardhat Local
RPC URL
http://127.0.0.1:8545
Chain ID
31337
Currency Symbol
ETH

Next, import a pre-funded test account into your wallet by copying one of the private keys printed by npx hardhat node into your wallet's Import Account panel.

2. Connecting & Disconnecting

Toggle between internal Hardhat accounts and your injected wallet at any time:

  • Connect: Press I to request a wallet connection. Once approved, your browser wallet address becomes the active signer.
  • Disconnect: Press I again while connected to switch back to RivETH's internal Hardhat accounts.

3. Connection Status

Verify your active signer mode from the status indicator next to the Accounts dropdown:

  • Connected (Green): Injected Provider is active. Hover the indicator to inspect connected account details.
  • Disconnected (Red): RivETH is using its internal Hardhat development accounts.
Why Test With Injected Wallets?
Testing through MetaMask or Frame verifies gas estimation prompts, user signature approvals, and network mismatch handling that automated local signers do not surface.