Development-Envirnoment
If you are an Ethereum developer, you're also a Nahmii developer, as the tools used on Ethereum are supported on Nahmii; Remix, Web3js, OpenZeppelin, Hardhat, etc. Make the switch to Nahmii's RPC and get started.
Nahmii Test Network connects with Ethereum's Rospten Testnet, and all network-related details can be found here.
Setup Metamask Wallet
Deploy your contracts on Nahmii using
Setting up the development environment
Via Hardhat
There are a few requirements, please install the following to get started:
Node.js v12+ LTS and npm
Git
Install the NVM Hardhat plugin.
Edit
hardhat.config.js
to use the NVM package.
In the file, add
nahmii
to the list of networks. Note: Update the accounts fields to fit your personal setup.
To test contracts on the live Nahmii L2, compile it with HardHat.
To interact with the smart contracts manually, use the console. The JavaScript console can be run with the following command.
To deploy to Nahmii, write a deploy script for HardHat (https://hardhat.org/guides/deploying.html) and run the following command.
Via Remix
Remix is an online IDE to develop smart contracts
Configuration
In a new remix workspace, navigate to the
PLUGIN MANAGER
.Activate the
OPTIMISM COMPILER
.A new compiler tab will show up. Select a Solidity file to compile. Be sure to select the correct compiler version for your smart contract.
Running a Node
Last updated
Was this helpful?