Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@lidofinance/eth-api-providers

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lidofinance/eth-api-providers

Wraps JsonRpcProvider to track requests to RPC

latest
Source
npmnpm
Version
0.54.1
Version published
Maintainers
2
Created
Source

@lidofinance/eth-api-providers

Wraps JsonRpcProvider to track requests to RPC.

Installation

yarn add @lidofinance/eth-api-providers

Getting started

You just need to pass a few extra parameters to the used JsonRpcProvider, and you will get a patched class.

import {
  providerFactory,
  StaticJsonRpcBatchProvider,
} from '@lidofinance/eth-providers';
import { trackedJsonRpcProvider } from '@lidofinance/eth-api-providers';
import { registry } from './metrics';
import { METRICS_PREFIX } from '../config';

export const getStaticRpcBatchProvider = providerFactory(
  trackedJsonRpcProvider({
    prefix: METRICS_PREFIX,
    registry,
    Provider: StaticJsonRpcBatchProvider,
  }),
);

FAQs

Package last updated on 20 Aug 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