# RPC Access

This uses a demo network, which is deployed for all users to access the Polygon CDK 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 an existing account on the [Zeeve Platform](https://app.zeeve.io/auth/signup).

**Step 2: Zeeve Dashboard -** On the Zeeve platform dashboard click on the **Polygon CDK** option under the **APPCHAINS & ROLLUPS** section available in the left sideba&#x72;**.** This will show your deployed Polygon CDK network.

**Step 3: Demo Network Card -** Once you're on the page, you’ll see a network card labeled “**Demo**.” This is a pre-deployed network accessible to all users in Zeeve. Click on the **View** button on the Demo card.

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

**Step 5: Node List -** Here, you can see the deployed node in the Polygon CDK and navigate to the **RPC nodes.**

**Step 6: RPC Node -** Once you are in the RPC node tab, click on the **View Details** icon below Actions. It will open the RPC node details page. Here you can see the RPC node details like **Node General Info**, **RPC Endpoint, Configurations**, and **Cloud Infra.**

**Step 7: RPC Endpoint -** in this section, You will get the endpoint for Polygon CDK RPC. You can use the polygon CDK JSON RPC methods with this.

**Step 8: RPC Username and Password -** You can find the RPC username in the RPC endpoint section. The password will be the same as you set during the network creation time.

**RPC calls using curl -**

```bash
# curl to get the polygon Cdk block height
curl https://demouser:demopass@rpcnode.demo-vali-02aa6b.zeeve.net/rpc \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}'
```

**RPC calls using WebSocket -**

```bash
# Web socket to get the block number
npx wscat -c wss://demouser:demopass@rpcnode.demo-vali-02aa6b.zeeve.net/ws
# calling the JSON-RPC method after the WebSocket connection
{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zeeve.io/rollups/polygon-cdk-zkrollup/demo-network/rpc-access.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
