# Getting Started

Follow these quick steps to connect to **AstraNode RPC**.

{% stepper %}
{% step %}

### Get Your Endpoint

You don’t need an API key. Use directly:

```
https://rpc.astranode.cloud
```

Optional headers:

| Header        | Description                                         |
| ------------- | --------------------------------------------------- |
| `X-PAYER`     | (Optional) your wallet address, used to track usage |
| `X-PAYMENT`   | (Optional) payment header after quota exceeded      |
| {% endstep %} |                                                     |

{% step %}

### Test Health

```bash
curl -s https://rpc.astranode.cloud/health | jq
```

✅ Response:

```json
{ "ok": true, "ts": 1730190000000 }
```

{% endstep %}

{% step %}

### Make a Basic RPC Call

Example: get latest block number

```bash
curl -s https://rpc.astranode.cloud/rpc \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
```

{% endstep %}

{% step %}

### Check Remaining Quota

```bash
curl -s https://rpc.astranode.cloud/quota | jq
```

Response:

```json
{ "identity": "1.2.3.4", "freeRemaining": 47 }
```

{% endstep %}
{% endstepper %}

🎯 You’re connected!\
Next: [Learn about rate limits & payments](https://docs.astranode.cloud/payments)


---

# 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.astranode.cloud/getting-started.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.
