const DEFAULT_CHAIN138_RPC_URL = 'https://rpc-http-pub.d-bis.org';

export function resolveChain138RpcUrl(): string {
  return String(
    process.env.CHAIN_138_RPC_URL ||
      process.env.RPC_URL_138 ||
      process.env.RPC_URL_138_PUBLIC ||
      process.env.RPC_HTTP_PUB_URL ||
      DEFAULT_CHAIN138_RPC_URL
  ).trim();
}

export { DEFAULT_CHAIN138_RPC_URL };
