💡| How to set up zkSync RPC?
Setting up the zkSync RPC (Remote Procedure Call) allows you to connect to the zkSync network using a custom RPC URL in your wallet or dApp. Here's how you can do it:
Step 1: Open Your Wallet or dApp Open the wallet or dApp that you want to connect to the zkSync network using the custom RPC URL. This could be MetaMask, MyEtherWallet (MEW), or any other Ethereum wallet or dApp that allows you to add custom RPCs.
Step 2: Access Network Settings In your wallet or dApp, find the network settings or network configuration section. The location and options may vary depending on the wallet or dApp you are using. For example, in MetaMask, you can access the network settings by clicking on the network dropdown in the top left corner of the MetaMask window and selecting "Custom RPC".
Step 3: Add a Custom RPC In the network settings or configuration section, look for the option to add a custom RPC or custom network. Click on this option to open the form for adding a custom RPC.
Step 4: Enter zkSync RPC details In the form for adding a custom RPC, enter the following details for the zkSync network:
Network Name: zkSync
New RPC URL: https://mainnet.zk-sync.io/ (This is the mainnet URL for zkSync)
Chain ID: 42161
Symbol: ETH
Block Explorer URL: https://zkscan.io/
Make sure to enter these details accurately, as they are crucial for connecting to the zkSync network.
Step 5: Save and Connect After entering the zkSync RPC details, click "Save" or "Add" to add the custom RPC to your wallet or dApp. The custom RPC for zkSync should now be added to your wallet or dApp's network list.
Step 6: Select the zkSync Network In your wallet or dApp, select the zkSync network from the network list. This will switch your wallet or dApp to connect to the zkSync network using the custom RPC URL that you just added.
You have now set up the zkSync RPC in your wallet or dApp, allowing you to connect to the zkSync network, interact with dApps, and make transactions on zkSync.
Last updated