@b-stable/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Installation

To use the B-Stable SDK, you need to install the @b-stable/sdk package and some @polkadot dependencies:

$ yarn add @b-stable/sdk @polkadot/api-augment @polkadot/api

# or

$ npm i @b-stable/sdk @polkadot/api-augment @polkadot/api

Usage

import { Tokens, getApiPromise } from '@b-stable/sdk'

const ALICE_ACCOUNT_ID = '5GNJqTPyNqANBkUVMN1LPPrxXnFouWXoe2wNSmmEoLctxiZY'

const api = await getApiPromise(endpoint)

const tokens = new Tokens(api)

// get balance of ALICE
const balance = await tokens.nativeBalance(ALICE_ACCOUNT_ID)

Readme

Keywords

Package Sidebar

Install

npm i @b-stable/sdk

Weekly Downloads

8

Version

1.0.0

License

UNLICENSED

Unpacked Size

251 kB

Total Files

97

Last publish

Collaborators

  • kaptn
  • ivonin
  • b-stable-team