npm i @polkadot/primitives


Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata. Full documentation & examples available

by polkadot-js

0.30.3 (see all)License:ISCTypeScript:Not Found
npm i @polkadot/primitives

polkadotjs isc style npm travis maintainability coverage dependency devDependency


Base flow definitions for the base Polkadot types as defined in the specification. It is useful for implementations, applications and libraries, where type-checking of the JavaScript base types is of importance.


Installation -

npm install --save @polkadot/primitives

Usage -

// @flow

import type { AccountId, Balance } from '@polkadot/primitives/base';

function getBalance (accountId: AccountId): Balance {
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

No reviews found
Be the first to rate