mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
|
|
import { CONTAINER_NAMES, getPublicPort } from "utils";
|
||
|
|
|
||
|
|
export const getRPCUrl = async (): Promise<string> => {
|
||
|
|
const publicPort = await getPublicPort(CONTAINER_NAMES.EL1, 8545);
|
||
|
|
return `http://127.0.0.1:${publicPort}`;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const getWSUrl = async (): Promise<string> => {
|
||
|
|
const publicPort = await getPublicPort(CONTAINER_NAMES.EL1, 8546);
|
||
|
|
return `ws://127.0.0.1:${publicPort}`;
|
||
|
|
};
|