# @lit-protocol/constants

> This submodule exports various constants values and errors that are used in Lit Protocol.

Latest version **9.0.1** (published 2026-01-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @lit-protocol/constants
pnpm add @lit-protocol/constants
yarn add @lit-protocol/constants
bun add @lit-protocol/constants
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 9.0.1 |
| Published | 2026-01-27 |
| First published | 2022-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 126.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | glitch003, adarsh-kumar28, websaam, hwrdtm, famura, maximushaximus, spacesailor, awisniew |
| Keywords | library |

## Links

- npm: https://www.npmjs.com/package/@lit-protocol/constants
- Repository: https://github.com/LIT-Protocol/js-sdk
- Homepage: https://github.com/Lit-Protocol/js-sdk
- Issues: https://github.com/LIT-Protocol/js-sdk/issues
- npm.io page: https://npm.io/package/@lit-protocol/constants

## Dependencies (9)

- [zod](https://npm.io/package/zod.md) 3.24.3
- [viem](https://npm.io/package/viem.md) 2.38.3
- [tslib](https://npm.io/package/tslib.md) 2.8.1
- [ethers](https://npm.io/package/ethers.md) 5.7.2
- [typechain](https://npm.io/package/typechain.md) 8.3.2
- [@t3-oss/env-core](https://npm.io/package/@t3-oss/env-core.md) 0.13.8
- [@openagenda/verror](https://npm.io/package/@openagenda/verror.md) 3.1.4
- [@typechain/ethers-v6](https://npm.io/package/@typechain/ethers-v6.md) 0.5.1
- [@lit-protocol/contracts](https://npm.io/package/@lit-protocol/contracts.md) 0.9.1

## Recent versions

- 9.0.1 (latest) — 2026-01-27
- 0.0.0-20251031163033 (test) — 2025-10-31
- 8.0.0 (beta) — 2025-09-22
- 8.0.0-canary.4 (canary) — 2025-09-17
- 8.0.0-prealpha-886.4 (prealpha-886) — 2025-08-22
- 8.0.0-alpha.1 (alpha) — 2025-08-22
- 7.2.4-alpha.0 (feature-escal-51-tgosmosis-lit-sdk-log-output) — 2025-08-08
- 7.1.3-eip1559 (eip1559) — 2025-05-27
- 7.1.1-dev-6 (datil-dev) — 2025-04-15
- 8.0.0-alpha.0 (naga) — 2025-04-10
- 7.0.16-custom-logger (custom-logger) — 2025-03-22
- 6.6.1-alpha.0 (6.6-patch-1) — 2024-10-03
- 6.8.1-dev.0 (dev) — 2024-10-03
- 6.6.1-beta.1 (beta-wrappedkeys) — 2024-09-25
- 6.5.3-enn (enn) — 2024-09-23
- … 639 more at https://npm.io/package/@lit-protocol/constants/versions

## README

# Lit Protocol Constants

This submodule exports various constants values and errors that are used in Lit Protocol.

Note: This is the top-most package in the Lit Protocol SDK monorepo. It imports no other package and is potentially imported by all other packages.

### node.js / browser

```
yarn add @lit-protocol/constants
```

## Adding new Lit Protocol Constants

In files under `./src/lib` you can add any value there. Remember to define it `as const` to ensure it is immutable and allow TypeScript to better infer the derived types.

### Updating Lit supported chains

In file `./src/lib/constants/constants.ts` you can update the Lit supported chains.

1. Add the chain key to the corresponding chain key array based on the chain type (EVM, SVM or Cosmos)
2. Add chain data to the corresponding chain data object based on the chain type (EVM, SVM or Cosmos)

| Chain keys               | Chain data          |
| ------------------------ | ------------------- |
| `LIT_CHAINS_KEYS`        | `LIT_CHAINS`        |
| `LIT_SVM_CHAINS_KEYS`    | `LIT_SVM_CHAINS`    |
| `LIT_COSMOS_CHAINS_KEYS` | `LIT_COSMOS_CHAINS` |

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