RPC Access
// 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":[] }'# 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?