Anyblock Analytics is now Blockdaemon Germany! Read the news under our blog!
Oct 29, 2021

How to Use Anyblock RPC and Explorer in MetaMask

by

Icon article header
Metamask

MetaMask is a popular crypto wallet used to interact with the Ethereum blockchain within the browser and on your mobile phone.

This solution allows working with one of the built-in networks or adding a custom network. It is also possible to add a network from the default list but with custom settings.

Below we will explain how to add and test a custom network in MetaMask with the help of Anyblock tools: RPC endpoints and Anyblock Explorer. The Ropsten testnet will be used as an example.

You can also take a look at our MetaMask video tutorial showing how to connect to the xDai network via Anyblock.

 

Creating MetaMask and Anyblock Accounts

If you do not have a MetaMask account, install the MetaMask application for your device and follow the instructions.

To work with Anyblock tools, no matter if you just want to use the free service or have a paid service agreement, you need to register for an account.

You will also need an API key, which is automatically created when you confirm your registration. If for any reason you need a new API key, do the following:

  1. Go to the API Keys tab of your profile.
  2. Click on Create new API key.
  3. Fill in the Name, Valid Until, and, optionally, Domain fields.
  4. Click on Create key.

Adding a Network in MetaMask

The next step is adding a network in MetaMask:
  1. Go to your MetaMask account.
  2. Expand the list of networks on the top of the application.
  3. At the end of the list, select the Custom RPC option.
    (In a mobile app, go to Settings > Networks > Add Network.)
Network selection Metamask

Image: The network selection menu in MetaMask. Click to enlarge.

Then fill out the fields required to configure the network. For example, the settings of the Ropsten testnet may look like this:
  • Network Name: Ropsten
  • New RPC URL: https://api.anyblock.tools/ethereum/ethereum/ropsten/rpc/b59c2879-baae-4e32-9746-765bfe806509/
  • Chain ID: 3
  • Currency Symbol (optional): ETH
  • Block Explorer URL (optional): https://explorer.anyblock.tools/ethereum/ethereum/ropsten/
Custom network Anyblock RPC

Image: Adding the Ropsten testnet in MetaMask with Anyblock RPC. Click to enlarge.

Note 1. In the New RPC URL field, you should specify one of the ETH endpoints available to you in the RPC tab of your Anyblock account. Each URL contains a reference to a network and is expanded by your personal API key found in the API Keys tab.

Note 2. This identifier is unique for each network. To get the Chain ID of the selected network, look it up in MetaMask docs. You can also see the Networks section in Anyblock docs or check the network website.

Note 3. To get the URL for the Block Explorer URL field, go to Anyblock Explorer. The default network is Ethereum Mainnet. If you are going to work with another network, select a network from the drop-down menu in the upper part of the page and copy the URL of the web page.

Network selection Anyblock Explorer

Image: The network selection menu in Anyblock Explorer. Click to enlarge.

Note 4. You can always access and manage these settings:
  1. Click on the button in the right upper corner to open the My Accounts menu.
  2. Click on Settings.
  3. Go to the Networks tab and click on the network name.
Metamask Account Settings

Image: Account settings in MetaMask. Click to enlarge.

Testing the Connection and Using Anyblock Explorer

If you click the menu (three dots) in the upper right corner of the MetaMask application, you will see the View in Explorer button, which opens the information on your address in Anyblock Explorer.
Accessing address details

Image: Accessing Anyblock Explorer from MetaMask to view the address details. Click to enlarge.

To additionally test the connection to the network and Anyblock Explorer, you can perform a transaction with cryptocurrency. If you do not have any, use a crypto faucet to get a small amount of free crypto:
  1. Visit the Networks section in our docs.
  2. Select a network.
  3. Look for a faucet address in the Quick Facts table.
  4. Get the crypto.

Here you can get ETH in the Ropsten testnet.

The next step is performing a transaction in MetaMask. When it is complete, you will be able to see the details in Anyblock Explorer: click on the transaction in MetaMask and then click on the arrow in the upper right corner of the pop-up menu.

Transaction details Metamask

Image: Accessing transaction details in MetaMask. Click to enlarge.

Accessing Transaction Details Anyblock
Image: Accessing Anyblock Explorer from MetaMask to view the transaction details. Click to enlarge.
Transaction details Anyblock Explorer

Image: The transaction details in Anyblock Explorer. Click to enlarge.

Metamask Video Tutorial

For more information on using Metamask with Anyblock, you can watch our short tutorial below! It explains how to connect to the xDai network via Anyblock.

Video: How to use the Anyblock RPC and Explorer in MetaMask

Conclusion

Now you see how easy it is to work with Anyblock tools in MetaMask. Just complete a few simple steps, and you will be able to send transactions using our fast and reliable RPC access and view the details in Anyblock Explorer.
 
To learn more about how to use our block explorer, see the Anyblock Explorer guide.

Interested or questions?

 

Freddy Zwanzger
(Co-Founder & Chief Data Officer)
freddy@anyblockanalytics.com
+49 6131 3272372

    

Looking to create an Anyblock account?

Takes seconds and it's free!

Recent Posts

Anyblock Multi-Chain REST API for RPC & Data

Anyblock Multi-Chain REST API for RPC & Data

Anyblock REST API endpoints for RPC & data are a fast and reliable solution, which is available for more than 20 blockchains and does not require running your own node. You can view the list and description of all our endpoints in the Anyblock REST API docs.

In this article, you will find general information on Anyblock API and examples showing how to interact with it.

November Twitter Summary

November Twitter Summary

Hey there, developers! Anyblock Twitter Summary for the month of November is here.  Read it here or check out our Twitter account.Enjoy it!  Or just follow us directly if it's easier for you. Happy tweet-reading! :)? Most people believe they need to operate a...

This is the beginning of a new chapter…

This is the beginning of a new chapter…

We are super excited to announce that Anyblock Analytics GmbH will be spearheading the expansion of Blockdaemon Inc. in Germany! The corresponding contracts have been signed last week and closing is expected shortly as well.

Pin It on Pinterest