From 1a3c1f96d7b3e946b2f86ac729508033a1f2f44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Kadir=20Y=C3=BCcel?= Date: Thu, 3 Apr 2025 20:03:24 +0300 Subject: [PATCH] feat: common rpc-urls config --- docs/operate/config-reference.mdx | 41 ++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/docs/operate/config-reference.mdx b/docs/operate/config-reference.mdx index 0f8308bf..02cb4119 100644 --- a/docs/operate/config-reference.mdx +++ b/docs/operate/config-reference.mdx @@ -1,5 +1,5 @@ -import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; +import Tabs from "@theme/Tabs"; # Configuration Reference @@ -892,6 +892,45 @@ Connections to Cosmos chains require **both** RPC and gRPC URLs. There is **no ` +## rpcUrls + +:::info + +Connections to non-EVM chains only support a single RPC url. If more than one RPC url is specified, only the first one will be used. + +::: + +**Description:** Comma-separated URLs to connect the providers to. This field accepts RPC URLs from all chains for easy configuration. + +Each RPC URL will be queried for chain ID and used for related chain. RPC URLs will be in the order of their configuration and this field + +is preceeding the per-chain [rpcUrls](#chainschain_namerpcurls) configuration. + +**Type:** `string` (comma separated list of urls without spaces) + + + +```bash +--rpcurls "$CONNECTION_URLS" +--rpcurls "http://127.0.0.1:8545,http://127.0.0.1:8546,http://127.0.0.1:8547" +``` + + + + ```bash + export HYP_RPCURLS="$CONNECTION_URLS" + ``` + + + +```json +{ + "rpcUrls": "http://127.0.0.1:8545,http://127.0.0.1:8546" +} +``` + + + ## defaultsigner :::info