Node Setup
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):
connect --market-map-endpoint="<YOUR_VALIDATOR_GRPC_HOST>:<YOUR_VALIDATOR_GRPC_PORT>"If you run Connect and your validator on the same host:
connect --market-map-endpoint=localhost:9090Verify Connect
curl 'http://localhost:8080/connect/oracle/v2/prices' | jq .You should see JSON output similar to:
{
"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):
[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.