You will need to set up a wallet to access tNRG (testnet NRG) and synthetic token(s) to test Energiswap. This is a step-by-step guide on how to add the MetaMask extension to Chrome. It also describes how to set up the Energi Test Network (Testnet) and synthetic tokens on MetaMask. Once you set up the tokens, it will allow you to swap between pairs of tokens and provide liquidities to a pair.
1. Add MetaMask Extension to Chrome Browser
1.1. Open the Chrome browser and click on the three vertical dots at the top right corner of the browser. Select “More tools → Extensions”
1.2. Click on the 3 horizontal bars to see the drop-down menu.
1.3. Select “Open Chrome Web Store”
1.4. In the “Search the store” field, type “Metamask” and press enter.
1.5. Select the MetaMask extension.
1.6. Click “Add to Chrome” to add the MetaMask Extension.
1.7. Select “Add extension”
1.8. Wait until Chrome finishes “Checking…”
1.9. Click “Get Started”
1.10. Click “Create a Wallet”
1.11. Select one of the options to continue.
1.12. Enter a new password, check the agreement, and click “Create”
1.13. Click the padlock to reveal the secret password.
1.14. Copy the secret words to a text editor and safely store the file. Click “Next”
1.15. Pick all the secret words in the order and then click “Confirm” to continue.
1.16. Congratulations! You have added the MetaMask extension to Chrome. Click “All Done” to continue.
2. Test Networks (Testnet)
You will need to set up at least 2 assets to test EnergiSwap. The following sections will help you set up the networks and get a test account on the network.
2.1. On MetaMask, click the account icon adjacent to the network dropdown menu.
2.2. From the drop-down menu, select “Settings”
2.3. In the Settings page, select “Networks” and click the “Add Network” button in the top right.
2.4. Copy and Paste this data into the fields on the Setup page:
Network Name: Energi Testnet
New RPC URL: https://nodeapi.test.energi.network/v1/jsonrpc
ChainID: 49797
Symbol: NRG
Block Explorer URL: https://explorer.test.energi.network/
Click “Save” to create the Energi Testnet network.
2.4.1. Validate that the “Energi Testnet” has been created. You will see the network as indicated in the screenshot below.
Note: After adding the custom Energi Testnet network, it’s possible that you might still see your fees being calculated in “ETH”, as well as the Ethereum Icon () instead of NRG (
). The reason this happens is due to MetaMask automatically pulling data for Ethereum by default. You do not need to worry about spending any ETH you might have, as long as you followed the previous steps to connect to the Energi Testnet network. We have already reached out to MetaMask to include native support for NRG.
3. Add eETH Token
3.1. Login to MetaMask. Verify you are on “Energi Testnet” (#1). Click “Add Token”
3.2. Click “Custom Token”
3.3. From the table below copy the Contract Address of the token you want to create. You only need to create the tokens you want to test: we will use eETH as an example.
Token | Contract Address | Precision |
eETH | 0x01a5534f82Ab54e1F37Ee585F3049Cf8B80f79A4 | 18 |
eBTC | 0x6EAdB8BA9b1054fC7D82B4129EbBEFF807852190 | 18 |
eDAI | 0x3e798553502042088783B83e4B62e22152E8717e | 18 |
WNRG | 0x184F7b12f29d675f34ff816528ADBfd0E0501Ad4 | 18 |
3.4. Paste the eETH Contract Address in the box. It will populate the “Token Symbol” and “Decimals of Precision” fields. Click “Next” after these populate.
3.5. Click “Add Tokens”
3.6. Click < to go back to the main Account page. You should now see the token listed in your account.
3.7. Repeat steps above to add the remaining tokens (optional).
4. Request Testnet NRG (tNRG)
4.1. Copy the address to the clipboard by clicking on it. This address will be used in testnet.
4.2. If you need testnet NRG (tNRG), click the help icon on the bottom right of the Energi DeFi Support page.
4.3 Select Testnet NRG (tNRG) Request form
4.4 Fill in the information and then click "Send". Include the testnet address from Section 4.1 above. We will send you tNRG to the testnet address provided.
5. Swap Tokens or Add Liquidity to Pool
For details on how-to swap tokens or add/remove liquidity to the Energiswap pool, go to: