# @lukso/lsp-smart-contracts

> The reference smart contract implementation for the LUKSO LSP standards

Latest version **0.17.4** (published 2026-06-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @lukso/lsp-smart-contracts
pnpm add @lukso/lsp-smart-contracts
yarn add @lukso/lsp-smart-contracts
bun add @lukso/lsp-smart-contracts
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.17.4 |
| Published | 2026-06-02 |
| First published | 2022-01-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 23 |
| Unpacked size | 8.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 88 |
| Maintainers | frozeman, lukso-network |
| Keywords | LUKSO, LSP, Blockchain, Standards, Smart Contracts, Ethereum, EVM, Solidity |

## Links

- npm: https://www.npmjs.com/package/@lukso/lsp-smart-contracts
- Repository: https://github.com/lukso-network/lsp-smart-contracts
- Homepage: https://github.com/lukso-network/lsp-smart-contracts#readme
- Issues: https://github.com/lukso-network/lsp-smart-contracts/issues
- npm.io page: https://npm.io/package/@lukso/lsp-smart-contracts

## Dependencies (23)

- [@lukso/lsp0-contracts](https://npm.io/package/@lukso/lsp0-contracts.md) ~0.16.0
- [@lukso/lsp1-contracts](https://npm.io/package/@lukso/lsp1-contracts.md) ~0.16.0
- [@lukso/lsp2-contracts](https://npm.io/package/@lukso/lsp2-contracts.md) ~0.16.0
- [@lukso/lsp3-contracts](https://npm.io/package/@lukso/lsp3-contracts.md) ~0.17.0
- [@lukso/lsp4-contracts](https://npm.io/package/@lukso/lsp4-contracts.md) ~0.17.0
- [@lukso/lsp5-contracts](https://npm.io/package/@lukso/lsp5-contracts.md) ~0.16.0
- [@lukso/lsp6-contracts](https://npm.io/package/@lukso/lsp6-contracts.md) ~0.16.0
- [@lukso/lsp7-contracts](https://npm.io/package/@lukso/lsp7-contracts.md) ~0.18.0
- [@lukso/lsp8-contracts](https://npm.io/package/@lukso/lsp8-contracts.md) ~0.18.0
- [@lukso/lsp9-contracts](https://npm.io/package/@lukso/lsp9-contracts.md) ~0.16.0
- [@lukso/lsp10-contracts](https://npm.io/package/@lukso/lsp10-contracts.md) ~0.16.0
- [@lukso/lsp11-contracts](https://npm.io/package/@lukso/lsp11-contracts.md) ~0.2.0
- [@lukso/lsp12-contracts](https://npm.io/package/@lukso/lsp12-contracts.md) ~0.16.0
- [@lukso/lsp14-contracts](https://npm.io/package/@lukso/lsp14-contracts.md) ~0.16.0
- [@lukso/lsp16-contracts](https://npm.io/package/@lukso/lsp16-contracts.md) ~0.16.0
- [@lukso/lsp17-contracts](https://npm.io/package/@lukso/lsp17-contracts.md) ~0.17.0
- [@lukso/lsp20-contracts](https://npm.io/package/@lukso/lsp20-contracts.md) ~0.16.0
- [@lukso/lsp23-contracts](https://npm.io/package/@lukso/lsp23-contracts.md) ~0.16.0
- [@lukso/lsp25-contracts](https://npm.io/package/@lukso/lsp25-contracts.md) ~0.16.0
- [@lukso/lsp26-contracts](https://npm.io/package/@lukso/lsp26-contracts.md) ~0.2.0
- [@lukso/lsp1delegate-contracts](https://npm.io/package/@lukso/lsp1delegate-contracts.md) ~0.16.0
- [@lukso/universalprofile-contracts](https://npm.io/package/@lukso/universalprofile-contracts.md) ~0.16.0
- [@lukso/lsp17contractextension-contracts](https://npm.io/package/@lukso/lsp17contractextension-contracts.md) ~0.17.0

## 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

- 0.17.4 (latest) — 2026-06-02
- 0.15.0-rc.5 (rc) — 2024-04-03
- 0.17.3 — 2026-05-25
- 0.16.7 — 2025-06-19
- 0.16.5 — 2025-06-19
- 0.16.4 — 2025-06-18
- 0.16.3 — 2025-04-19
- 0.16.2 — 2025-01-14
- 0.15.0 — 2024-04-05
- 0.15.0-rc.4 — 2024-04-02
- 0.15.0-rc.1 — 2024-03-22
- 0.15.0-rc.0 — 2024-03-07
- 0.14.0 — 2023-12-06
- 0.13.0 — 2023-11-30
- 0.12.1 — 2023-11-07
- … 19 more at https://npm.io/package/@lukso/lsp-smart-contracts/versions

## README

# `@lukso/lsp-smart-contracts`

This is the npm _"umbrella"_ package for the LSP smart contracts. It contains all the individual `@lukso/lspN-contracts` packages (where `N` is an LSP number) as dependencies.

## Installation

```console
npm install @lukso/lsp-smart-contracts
```

## Usage

### in JavaScript

The JSON ABIs of the smart contracts can be imported as follows:

```javascript
import LSP0ERC725Account from "@lukso/lsp-smart-contracts/artifacts/LSP0ERC725Account.json";

const myContract = new web3.eth.Contract(
  LSP0ERC725Account.abi,
  "",
  defaultOptions,
);
```

### in Solidity

```sol
import "@lukso/lsp-smart-contracts/contracts/LSP0ERC725Account/LSP0ERC725Account.sol";

contract MyAccount is LSP0ERC725Account {
  constructor(address _newOwner) LSP0ERC725Account(_newOwner) {}
}
```

## Available Constants & Types

The `@lukso/lsp-smart-contracts` npm package contains useful constants such as interface IDs, and ERC725Y data keys related to the LSP Standards. You can import and access them as follows.

```js
import {
  INTERFACE_IDS,
  ERC1271,
  LSP8_TOKEN_ID_FORMAT,
  LSP1_TYPE_IDS,
  OPERATION_TYPES,
  PERMISSIONS,
  ALL_PERMISSIONS,
  SupportedStandards,
  ERC725YDataKeys,
  INTERFACE_ID_LSP1DELEGATE,
  LSP6DataKeys,
  LSP25_VERSION,
  LSPSupportedStandard,
  ErrorSelectors,
  EventSigHashes,
  FunctionSelectors,
  ContractsDocs,
  StateVariables,
} from "@lukso/lsp-smart-contracts";
```

> **Note:** we also export it as `@lukso/lsp-smart-contracts/constants` or `@lukso/lsp-smart-contracts/constants.js` to keep it backward compatible.

It also includes constant values [Array data keys](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#Array) to retrieve both the array length and for index access.

```js
'LSP5ReceivedAssets[]': {
    length: '0x6460ee3c0aac563ccbf76d6e1d07bada78e3a9514e6382b736ed3f478ab7b90b',
    index: '0x6460ee3c0aac563ccbf76d6e1d07bada',
},
```

### Note for Hardhat TypeScript projects

If you are trying to import the constants in a Hardhat project that uses TypeScript, you will need to import the constants from the `dist` folder directly, as shown in the code snippet:

```js
import { INTERFACE_IDS } from "@lukso/lsp-smart-contracts/dist/constants.cjs.js";

// This will raise an error if you have ES Lint enabled,
// but will allow you to import the constants in a Hardhat + TypeScript based project.
const LSP0InterfaceId = INTERFACE_IDS.LSP0ERC725Account;
```

See the [issue related to Hardhat TypeScript + ES Modules](https://hardhat.org/hardhat-runner/docs/advanced/using-esm#esm-and-typescript-projects) in the Hardhat docs for more information.

## TypeScript types

The following additional TypeScript types are also available, including types for the JSON format of the LSP3 Profile and LSP4 Digital Asset metadata.

```ts
import {
  LSP2ArrayKey,
  LSPSupportedStandard,
  LSP6PermissionName,
  LSP3ProfileMetadataJSON,
  LSP3ProfileMetadata,
  LSP4DigitalAssetMetadataJSON,
  LSP4DigitalAssetMetadata,
  ImageMetadata,
  LinkMetadata,
  AssetMetadata,
} from "@lukso/lsp-smart-contracts";
```

You can also import the [type-safe ABI](https://abitype.dev/) of each LSP smart contract from the `/abi` path.

```ts
import {
  lsp0Erc725AccountAbi,
  lsp6KeyManagerAbi,
  lsp7DigitalAssetAbi,
  lsp8IdentifiableDigitalAssetAbi,
} from "@lukso/lsp-smart-contracts/abi";
```

---
_Source: https://npm.io/package/@lukso/lsp-smart-contracts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
