Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kiltprotocol/type-definitions

Package Overview
Dependencies
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiltprotocol/type-definitions

Type definitions for KILT main- and test nets

  • 1.11401.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by13.44%
Maintainers
2
Weekly downloads
 
Created
Source

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:

yarn add @kiltprotocol/augment-api

Usage

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

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.

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc