# @kiltprotocol/type-definitions

> Type definitions for KILT main- and test nets

Latest version **1.11502.1** (published 2025-07-02) · BSD-4-Clause license · 0 weekly downloads

## Install

```sh
npm install @kiltprotocol/type-definitions
pnpm add @kiltprotocol/type-definitions
yarn add @kiltprotocol/type-definitions
bun add @kiltprotocol/type-definitions
```

## 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.11502.1 |
| Published | 2025-07-02 |
| First published | 2021-04-20 |
| Weekly downloads | 0 |
| License | BSD-4-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 83.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | BOTLabs GmbH |
| Maintainers | kiltbot, rflechtner |

## Links

- npm: https://www.npmjs.com/package/@kiltprotocol/type-definitions
- Repository: https://github.com/kiltprotocol/types-augment
- Issues: https://github.com/KILTprotocol/types-augment/issues
- npm.io page: https://npm.io/package/@kiltprotocol/type-definitions

## Recent versions

- 1.11502.1 (latest) — 2025-07-02
- 1.11502.1-rc.1 (latest-rc) — 2025-06-19
- 1.11501.0-peregrine (peregrine) — 2025-01-30
- 1.11400.0-rilt (rilt) — 2024-08-20
- 1.11200.0-rc.1 (rc) — 2024-08-07
- 0.35.3-dev.6 (dev) — 2024-07-01
- 0.100.0-alpha.1 (alpha) — 2023-12-19
- 0.34.0-dip-2 (dip) — 2023-11-28
- 0.32.1-decoded-3 (decoded-2023) — 2023-06-13
- 1.11504.0 — 2025-05-29
- 1.11502.0 — 2025-03-25
- 1.11502.0-rc.1 — 2025-02-20
- 1.11501.0-rc.1 — 2025-01-27
- 1.11500.0-rc.2 — 2025-01-21
- 1.11500.0-rc.1 — 2025-01-20
- … 148 more at https://npm.io/package/@kiltprotocol/type-definitions/versions

## README

[![](https://user-images.githubusercontent.com/39338561/122415864-8d6a7c00-cf88-11eb-846f-a98a936f88da.png)
](https://kilt.io)

# Runtime Type Definitions for the KILT Network

This package provides runtime type definitions for data structures and transaction types used on the KILT blockchain.
It is required when using `@polkadot/api` to interact with the KILT blockchain.

### Installation

To install, run:

```bash
yarn add @kiltprotocol/type-definitions
```

### Usage

Import `typesBundle` from the package and pass it to the API initialization options, as exemplified in the following snippet:

```typescript
import { ApiPromise, WsProvider } from '@polkadot/api'

import { typesBundle } from '@kiltprotocol/type-definitions'

const provider = new WsProvider('wss://spiritnet.kilt.io')
const api = await ApiPromise.create({
  provider,
  typesBundle,
})
```

### Mainnet and Testnet Types

This package contains type definitions for all runtime versions of various production and test networks.
`@polkadot/api` will automatically select the right type definitions for the current network and runtime version.
Make sure you are on the latest version of these type definitions when a runtime upgrade is incoming to ensure your application remains compatible with the upgrade.

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