# Gateway as Web3 Bridge

If you are using a trading bot or a web3 service but are not able to change its code in order to connect to the BDN, you can still use the bloXroute service to gain speed by configuring your gateway to serve as a web3-compatible proxy between your bot and your node. The gateway will expedite mempool service and transaction execution by using the BDN, while all other web3 services will be served from your node.<br>

#### Requirements

1. An active bloXroute account of tier Enterprise or higher
2. A running node, either on a local server or from a node provider that supports bloXroute gateway installation
3. A bloXroute local gateway with the Blockchain RPC feature enabled: Gateway setup instructions can be found [here](https://docs.bloxroute.com/introduction/guides/setting-up-a-local-gateway). Please note that in order to run your gateway with the Blockchain RPC feature, you must add the following arguments to your gateway startup command:
   1. `--eth-ws-uri`
   2. `--enable-blockchain-rpc`

#### Configuring your bot

Most bots have a configuration file in which it expects to have the RPC endpoint of the node you are using. To connect your bot to the gateway, simply edit your bot’s configuration file by replacing the blockchain node RPC endpoint with your gateway’s endpoint in the following format:

```
ws://localhost:28333/ws
```

<br>


---

# 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.bloxroute.com/resources/guides/gateway-as-web3-bridge.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.
