L2 deposit example
The scripts in this example folder show how developers can interact with the Nahmii 2.0 L1 and L2. It shows how to get access to the AddressManager, retrieve addresses from some of our L1 deployed contracts and how to deposit Ethereum from L1 into L2. The files for this example can be found here.


  • NodeJS +v12
  • A L1 wallet with Ropsten Ether.

How to run the project

  1. 1.
    Open a command line terminal.
  2. 2.
    Run yarn to install all the dependencies.
  3. 3.
    Update the .env file with a private key. The main address should contain Ropsten Ether.
  4. 4.
    Run yarn demo to execute the scripts to interact with the Nahmii L1 and L2.


These demo tests by default are connecting the live service instances of Nahmii 2.0. To run these tests against a local instance, please refer to the environment variables defined in the ./native-eth/utils.js file.
Last modified 1mo ago