# What is an RPC endpoint?

As a decentralized game, Dark Forest stores all public game data on a *blockchain*. Currently, Dark Forest v0.6 is run on the [xDAI blockchain](https://www.xdaichain.com/)--an EVM compatible sidechain.

To connect to and retrieve data from a blockchain, you'll need to connect to a *node* on the blockchain network. A *node* is a participant in the network that stores and serves the latest blockchain state. Users who wish to download blockchain data can either run a node themselves, or connect to a publicly-provided node via the node's *RPC endpoint*. An RPC (remote procedure call) endpoint is like a node's address: it's a URL which requests for blockchain data can be sent to.

The Ethereum [JSON-RPC spec](https://eth.wiki/json-rpc/API) defines the methods which you can use to retrieve data from a node. As a player or 3rd-party developer, you likely won't need to make RPC calls directly with this API--these calls are typically abstracted by web3 libraries like [ethers.js](https://docs.ethers.io/v5/).

By default, the Dark Forest webclient will connect to <https://rpc-df.xdaichain.com/>, a public endpoint provided by the xDAI team. xDAI maintains a fleet of nodes which respond to requests made to this endpoint. There are other public endpoints you can connect to as well; if you'd like a dedicated node to serve your requests, you can also run your own xDAI node and connect to the endpoint it exposes.


---

# 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://dev-guides.zkga.me/connecting-to-the-blockchain/what-is-an-rpc-endpoint.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.
