Skip to content

Commit b403eb5

Browse files
committed
fix: alchemy keys
1 parent 851a371 commit b403eb5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/services/Client.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,20 @@ export default class Client {
5959

6060
public async launch(): Promise<void> {
6161
const {
62-
jsonRpcProviders,
63-
alchemyKeys,
62+
jsonRpcProviders = [],
63+
alchemyKeys = [],
64+
drpcKeys = [],
6465
chainId,
6566
network,
6667
optimistic,
6768
privateKey,
6869
} = this.config;
6970
const transport = createTransport({
70-
alchemyKeys: alchemyKeys ?? [],
71-
rpcUrls: jsonRpcProviders ?? [],
71+
rpcProviders: [
72+
{ provider: "alchemy", keys: alchemyKeys },
73+
{ provider: "drpc", keys: drpcKeys },
74+
],
75+
rpcUrls: jsonRpcProviders,
7276
protocol: "http",
7377
network,
7478
timeout: optimistic ? 240_000 : 10_000,

0 commit comments

Comments
 (0)