// Get references to the pop-up container and close button // Function to calculate the difference in days between two timestamps // Function to show or hide the popup based on visit history and closing action // Check if the popup has been closed before const popupClosed = localStorage.getItem('popupClosed'); // Boolean value stored as string // If the popup hasn't been closed, show it immediately popupContainer.style.display = 'flex'; // Show the pop-up sliderAdvertisement.style.display = 'none'; // Hide the slider while the pop-up is shown }, 5000); // Show after 5 seconds // Now apply the timing logic after the user has closed the popup // Calculate the days since the popup was last shown let showPopup = false; // Flag to track whether we should show the popup // Determine if the popup should be shown: // - First time visit (no lastShown value) // - Shown once per day for 3 days // - After 3 days, show every 3 days popupData.lastShown === null || // First time visitor (popupData.timesShown < 3 && daysSinceLastShown >= 1) || // Show once a day for first 3 days (popupData.timesShown >= 3 && daysSinceLastShown >= 3) // Show once every 3 days afterward showPopup = true; // The popup should be shown // Show the popup after 5 seconds popupContainer.style.display = 'flex'; // Show the pop-up sliderAdvertisement.style.display = 'none'; // Hide the slider while the pop-up is shown // Update popupData and store it // Show the slider if the popup is not shown // Ensure elements exist before using them // Call the function to handle popup display logic // Add click event listener to the close button popupContainer.style.display = 'none'; // Hide the pop-up sliderAdvertisement.style.display = 'flex'; // Show the slider advertisement when pop-up is closed localStorage.setItem('popupClosed', true); // Set popup as closed in localStorage // Reset timing logic after the popup is closed timesShown: 0 // Reset counter for daily/3-day logic

How to add Avalanche to MetaMask

How to add Avalanche to MetaMask

Share:

Maximize Gains, Minimize Effort – Only on CrowdSwap DEX

Seamless Swaps, Crosschain Transactions, and Exciting Opportunities.

How to add Avalanche to MetaMask
Table of Contents

Share:

How to add Avalanche to MetaMask

When the high speed of transactions is concerned, the Avalanche project is one of the very best nominees. Avalanche is the first smart contract platform that validates transactions in less than a second. But the attractiveness of this project is not only limited to its speed, but it enjoys a high level of security because to be hacked, taking the control of over 80% of validators will be needed. The unique architecture of Avalanche helps it have high scalability compared to other blockchain networks. The speed and scalability features help develop and run decentralised applications (dApps) like games.

How to add Avalanche to MetaMask

MetaMask is one of the most popular cryptocurrency wallets out there, because of its outstanding features. Being a gateway to the Web 3 ecosystem of dApps, you can connect it to different blockchain networks. Features like easy integration, ease of use, and wide compatibility with different platforms are only a few reasons why many users prefer it over other wallets. According to Bloomberg, MetaMask is the most popular non-custodial wallet, with 30 million users.

Steps to add Avalanche to MetaMask

To be able to run dApps on the Avalanche network, you need to first add the Avalanche Mainnet to your MetaMask wallet. There are three methods to do it, which will be covered in this article. Before going any further, you will need to download and install MetaMask for Chrome to follow this tutorial. If you need help installing MetaMask, you can read this article and follow steps 1 and 2. Let’s jump into the first and the easiest method.

This method is done through the CrowdSwap App and is very convenient, therefore, it is highly recommended.

Step 1. Go to this address: https://app.crowdswap.org/.

Step 2. Wait for the page to fully load and a pop-up will show up, prompting you to connect your wallet.

Connect Wallet and choose MetaMask

*If the pop-up doesn’t show, click on Connect Wallet and choose MetaMask.

click on Connect Wallet

Step 3. Click on the network dropdown and choose Avalanche.

Click on the network dropdown and choose Avalanche

Step 4. Click on Change network.

Click on Change network

Step 5. Scroll down to click on Approve.

Scroll down to click on Approve

Step 6. Confirm by clicking on Switch Network. 

Switch Network

Congratulations! You have now successfully added Avalanche to MetaMask. Apart from this method, there are two other procedures to add Avalanche Chain to your wallet.

Method 2

Step 1. Go to this address: https://avascan.info/ . This is the official website of Avalanche Network.

Step 2. On the top bar of the page, click on the MetaMask icon, which is greyed out.

On the top bar of the page, click on the MetaMask icon, which is greyed out

Step 3. Enter your MetaMask password in the MetaMask notification pop-up window.

Enter your MetaMask password in the MetaMask notification pop-up window

Step 4. Scroll down to click on Approve.

Scroll down to click on Approve

Step 5. Confirm by clicking on Switch Network

Confirm by clicking on Switch Network

Congratulations! You have now successfully added Avalanche Network to MetaMask. Now, the MetaMask icon that was greyed out in Step 1, turns colour. If you open your wallet, you should see the following window.

If you open your wallet, you should see the following window

Method 3 (Manual)

Step 1. On the top of your MetaMask, click on the network drop-down.

On the top of your MetaMask, click on the network drop-down

Step 2. Click on Add Network.

Click on Add Network

Step 3. Enter the following data in the new window.

Network NameC-Chain
Network URLhttps://api.avax.network/ext/bc/C/rpc
Chain ID43114
Currency SymbolAVAX
Block Explorer URLhttps://avascan.info/blockchain/2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5/

Step 4. Click on Save.

Click on Save

Now, your MetaMask wallet should be connected to Avalanche Network.

Master Crypto with Confidence

CrowdSwap's decentralized exchange offers all the DeFi tools you need, with top-notch support at your fingertips

Conclusion

In this article, we introduced three methods to add Avalanche to MetaMask. All three are essentially the same, except that in the first and second methods, entering the data is done automatically for you, while in the third method, you need to enter the same data manually. Either way, make sure you find the data to be entered from a reliable source.

Get Ahead of the Curve – Subscribe for CrowdSwap Updates & Offers!

Join our newsletter to get the latest news, trading tips, and special offers straight to your inbox!

CrowdSwap Newsletter

Ready to Supercharge Your Financial Knowledge?

Drop your email, and we'll deliver the Ultimate DeFi Guide straight to your inbox! πŸš€