> ## Documentation Index
> Fetch the complete documentation index at: https://mantrachain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect sidecar

> Run the Connect sidecar and wire it into your validator's oracle configuration

## Run Connect sidecar

Choose one of the following distribution methods:

* **Binary release**: `https://github.com/MANTRA-Chain/connect/releases/tag/v2.3.0-mantra-1.2`
* **Container image**: `ghcr.io/mantra-chain/connect-sidecar:2.3.0-mantra-1.2`

To run Connect (default port: `8080`):

```bash theme={null}
connect --market-map-endpoint="<YOUR_VALIDATOR_GRPC_HOST>:<YOUR_VALIDATOR_GRPC_PORT>"
```

If you run Connect and your validator on the same host:

```bash theme={null}
connect --market-map-endpoint=localhost:9090
```

## Verify Connect

```bash theme={null}
curl 'http://localhost:8080/connect/oracle/v2/prices' | jq .
```

You should see JSON output similar to:

```json theme={null}
{
  "prices": {
    "ATOM/USD": "4308207537",
    "BTC/USD": "6693024042",
    "ETH/USD": "2602324302",
    "MANTRA/USD": "1501599",
    "OSMO/USD": "53054083",
    "USDT/USD": "999750064",
    "USDY/USD": "1054483"
  },
  "timestamp": "2024-10-17T12:09:39.899360574Z",
  "version": "v2.0.1"
}
```

## Update validator config

Add the following under `[oracle]` in your `app.toml` (adjust `oracle_address` to point to your Connect sidecar):

```toml theme={null}
[oracle]
enabled = "true" # if you are not running a validator node, set this to "false"
oracle_address = "<YOUR_CONNECT_SIDECAR_HOST>:8080" # use localhost if running on the same server as the validator
client_timeout = "2s"
metrics_enabled = "true"
price_ttl = "0s"
interval = "1.5s"
```

Restart your validator after applying the change.

For more details, see the upstream quickstart at `https://docs.skip.build/connect/validators/quickstart#run-connect-sidecar`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.