Test Drive zkSync Hyperchain on Zeeve’s Fully Powered Demo Network
Tags: zksynchyperchains, rollups
Published: 2024-05-13 08:18:21

<p>ZkSync Hyperchains is one of the powerful rollup frameworks that claims to represent the end game for Ethereum scaling. For those who are building their own hyperchain, testing becomes an important aspect of ensuring a flawless operation. What if you could access a network that is a simulation of the real ZkSync Hyperchain setup, just for the purpose of understanding the hyperchain’s configurations, integrations, and also testing can be done. That’s where Zeeve’s zkSync Hyperchain Demo Network comes into the picture. This demo sandbox is designed to allow developers and users to interact with a fully functioning zkSync hyperchain setup, test its functionalities, and thereby understand how a real network exactly looks like.&nbsp;</p>
<p>Through this article, we dive into the <a href="https://app.zeeve.io/auth/signup?serviceURL=https://app.zeeve.io/zksync-hyperchains-zkrollups">zkSync Hyperchain Demo Network on Zeeve</a> to learn how you can get hands-on expertise on a hyperchain’s various aspects without creating a network of your own.&nbsp;</p>
<h2 class="wp-block-heading" id="h-a-walkthrough-of-zksync-demo-network-offered-by-zeeve-raas-nbsp">A walkthrough of zkSync Demo Network offered by Zeeve RaaS&nbsp;</h2>
<p>The zkSync hyperchain’s demo network is one of the core offerings of Zeeve Rollups-as-a-service (RaaS) offerings, which is a sandbox environment designed to offer a pre-configured DevNet. It allows developers and web3 projects to explore a fully-functioning zkSync network and meanwhile see how their chain will look like. Further, they can set up their own DevNet after learning all the essentials. Note that this demo zkSync hyperchain is shared and accessible to every user. If you want custom configurations specific to your chain, you can quickly <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">deploy a zkSync hyperchain</a> from the same dashboard.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/talk-to-an-expert/"><img src="https://www.zeeve.io/wp-content/uploads/2024/05/Build-your-custom-zkSync-Hyperchain-at-lower-cost-with-us-1024x213.jpg" alt="zkSync Hyperchain Demo Network on Zeeve " class="wp-image-67354"/></a></figure>
<p>Zeeve’s zkSync hyperchain demo network is not merely a simulation of a static network. Rather, it provides you hands-on access to a fully powered DevNet where you can interact with components such as RPC nodes &amp; its endpoints to interact with the network, perform bridge operations, view smart contract and wallet transactions on the explorer, download necessary files to use in further development, and much more.&nbsp;</p>
<h2 class="wp-block-heading" id="h-what-all-things-you-can-do-with-the-zksync-hyperchain-s-demo-network">What all things you can do with the zkSync Hyperchain’s demo network?</h2>
<p>Let’s discuss all the things Zeeve’s zkSync Hyperchain Demo Network has to offer. Also, we will explore the interactions enabled in this setup- for example– viewing transactions on explorer, making RPC calls, or interacting with the bridges.&nbsp;</p>
<li><strong>Get complete overview of the zkSync Hyperchain:</strong></li>
<p>Upon login, you will see a zkSync Hyperchain’s overview page has all this pre-configured demo network, such as Network’s name, Chain ID, Network Type, Status; deployed or synching, infrastructure provision time, etc.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vq2l15x32wh2jfowwmb.png)
<p>Also, you will see similar details about Layer1- Ethereum Sepolia’s, such as Network name, Chain ID, Deployer Balanche, Governor Balance, and ETH Operator Balance.&nbsp;</p>
<p>Other details are also there, like node count, cloud infrastructure info, and alerts. Note that, alerts on this demo setup are produced in real-time and it also gets solved automatically. Hence, you won’t see any alerts listed here.</p>
<li><strong>Inspect all the configurations at one-place:&nbsp;</strong></li>
<p>For a successful deployment, you must understand all configurations running in the backend of a hyperchain. Hence, the demo network shows a dashboard with general configuration, block-level configuration, and transaction configuration. This default configuration will help you to understand what type of configuration you may need to set up your own chain. Also, you can download the zkSync Hyperchain Env file from here.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/55jyugx92uzhj24n5cfm.png)
<li><strong>Interact through the Bridge:</strong></li>
<p>The demo network of zkSync Hyperchain comes with a native bridge that you can use to perform bridge operations, such as sending or receiving funds/tokens between Layer1 and Layer2 chains.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jyt6r43niy1o12uzrdz5.png)
<p>To do this, navigate to the Bridge and click on the Bridge URL (as you can see in the above image) and connect any of your Ethereum wallets. For example, we are using Metamask’s browser wallet.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fttmlg38e7pf2fwsuoei.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d0uvqqkhneyxfrxx92xi.png)
<p>For interaction, let’s receive some tokens in the demo account from the Ethereum Sepolia network.&nbsp;</p>
<p>Click on ‘Assets’ and proceed to add funds. Click on Receive—&gt;select official bridge—&gt;choose your account address. In our case, the balance on the Sepolia network is 0.05 and we are sending 0.01 to the Demo network.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0zqk5stt7o278xxlo1at.png)
<p>Click continue and confirm transactions from your Metamask wallet. Once confirmed, the balance will reflect in your demo account under ‘Assets’.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esxx67iz94c4t457nzfn.png)
<li><strong>Make seamless RPC Calls:&nbsp;</strong></li>
<p>Under the nodes section, you will see the hyperchain node/nodes running for the demo network. As you can see, there are RPC Nodes and Prover Nodes. However, the prover node is for testnet/mainnet. Hence, let’s explore the RPC.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l6qj58e1iahr2tvsazk0.png)
<p>Navigate to the ‘Actions’ and click the info button’s icon. This will open a detailed page showing RPC node configurations, such as General node info, Cloud infra details, RPC Endpoints, and RPC configurations.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lo7t4lo7gopnkc0t03nt.png)
<p>Using these live RPC endpoints, you can RPC calls and interact with the network. For that, you first need to install an API request builder tool, like we are using PostWoman. Also, we are initiating an RPC call for <strong>‘eth_blockNumber’, </strong>hence it will show block number as outcome.<strong>&nbsp;</strong></p>
<p>Go to Postwoman—&gt; change call method to ‘Post’ —&gt;paste HTTP URL (as given in the above image)&nbsp; in the URL section—&gt; paste the given command in the ‘Parameter’ section.&nbsp;</p>
<p>{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":83}.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ai4ouu2pkzkho3akm40v.png)
<p>Now, click send.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgoho0qgekgygyzmbzgc.png)
<p>In response, you will get the result as a block number. When you convert the <strong>0x1e16 </strong>(hexadecimal) to decimal, it will give you the exact block number, which is 7702 in the case of this demo network. Similarly, you can make RPC calls to get balance, gas price, peer count, etc. Commands for all of these you can get from Etherem’s official <a href="https://ethereum.org/en/developers/docs/apis/json-rpc/">JSON API docs</a>.&nbsp;</p>
<li><strong>Deploy smart contracts:</strong></li>
<p>Using the RPC endpoints from the demo network, you can do smart contract transactions and thereby deploy any type of application contract. For this, you first need to create a zkSync project using zksync-cli and perform all the configurations before deploying the contract on the network. Your contracts will operate alongside the core rollup contract to serve the specific purpose of your dApp. For this, this demo network provides <a href="https://docs.zeeve.io/rollups/zksync-hyperchain/demo-network/deploying-contract">detailed docs</a> that you can get by clicking on the ‘Docs’ icon.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qnzmid22jyq1iovnegf.png)
<li><strong>Check transaction details on explorer:</strong></li>
<p>Be it for wallets, nodes, or smart contracts, the explorer in the demo network allows you to see comprehensive transaction details seamlessly. For example, if you want to check the transaction details for any wallet, click the explorer icon given for L1 &amp; L2.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/znpv4ucmxkth4voloh0w.png)
<p>It will redirect you to the Etherscan explorer and provide all the transaction details.&nbsp; Similarly, you can explore details for smart contract addresses.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vdq787n7vws9sunhexuj.png)
<li><strong>Access 24/7 monitoring &amp; alerts dashboard:</strong></li>
<p>The Demo network comes with a&nbsp; 24/7 monitoring &amp; alerts dashboard, designed to show you all the real-time analytics for nodes, explorer, RPC, server, log, and alerts in a single place. It shows all sorts of data like total CPU usage, RAM used, System load, memory stack, network traffic, block height and more. Also, if something is wrong– like memory or CPU is running out, it will produce real-time alerts. This exact dashboard you will get for your zkSync Hyperchain on Zeeve.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ydsughijo37nszwj7nl4.png)
<h2 class="wp-block-heading" id="h-wrap-up">Wrap up!</h2>
<p>That’s all about the test drive of a zkSync hyperchain using a pre-configured public network. The next step is setting up your own DevNet on Zeeve’s RaaS platform. Here, you get freedom to deploy &amp; destroy sandboxes until you have the confidence to move to TestNet or Mainnet. Best part is that you can leverage this demo network without paying for any subscription. Additionally, if you are planning to launch a custom zkSync Hyperchain, or any other L1/L2 rollup chain, contact us. We will suggest the best possible solution to launch your chain at low cost, with faster time-to-market. Send us your queries via mail or <a href="https://www.zeeve.io/talk-to-an-expert/">schedule a call with us</a> for one-to-one, detailed discussion.&nbsp;</p>