RPC Access

This uses a demo network which is deployed for all users to access zksync hyperchain network RPC. You can use the same thing with the newly deployed network.

Step 1: Register/Login - Create a new account or Log in to the existing account on the Zeeve Platform.

Step 2: Zeeve Dashboard - On the Zeeve platform dashboard click on the zkSync Hyperchains option under the APPCHAINS & ROLLUPS section available in the left sidebar. This will show your deployed zkSync Hyperchain network.

Step 3: zkSync Hyperchain Network Card - Click on the View button on the network card.

Step 4: RPC - You will land on the overview tab, where you can see the overview of the network, navigate to the RPC tab.

Step 7: RPC Endpoint - In this section, you will get the endpoint for the zksync hyperchain RPC. You can use the zksync-specific JSON RPC methods with this.

RPC calls using curl -

// curl to get the block number of the Zksync block height
curl https://rpcnode.zksyncnode-zk-763975.zeeve.online/XuW7kMjd41ZgbjS6BuTv/rpc \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "jsonrpc" : "2.0", "id": 1, "method": "eth_blockNumber","params":[] }'

RPC calls using WebSocket -

# Web socket to get the block number
npx wscat -c wss://rpcnode.zksyncnode-zk-763975.zeeve.online/XuW7kMjd41ZgbjS6BuTv/ws
# calling the JSON-RPC method after the WebSocket connection
{ "jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params":[] }

Last updated

Was this helpful?