Interacting with a Contract
RivETH generates a live interaction interface directly from your compiled ABI—adapting automatically between contract deployment and post-deployment function calls.
1. Loading the Contract
Enter your Contract Name and click Load (or press L). RivETH fetches the ABI and bytecode from artifacts/. Whenever you
edit and recompile a contract, click Load again to pull the latest build.
2. Deployment & Constructor Parameters
If your contract defines a constructor, RivETH enables the constructor argument field prior to deployment:
-
Single Constructor Input
Constructors use a single input field regardless of how many parameters they accept.
-
Comma-Separated Arguments
Separate multiple constructor arguments with a comma and a space, e.g.
"TokenName", "TKN", 18. -
Strings, Bytes & Addresses in Constructors
Wrap strings, bytes, and addresses in double quotes inside the constructor field, e.g.
"0x123...". -
Arrays
Use square brackets with comma-separated elements, e.g.
["0xAbc","0xDef"].
3. Calling Contract Functions
Once deployed, RivETH renders a button and dedicated parameter inputs for every function in your contract. Function inputs are color-coded by Solidity state mutability:
- Blue Buttons: Non-payable
vieworpurefunctions (read state, zero gas). - Orange Buttons: State-changing functions (write state, consumes gas).
- Red Buttons:
payablefunctions — use the Value field to attach ETH.
4. Account Selection
Select any of the 20 pre-funded Hardhat accounts from the Accounts dropdown.
RivETH tracks each address and live ETH balance so you can switch msg.sender signers instantaneously when testing role-based permissions.
5. Keyboard Shortcuts
Navigate the dashboard rapidly without leaving your keyboard:
| Shortcut | Action |
|---|---|
| L | Load compiled contract ABI & bytecode |
| D | Deploy the loaded contract |
| C | Launch the ETH / Wei unit converter |
| A | Switch active Hardhat account |
| M | Open the RivETH main menu |
| E | Launch RivETHScan local block explorer |
| I | Connect or disconnect Injected Web3 Provider |