> For the complete documentation index, see [llms.txt](https://docs.kolibrio.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kolibrio.xyz/validator-connection/be-adapter-blockspace-monetization.md).

# 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" \\
     --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>
```
