🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@lidofinance/api-rpc

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lidofinance/api-rpc

FetchRpc extension for api

latest
Source
npmnpm
Version
0.56.0
Version published
Maintainers
2
Created
Source

@lidofinance/api-rpc

Extension of fetchRpc, to track common RPC metrics.

Installation

yarn add @lidofinance/api-rpc

Getting started

It's only a factory, which extends fetchRpc, where you need to pass prom-client's registry and prefix for all tracked metrics.

import { trackedFetchRpcFactory } from '@lidofinance/api-rpc';
import { registry } from './metrics';
import { METRICS_PREFIX } from '../config';

export const fetchRPC = trackedFetchRpcFactory({
  registry,
  prefix: METRICS_PREFIX,
});

FAQs

Package last updated on 22 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts