🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@lidofinance/api-rpc

Package Overview
Dependencies
Maintainers
0
Versions
58
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.51.0
latest
Source
npm
Version published
Weekly downloads
64
-40.74%
Maintainers
0
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 06 Mar 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