# BE Adapter (Blockspace Monetization)

**Repository:** [kolibrio-milti-be-adapter](https://github.com/kolibriomev/kolibrio-milti-be-adapter)

The adapter must be deployed on the **same server as the validator**. You can download the binary from the [Releases](https://github.com/kolibriomev/kolibrio-milti-be-adapter/releases) section.

#### Setup Steps:

1. **Generate RSA key pair** (private/public) and store them securely:

   ```bash
   openssl genpkey -algorithm RSA -out /etc/adapter/keys/private.pem -pkeyopt rsa_keygen_bits:2048
   openssl rsa -pubout -in /etc/adapter/keys/private.pem -out /etc/adapter/keys/public.pem
   ```
2. **Run the adapter with the following parameters:**

   ```bash
   ./kolibrio-milti-be-adapter-x86_64-linux-gnu \\
     --block-engine-url <nearest_Jito_block_engine_URL> \\
     --allowed-searchers "GPXBbymhimC4rZU1n2L7s3qGzMrN2ZHkY2mJiaydNTvq,HWEoBxYs7ssKuudEjzjmpfJVX7Dvi7wescFsVx2L5yoY" \\
     --signing-key-pem-path "/etc/adapter/keys/private.pem" \\
     --verifying-key-pem-path "/etc/adapter/keys/public.pem"
   ```
3. **Ensure automatic restarts** on failure (e.g., using `systemd`, `supervisord`).

#### **🛡 Firewall Settings.**

Open the following tcp ports:

* `searchers-grpc-port` (default: `11301`)

#### ⚙️ Validator Configuration:

Replace the `block-engine-url` with the adapter address:

```bash
<http://0.0.0.0:11300>
```


---

# 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.kolibrio.xyz/validator-connection/be-adapter-blockspace-monetization.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.
