Remix is an open-source Solidity IDE that runs in the browser. It compiles, debugs, and deploys without anything installed locally. Because Hedera is EVM-compatible, the same Remix workflow you’d use against Ethereum works against Hedera once MetaMask is pointed at the JSON-RPC relay. The rest of this page walks through that workflow end-to-end.Documentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-chore-hide-placeholder-pages.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
MetaMask configured for Hedera Testnet
Network
Hedera Testnet, RPC https://testnet.hashio.io/api, Chain ID 296.Testnet HBAR
A small amount of testnet HBAR to pay for deployment.
Step 1: Open Remix
Go to remix.ethereum.org. Accept the default workspace if it asks. The left sidebar gives you a File Explorer, the Solidity Compiler, and the Deploy & Run Transactions panel.Step 2: Write a contract
In File Explorer, createcontracts/HelloHedera.sol and paste:
Step 3: Compile
- Open the Solidity Compiler tab.
- Set the compiler version to
0.8.22(or anything that satisfies thepragma). - Click Compile HelloHedera.sol. Green checkmark means success.
Step 4: Connect MetaMask
- Switch to the Deploy & Run Transactions tab.
- In the Environment dropdown, pick Injected Provider - MetaMask.
- MetaMask asks to connect. Approve.
- The Network field should read
Custom (296) network. That’s Hedera testnet.
Step 5: Deploy
- Confirm the CONTRACT dropdown shows
HelloHedera. - Click the orange Deploy button.
- MetaMask prompts to confirm the transaction. Review the HBAR gas fee and click Confirm.
- The contract appears under Deployed Contracts at the bottom of the panel after a few seconds.
Step 6: Interact with the contract
Expand the deployed contract under Deployed Contracts. You get a blue read-only message button that returns the current value at no gas cost, and an orange updateMessage field that writes a new value (this one costs gas). Click message to see the initial value. Type something into updateMessage and call it. Confirm the MetaMask popup. Click message again to see the new value.Step 7: View on HashScan
Copy the contract address from the Deployed Contracts panel and open:When to reach for Remix
| Use case | Tool |
|---|---|
| Quick prototyping, single contract | Remix |
| Reproducible deploys, tests, scripts | Hardhat or Foundry |
| Guided UI for ERC-20 / ERC-721 templates | Contract Builder |
| Cross-chain libraries (LayerZero, CCIP) | Hardhat. Remix’s import resolution gets shaky |
See also
Contract Builder
Browser-based deploys without writing any Solidity yourself.
Hardhat
Move your Remix contract into a Hardhat project for tests and CI.