Operating Polygon zkEVM RPC nodes is simple with Moralis—the business’s #1 node supplier. Our intuitive person interface means that you can arrange a Polygon zkEVM node with only a few clicks. When you’re wanting to get began, right here’s a fast three-step breakdown of the total course of:
Step 1: Join free with Moralis.Step 2: Log in to the admin panel, go to the “Nodes” tab, click on the “+ Create Node” button, and configure your node:
Step 3: Copy and combine one in every of your RPC node URLs into your Polygon zkEVM undertaking:
![Red arrows pointing at the copy button for Polygon zkEVM RPC nodes URLs.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Copy-Node-URLs.png)
That’s it! Operating Polygon zkEVM nodes doesn’t need to be tougher than this when working with Moralis. When you’re searching for a extra in-depth tutorial, be part of us as we stroll you thru all the course of from begin to end in additional element.
Able to arrange your individual Polygon zkEVM node? Don’t overlook to enroll with Moralis. You may arrange an account without cost and achieve rapid entry to our top-tier node service!
Overview
Organising Polygon zkEVM RPC nodes from scratch is usually a daunting job. It requires a fancy infrastructure that’s each resource-intensive and time-consuming to ascertain. Moreover, since nodes are chain-specific, you have to arrange the required infrastructure for every community you propose to work together with. And for builders constructing cross-chain decentralized purposes (dapps), this could rapidly turn out to be expensive. Fortuitously, you’ll be able to keep away from these challenges with a node supplier like Moralis!
![Moralis logo.](https://moralis.io/wp-content/uploads/2024/06/Blog-Moralis-Logo-2.png)
At Moralis, we deal with all of the underlying complexities of working blockchain nodes for you. This lets you arrange your individual Polygon zkEVM node with only a few clicks, making all the course of a breeze. To study extra about how this works, be part of us on this tutorial. Let’s get began!
What’s Polygon zkEVM?
Polygon zkEVM, launched in 2023, is an modern and decentralized Ethereum layer-2 (L2) scaling resolution. By integrating two highly effective applied sciences—zero-knowledge proofs and the Ethereum Digital Machine—Polygon zkEVM gives a extremely scalable, safe, and user-friendly blockchain platform!
![Text: "Polygon zkEVM"](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes.png)
Polygon zkEVM makes use of cryptographic zero-knowledge proofs to bundle a number of transactions off-chain, later verifying them in a single batch on the Ethereum mainnet. This method considerably reduces the load on Ethereum, leading to larger throughput and far decrease transaction prices.
The community is totally EVM-equivalent, making it straightforward for builders emigrate present Ethereum dapps and good contracts to Polygon zkEVM. Moreover, builders can leverage a variety of present Ethereum improvement instruments, equivalent to wallets like MetaMask and programming languages like Solidity, to construct on the community. This compatibility improves the developer expertise and simplifies the creation of Polygon zkEVM-compatible tasks.
With this overview of Polygon zkEVM, let’s now discover the benefits of constructing on this modern community!
Advantages of Constructing on Polygon zkEVM
Constructing dapps on Polygon zkEVM gives a number of important benefits. Listed below are 4 key advantages:
Low Gasoline Charges: Polygon zkEVM’s off-chain transaction processing and zero-knowledge proofs lead to minimal transaction charges, offering a cheap resolution for each builders and customers. Excessive Throughput: By batching, a number of transactions could be verified concurrently, assuaging community congestion and considerably rising throughput. EVM Equivalence: Builders can simply transition to Polygon zkEVM, using their present information, abilities, and instruments from Ethereum. Enhanced Safety: Zero-knowledge proofs guarantee transaction integrity, bolstering the safety of the Polygon zkEVM platform.
What are Polygon zkEVM Nodes?
Put merely, Polygon zkEVM nodes are servers, computer systems, and different units collaborating within the community by performing many crucial duties. Some outstanding examples embrace processing transaction batches, broadcasting information, and storing data. These nodes are the spine of Polygon zkEVM, and by working in unison, they make sure the blockchain’s safety and environment friendly operation!
![Polygon zkEVM RPC nodes floating over a landscape.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-What-are-They.png)
So, how are Polygon zkEVM RPC nodes utilized?
Transaction Validation: Polygon zkEVM nodes validate transactions and propagate new blocks to the chain. These features are essential for sustaining the safety of the community. Knowledge Storage: Sure Polygon zkEVM nodes retailer an entire report of all transactions and good contract states. This complete storage allows anybody to confirm transactions, upholding the community’s integrity. Dapp Growth: Polygon zkEVM nodes permit builders to learn and write blockchain information, making them indispensable for Web3 improvement.
With this understanding of what Polygon zkEVM RPC nodes are, we’ll now present you the way to set one up seamlessly utilizing Moralis!
Introducing Moralis – The Trade’s #1 Node Supplier
Moralis is the business’s premier infrastructure supplier, providing nodes for 20+ blockchain networks. At Moralis, we care for all of the underlying complexities of working nodes, permitting you to effortlessly arrange a zkEVM node in a heartbeat utilizing our intuitive point-and-click interface!
![Text: "Free RPC Nodes for Polygon zkEVM"](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Moralis.jpg)
However why select Moralis as your node supplier?
Reliability: Moralis infrastructure and instruments are constructed to the very best reliability requirements, guaranteeing 99.9% uptime for all our nodes. Pace: Our top-tier nodes set the business benchmark for response occasions, beginning at simply 70 ms. Consequently, with Moralis, you obtain on-chain information immediately with none delays. Safety: Don’t danger your organization’s information. Select Moralis—the one SOC 2 Kind 2 licensed infrastructure supplier—and expertise the gold normal for enterprise-grade information safety.
Now that you’ve an summary of our node service, let’s take a more in-depth have a look at the way it works in follow!
3-Step Tutorial: Find out how to Set Up a Polygon zkEVM Node
As a way to run a Polygon zkEVM node, you’ll want a Moralis account. As such, earlier than you proceed, ensure that to register an account by clicking ”Begin for Free” on the high proper:
From right here, comply with the three steps beneath to arrange your Polygon zkEVM node:
Step 1: Log in, go to the ”Nodes” tab, and hit ”+ Create Node”:
![Red arrows pointing at the "Nodes" tab and "+ Create Node" button.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Create-Node-1-1024x413.png)
Step 2: Choose ”Polygon zkEVM” adopted by ”Mainnet”:
![Red arrows pointing at "Polygon zkEVM" and "Mainnet" during node configurations.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Configurations.png)
Step 3: Hit the ”Create Node” button:
![Red arrow pointing at the "Create Node" button during Polygon zkEVM node configuration.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Create-Node-Button.png)
That’s it! With Moralis, it’s straightforward to arrange Polygon zkEVM nodes!
From right here, you’ll be able to merely copy and combine one of many node URLs into your code to work together with Polygon zkEVM:
![Red arrows pointing at the copy button for Polygon zkEVM RPC nodes URLs.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Copy-Node-URLs-1024x412.png)
Find out how to Name Polygon zkEVM RPC Nodes
Now that you understand how to arrange a Polygon zkEVM RPC node with Moralis, we’ll additionally present you the way to work together with it utilizing the Ethers.js library. Extra particularly, we’ll display the way to fetch the native stability of any pockets!
Nevertheless, earlier than you get began with the tutorial, you have to care for the next conditions:
As soon as these conditions are met, we will proceed with the tutorial:
Step 1: Set Up a New Undertaking: Open your most popular IDE, create a folder, and initialize a brand new undertaking with the terminal command beneath:npm init
It’s best to then add “sort”: “module” to your ”bundle.json” file:
!["type": "module" highlighted in package.json file.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Type-Module.png)
Step 2: Set up Ethers.js: Open a brand new terminal and run the command to put in Ethers.js:npm set up ethers Step 3: Write Your Script: Create a brand new ”index.js” file and add the code beneath:import { ethers } from “ethers”;
const supplier = new ethers.suppliers.JsonRpcProvider(“YOUR_NODE_URL”);
const handle = “0x4943b0C9959dcf58871A799dfB71becE0D97c9f4”;
const stability = await supplier.getBalance(handle);
console.log(“Stability: “, ethers.utils.formatEther(stability)); Step 4: Code Configurations: Exchange YOUR_NODE_URL with one in every of your Polygon zkEVM node URLs and configure the handle parameter to suit your question:
![Red arrows pointing at YOUR_NODE_URL and address parameters in a code editor.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Code-Configurations.png)
Step 5: Run the Code: Execute the script by working this command within the terminal:node index.js
Once you run the code, you’ll get the native stability of the desired pockets. It is going to look one thing like this:
Stability: 0.9952705014199
Congratulations! You now know the way to make RPC calls to your Polygon zkEVM RPC nodes!
When you’re searching for a extra detailed breakdown of the steps above, that includes extra examples of the varieties of information you’ll be able to fetch utilizing your node, please watch the Moralis YouTube video beneath:
Limitations of Nodes
Whereas nodes mean you can each learn and write on-chain information, they aren’t all the time the best choice for querying the blockchain. To clarify why, let’s delve into three crucial drawbacks of utilizing nodes for this goal:
Chain Specificity: Nodes are tied to particular blockchain networks. Which means if you wish to construct cross-chain appropriate dapps, you should run a node for every chain you work together with. Question Complexity: Nodes can’t deal with advanced queries. For example, you can not instantly ask a node, “What tokens is pockets X holding?” As a substitute, you should make a number of requests and manually compile the info, which could be cumbersome and inefficient. Uncooked Knowledge: Knowledge retrieved from nodes is uncooked and unprocessed. To make it helpful, you should decode, interpret, and format it your self, which is each time-consuming and tedious.
![Polygon zkEVM RPC nodes connected.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Limitations.png)
So, how can we keep away from the challenges above and extra effectively question on-chain information?
Nicely, essentially the most easy various is to make use of a premier Web3 API supplier like Moralis. With our APIs, now you can question advanced, decoded on-chain information from 30+ blockchain networks with single traces of code. To study extra about this, be part of us beneath as we dive deeper into Moralis!
Past zkEVM RPC Nodes – Exploring Moralis’ Web3 APIs
Moralis is the business’s premier Web3 API supplier, and in our toolkit, you’ll discover over ten specialised interfaces for numerous use circumstances. Some outstanding examples embrace the Pockets API, Token API, and Streams API. As such, it doesn’t matter should you’re constructing a cryptocurrency pockets, token explorer, or some other Web3 platform; we’ve the instruments for you!
![Moralis logo.](https://moralis.io/wp-content/uploads/2024/05/Blog-Moralis-Logo-1.png)
However what makes our APIs stand out towards the competitors?
Complete: All our APIs are designed with the end result in thoughts. As such, when working with Moralis, you get extra information with fewer API calls, permitting you to construct dapps sooner and extra effectively. Cross-Chain: Our APIs are really cross-chain, supporting all main chains, together with Ethereum, Polygon, BSC, and plenty of extra. So, when leveraging Moralis, you’ll be able to seamlessly construct cross-chain dapps with out breaking a sweat. Safe: Expertise the gold normal for enterprise-grade information safety with Moralis—the one SOC 2 Kind 2 licensed Web3 infrastructure supplier.
When you’d prefer to discover our premier interfaces, please go to the Web3 API web page!
Moralis Success Tales
Now that you simply’re conscious of the advantages of utilizing Moralis’ Web3 APIs, let’s discover how our premier instruments have helped prospects obtain exceptional success. Listed below are three notable buyer success tales:
Changex: Changex is a private finance administration platform that enables customers to seamlessly handle each their crypto and fiat belongings in a single place. By leveraging Moralis’ Web3 API suite, Changex was capable of go to market in lower than a month:
![Changex quote.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Changex.png)
Kriptomat: Kriptomat, an Estonia-based fintech firm, goals to bridge decentralized and centralized finance by way of its cryptocurrency change. With Moralis’ assist, Kriptomat was capable of cut back prices by a formidable 94%:
![Chart showing how Kriptomat cut costs by 94% with Moralis.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Kriptomat.png)
MetaMask: As one of many largest pockets suppliers in Web3, MetaMask boasts over 30 million month-to-month energetic customers. MetaMask makes use of Moralis’ NFT API to effortlessly fetch NFT information for his or her portfolio resolution, permitting them to focus extra on constructing distinctive person experiences:
![MetaMask quote.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-MetaMask.png)
Abstract: Find out how to Run Polygon zkEVM RPC Nodes with Moralis
As a way to run Polygon zkEVM RPC nodes from scratch, you typically must arrange a fancy underlying infrastructure, which is each costly and tedious to ascertain. What’s extra, should you’re constructing cross-chain dapps, you’ll must undergo this bothersome course of for every chain you’re planning to work together with. Fortuitously, now you can keep away from the related complexities with a node supplier like Moralis!
![Polygon zkEVM RPC nodes connected over a purple landscape.](https://moralis.io/wp-content/uploads/2024/06/Blog-Polygon-zkEVM-RPC-Nodes-Summary.png)
With Moralis’ intuitive UI, now you can seamlessly arrange a node for all main chains—together with Polygon zkEVM—on the click on of a button. However why leverage our node service specifically?
Pace: Moralis’ nodes set the benchmark for response occasions, getting as little as 70 ms. This implies you’ll obtain the info you want with none delays. Reliability: Our node infrastructure is constructed to the very best reliability requirements, guaranteeing 99.9% uptime. Safety: Select Moralis and construct your Polygon zkEVM dapps with the one SOC 2 Kind 2 licensed Web3 node supplier.
When you favored this Polygon zkEVM RPC nodes tutorial, think about studying extra guides right here on the weblog. For example, try our newest article on ZetaChain RPC nodes, discover ways to arrange Base nodes, or discover the intricacies of Ethereum nodes.
Additionally, should you want to arrange your individual Polygon zkEVM node, don’t overlook to enroll with Moralis. You may register your account freed from cost, and also you’ll achieve rapid entry to our premier APIs and node service!