You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@lidofinance/api-rpc

Package Overview
Dependencies
Maintainers
2
Versions
59
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

0.52.0
latest
Source
npmnpm
Version published
Weekly downloads
148
174.07%
Maintainers
2
Weekly downloads
 
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 10 Jul 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