# Installation Options

Installation procedure is identical for Ethereum, and Binance Smart Chain (BSC) gateways. Users can run the bloXroute Local Gateway as a Docker container or use a local build based on the [GitHub repository](https://github.com/bloXroute-Labs/gateway).

If you are running a blockchain node, to ensure that your Gateway will be able to connect to it, we recommended you [add the Gateway as a trusted peer](broken://pages/-MIUhNlba_qzxp6pjk24) of your execution layer client.

In some cases you will also need to [Connect the Gateway to the Ethereum Consensus Layer](broken://pages/9GgrkgzoXeKLbkyniIFj).

After a successful installation, the will Gateway provide your node access to the BDN and will speed up block and transaction propagation to and from the node that it is peered with.

#### GitHub repository option

Pull the latest gateway version from our GitHub repository and install it locally.

{% embed url="<https://github.com/bloXroute-Labs/gateway>" %}

Building the gateway requires using Go (version 1.19 or later). You can install it using your favorite package manager. Once the dependencies are installed, run `make gateway`.

#### Docker container option

To pull the latest gateway version, run the following command:

```markup
docker pull bloxroute/bloxroute-gateway-go:latest
```

**Running your gateway**

To run your gateway, copy the command below and modify it as needed.

A full list of start up arguments is available in the [Startup Arguments page](broken://pages/-MlNxudohX6lybndPN4n).

```
docker run --name bxgateway-go -d \
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go:latest \
--blockchain-network Mainnet \
--ws --port 1801 \
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT> \
--multiaddr /ip4/<IPv4_NETWORK_ADDRESS>/tcp/<LISTENING_PORT>/p2p/<NODE_ID> \
--private-key <YOUR_PRIVATE_KEY> \
--eth-ws-uri ws://<ETH node IP address>:8546
```

BSC

```
docker run --name bxgateway-go -d \
-v <LOG_FILE_PATH>:/app/bloxroute/logs \
-v <SSL_CERT_PATH>:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go:latest \
--blockchain-network BSC-Mainnet \
--ws --port 1801 \
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT> \
--private-key <YOUR_PRIVATE_KEY> \
--eth-ws-uri ws://<ETH node IP address>:8546
```


---

# 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/eth/gateway/gateway-installation.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.
