From c99aabf9f6f08f2e5b9da977ed1ed02c805fbfd1 Mon Sep 17 00:00:00 2001 From: 0xroll <96259407+0xroll@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:24:26 +0800 Subject: [PATCH] use private rpc --- adapters/stargate/src/sdk/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adapters/stargate/src/sdk/config.ts b/adapters/stargate/src/sdk/config.ts index e893bb58..1578e272 100644 --- a/adapters/stargate/src/sdk/config.ts +++ b/adapters/stargate/src/sdk/config.ts @@ -8,5 +8,8 @@ export const POSITIONS_V2_SUBGRAPH_URL = export const client = createPublicClient({ chain: linea, - transport: http("https://rpc.linea.build"), + transport: http(`https://linea-mainnet.infura.io/v3/${process.env.OPENBLOCK_LINEA_INFURA_API_KEY}`, { + retryCount: 5, + timeout: 60_000, + }), });