🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@polkadot/types-known

Package Overview
Dependencies
Maintainers
2
Versions
1809
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/types-known

Known type definitions

16.1.1
latest
Source
npm
Version published
Weekly downloads
141K
-13.12%
Maintainers
2
Weekly downloads
 
Created

What is @polkadot/types-known?

@polkadot/types-known is a package that provides known types and constants for the Polkadot and Substrate ecosystem. It is used to manage and decode the types and constants that are specific to different networks and runtime versions.

What are @polkadot/types-known's main functionalities?

Known Types Management

This feature allows you to access and manage the known types for different networks. The code sample demonstrates how to import and log the known types available in the package.

const { knownTypes } = require('@polkadot/types-known');
console.log(knownTypes);

Network-Specific Constants

This feature provides access to network-specific constants such as genesis hashes. The code sample shows how to retrieve the genesis hash for the Polkadot network.

const { knownGenesis } = require('@polkadot/types-known');
console.log(knownGenesis['polkadot']);

Other packages similar to @polkadot/types-known

FAQs

Package last updated on 29 May 2025

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