# @lido-sdk/helpers

> This project is being slowly deprecated and may not receive further updates. Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Li

Latest version **1.7.1** (published 2025-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lido-sdk/helpers
pnpm add @lido-sdk/helpers
yarn add @lido-sdk/helpers
bun add @lido-sdk/helpers
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.1 |
| Published | 2025-03-24 |
| First published | 2021-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Maintainers | lidofinance-group, lidofinance-ui |
| Keywords | lido, lido-sdk, lido-js-sdk, lidofinance |

## Links

- npm: https://www.npmjs.com/package/@lido-sdk/helpers
- Repository: https://github.com/lidofinance/lido-js-sdk
- Issues: https://github.com/lidofinance/lido-js-sdk/issues
- npm.io page: https://npm.io/package/@lido-sdk/helpers

## Dependencies (2)

- [tiny-invariant](https://npm.io/package/tiny-invariant.md) ^1.1.0
- [@lido-sdk/constants](https://npm.io/package/@lido-sdk/constants.md) 3.5.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.7.1 (latest) — 2025-03-24
- 1.7.0 — 2025-03-18
- 1.6.3 — 2025-03-17
- 1.6.2 — 2025-03-17
- 1.6.1 — 2024-09-09
- 1.6.0 — 2024-04-02
- 1.5.1 — 2023-10-05
- 1.5.0 — 2023-10-03
- 1.4.11 — 2023-06-12
- 1.4.10 — 2023-05-03
- 1.4.9 — 2023-04-12
- 1.4.8 — 2023-03-10
- 1.4.7 — 2023-02-15
- 1.4.6 — 2023-02-13
- 1.4.5 — 2023-01-31
- … 10 more at https://npm.io/package/@lido-sdk/helpers/versions

## README

# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Helpers

Helpers for Lido Finance projects.
Part of [Lido JS SDK](https://github.com/lidofinance/lido-js-sdk/#readme)

- [Install](#install)
- [Etherscan](#etherscan)
  - [getEtherscanTxLink](#getetherscantxlink)
  - [getEtherscanTokenLink](#getetherscantokenlink)
  - [getEtherscanAddressLink](#getetherscanaddresslink)
- [Open window](#open-window)

## Install

```bash
yarn add @lido-sdk/helpers
```

## Etherscan

A set of functions for generating links to [etherscan](https://etherscan.io/)

### getEtherscanTxLink

```ts
import { getEtherscanTxLink } from '@lido-sdk/helpers';
import { CHAINS } from '@lido-sdk/constants';

const link = getEtherscanTxLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/tx/0x0000000000000000000000000000000000000000000000000000000000000000
```

### getEtherscanTokenLink

```ts
import { getEtherscanTokenLink } from '@lido-sdk/helpers';
import { CHAINS } from '@lido-sdk/constants';

const link = getEtherscanTokenLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
```

### getEtherscanAddressLink

```ts
import { getEtherscanAddressLink } from '@lido-sdk/helpers';
import { CHAINS } from '@lido-sdk/constants';

const link = getEtherscanAddressLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
```

## Open window

```ts
import { openWindow } from '@lido-sdk/helpers';

openWindow('https://lido.fi');
```

---
_Source: https://npm.io/package/@lido-sdk/helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
