# @starknet-io/types-js

> Shared TypeScript definitions for Starknet projects

Latest version **0.10.4** (published 2026-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @starknet-io/types-js
pnpm add @starknet-io/types-js
yarn add @starknet-io/types-js
bun add @starknet-io/types-js
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.10.4 |
| Published | 2026-09-10 |
| First published | 2024-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 244.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 10 |
| Author | Toni Tabak |
| Maintainers | odednaor, amanusk, adrienlacombe-starknet |
| Keywords | starknet, starkware, l2, zk, rollup, wallet, dapp |

## Links

- npm: https://www.npmjs.com/package/@starknet-io/types-js
- Repository: https://github.com/starknet-io/types-js
- Issues: https://github.com/starknet-io/types-js/issues
- npm.io page: https://npm.io/package/@starknet-io/types-js

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.10.4 (latest) — 2026-09-10
- 0.10.4-beta.3 (beta) — 2026-09-10
- 0.10.0-alpha.2 (alpha) — 2025-10-27
- 0.10.4-beta.2 — 2026-08-13
- 0.10.4-beta.1 — 2026-07-29
- 0.10.3 — 2026-07-01
- 0.10.3-beta.4 — 2026-06-30
- 0.10.3-beta.3 — 2026-06-17
- 0.10.3-beta.2 — 2026-06-10
- 0.10.3-beta.1 — 2026-06-08
- 0.11.0-beta.1 — 2026-06-08
- 0.10.2 — 2026-03-31
- 0.10.1 — 2026-03-13
- 0.10.1-beta.2 — 2026-03-11
- 0.10.1-beta.1 — 2026-02-04
- … 38 more at https://npm.io/package/@starknet-io/types-js/versions

## README

<p align="center">
  <img width='300' src="https://raw.githubusercontent.com/starknet-io/types-js/main/types%20js%20logo.png">
</p>
<p align="center">
    <a href="https://github.com/starknet-io/types-js/actions/workflows/publish.yml">
    <img src="https://github.com/starknet-io/types-js/actions/workflows/publish.yml/badge.svg">
  </a>
  <a href="https://www.npmjs.com/package/@starknet-io/types-js">
    <img src='https://img.shields.io/npm/v/%40starknet-io%2Ftypes-js' />
  </a>
  <a href="https://www.npmjs.com/package/@starknet-io/types-js">
    <img src='https://img.shields.io/npm/v/%40starknet-io%2Ftypes-js/beta' />
  </a>
  <a href="https://bundlephobia.com/package/%40starknet-io%2Ftypes-js">
    <img src='https://img.shields.io/bundlephobia/minzip/%40starknet-io%2Ftypes-js?color=success&label=size' />
  </a>
  <a href="https://www.npmjs.com/package/%40starknet-io%2Ftypes-js">
    <img src='https://img.shields.io/npm/dt/%40starknet-io%2Ftypes-js?color=blueviolet' />
  </a>
  <a href="https://github.com/starknet-io/types-js/blob/main/LICENSE/">
    <img src="https://img.shields.io/badge/license-MIT-black">
  </a>
  <a href="https://github.com/starknet-io/%40starknet-io%2Ftypes-js/stargazers">
    <img src='https://img.shields.io/github/stars/starknet-io/types-js?color=yellow' />
  </a>
  <a href="https://starkware.co/">
    <img src="https://img.shields.io/badge/powered_by-StarkWare-navy">
  </a>
  <a href="https://twitter.com/starknetjs">
    <img src="https://img.shields.io/badge/follow_us-Twitter-blue">
  </a>
  <a href="https://www.drips.network/app/projects/github/starknet-io/starknet.js" target="_blank">
    <img src="https://www.drips.network/api/embed/project/https%3A%2F%2Fgithub.com%2Fstarknet-io%2Fstarknet.js/support.png?background=light&style=github&text=project&stat=none" alt="Support starknet.js on drips.network" height="20">
  </a>
  <a href="https://github.com/starknet-io/types-js/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22">
    <img src="https://img.shields.io/badge/PRs-welcome-ff69b4.svg?style=flat-square">
  </a>
</p>

<p align="center">
🐺 Starknet TypeScript types 🚀 definitions for Starknet projects
</p>

## Installation

RPC 0.10.4 - **latest**
```bash
npm i @starknet-io/types-js@0.10.4
```

RPC 0.10.3
```bash
npm i @starknet-io/types-js@0.10.3
```

RPC 0.10.2 - (Starknet 0.14.2)
```bash
npm i @starknet-io/types-js@0.10.2
```

RPC 0.10.0 - (Starknet 0.14.1)
```bash
npm i @starknet-io/types-js@0.10.0
```

RPC 0.9 - (Starknet 0.14)

```bash
npm i @starknet-io/types-js@0.9.2
```

RPC 0.8 - old (Starknet 0.13)

```bash
npm i @starknet-io/types-js@0.8.4
```

## Types

#### API [Starknet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/master/api)

```ts
// type import
import type { SomeApiType } from '@starknet-io/types-js';
// or entire namespace import
import { API } from '@starknet-io/types-js';
```

#### Wallet API [Wallet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/master/wallet-api)

```ts
// type import
import type { SomeWalletApiType } from '@starknet-io/types-js';
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js';
```

#### SNIPs [StarkNet Improvement Proposals](https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-1.md)

- [SNIP-12 Hashing and signing typed structured data](https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-12.md) - [/src/wallet-api/typedData.ts](https://github.com/starknet-io/types-js/blob/main/src/wallet-api/typedData.ts)

```ts
// type import
import type { TypedData } from '@starknet-io/types-js';
```

- [SNIP-29 Applicative paymaster API standard](https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-29.md)

```ts
// namespace import
import { PAYMASTER_API } from '@starknet-io/types-js';
```

#### Proving API [Starknet Transaction Prover API](https://github.com/starkware-libs/starknet-specs/tree/master/proving-api)

```ts
// namespace import
import { PROVING_API } from '@starknet-io/types-js';
```

## Versioning

MAJOR and MINOR version of this package follows [starknet-spec](https://github.com/starkware-libs/starknet-specs/tags) semantic versioning. The PATCH version can diverge based on the bug fixes.

Ex. Starknet types-js v0.10 == Starknet Spec v0.10

To prevent auto update of the minor, meaning significant RPC JSON specification change use fixed or patch range ex. ~0.9.0

## Devs Build

```bash
npm run build
```

## Devs Testing

```bash
npm run lint
```

## License

This repository is licensed under the MIT License, see [LICENSE](LICENSE) for more information.

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