# RPC Connection

{% hint style="warning" %}
Для работы с потребуется скачивание официальных кошельков [Bitcoin Core](https://bitcoincore.org/en/download/), [Litecoin Core](https://litecoin.org/) ...
{% endhint %}

1. Дождитесь завершения загрузки сети Blockchain
2. В папке где хранится Blockchain, найдите конфигурационные файлы **bitcoin.conf, litecoin.conf**

Настройте эти файлы согласно примеру ниже и перезагрузите кошелек

```json
server=1
daemon=1
rpcuser=имя пользователя
rpcpassword=придумайте сложный пароль
rpcallowip=адрес сервера

rpcport=8332
rpcbind=локальный IP адрес где находится кошелек
```

{% hint style="info" %}
Port 8332 = Для Bitcoin

Port 9332 = Для Litecoin
{% endhint %}

## Настройка мерчанта

В панели управления откройте раздел **"Мерчанты и API — Список мерчантов"**, и справа в углу нажмите кнопку **"Добавить мерчант"**

<figure><img src="/files/2lNcRz2PkgXmXZ7KNjM7" alt=""><figcaption></figcaption></figure>

На открывшемся окне, заполните все поля:

<figure><img src="/files/to3qOoSLKJv2o2PdUb8N" alt=""><figcaption></figcaption></figure>

После заполнения всех представленных полей, нажмите кнопку **"Добавить".**

<figure><img src="/files/L2R3sYsGL0Ek9caCTSmm" alt=""><figcaption></figcaption></figure>

Заполните ключи для авторизации в разделе **"Настройки модуля"**

<figure><img src="/files/NNRRLSjxP73H0yNZocoj" alt=""><figcaption></figcaption></figure>

* **RPC Host** — укажите IP адрес, где находится Blockchain
* **RPC Port** — укажите порт из конфигурации
* **RPC User** —  укажите имя пользователя из конфигурации
* **RPC Password** —  укажите пароль из конфигурации

## Рекомендуемые ссылки

{% content-ref url="/pages/0ckqsDRgrkBgsBazNfBI" %}
[Общие настройки](/avtomatizaciya/merchanty-i-api/merchanty/obshie-nastroiki.md)
{% endcontent-ref %}


---

# 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.iexexchanger.com/avtomatizaciya/merchanty-i-api/merchanty/rpc-connection.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.
