# How to install

1. First of all clone latest idena-rpc version.

```bash
git clone https://github.com/idena-dev/idena-rpc.git
```

2\. Then rename `config/.production.js` in `config/production.js`:

```bash
mv config/.production.js config/production.js
```

3\. Edit your production.js file:

* **target**: Address of an up and running [idena-go](https://github.com/idena-network/idena-go) node.
* **apiKey**: Your idena-go api key. It can be retrieved in `less datadir/api.key`
* **port**: Port that will expose your public RPC.

```bash
module.exports = {
    target: "http://localhost:9009",
    apiKey: "<insert content of datadir/api.key file>",
    port: 80,
};
```

4\. Start to proxy:

```bash
npm start
```


---

# 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://idena.gitbook.io/idelse/idena-rpc/how-to-install-idena-rpc.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.
