Connect to GetBlock with MetaMask
Learn how to set up custom RPC URL on MetaMask for faster, more reliable, and secure blockchain interactions.
Last updated
Learn how to set up custom RPC URL on MetaMask for faster, more reliable, and secure blockchain interactions.
Last updated
© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.
MetaMask is a blockchain wallet available as a mobile application and a browser extension. It allows you to interact with Ethereum-based decentralized applications (dApps) directly from your browser.
Using GetBlock nodes with MetaMask makes your blockchain experience faster and more reliable than using default RPCs:
Connect directly to trusted nodes for secure transactions.
Enjoy quicker transactions and smoother dApp interactions.
Experience less downtime, even during busy network periods
This step-by-step tutorial will guide you through connecting GetBlock’s powerful nodes to your MetaMask wallet.
If you don’t already have MetaMask, download and install it from the official website: https://metamask.io/download.
MetaMask extension is officially supported on Chrome, Brave, Firefox, Microsoft Edge, and Opera browsers.
Generate a JSON-RPC URL for the selected network from your GetBlock account and copy it.
Rename your endpoints to clearly indicate their purpose.
If the network is already in your list but uses a default RPC provider, you can switch to GetBlock by following these steps:
Click on the current network name in MetaMask to open the dropdown of networks.
Open the ‘Default RPC URL’ dropdown and select 'Add RPC URL'.
Paste the JSON-RPC endpoint URL from your GetBlock account (https://go.getblock.io/<ACCESS_TOKEN>/
).
Name the new RPC URL for easier identification.
Click 'Add URL', then 'Save' to confirm.
You can now switch between RPC URLs for that network as needed.
If the network isn’t in your list, you can add it as a custom network. For this example, we will add the Polygon zkEVM to MetaMask.
Click on the current network name.
Select 'Add a custom network'.
Fill in the required fields:
RPC URL
The network's JSON-RPC URL from your GetBlock account
https://go.getblock.io/<ACCESS_TOKEN>/
Chain ID
The ID of the network
1101
Network name
Fetched automatically based on Chain ID
Polygon zkEVM
Currency symbol
Suggested automatically based on Chain ID
ETH
Block explorer URL
Optional field
https://zkevm.polygonscan.com/
Click 'Save', and the custom network will be added and selected as default.
You can get the Chain ID of an EVM-compatible network (e.g. Polygon zkEVM) sending a request to your endpoint with this curl command:
Find the network you want to edit and click the settings menunext to it. Select 'Edit'.