@thepowereco/tssdk
TypeScript icon, indicating that this package has built-in type declarations

2.2.10 • Public • Published

Power SDK

The Power SDK is the SDK for developing decentralized applications of the Power DCloud platform.

Features

  1. Power SDK interacts with the blockchain without intermediaries and without the need to run a node:

    • developer doesn't need to write a backend API for user-blockchain interactions.
    • user directly connects to the blockchain via the developer-connected SDK, which works directly as a part of a dApp.
  2. Power SDK directly receives data from the contract storage and sends transactions to EVM smart contract in Frontend at any JS/TS dApp (web- or mobile-based, could be hosted in DStorage).

SDK Modules

The Power SDK contains the following modules:

  • address;
  • crypto;
  • EVM API;
  • network;
  • SC Interface;
  • payments;
  • SC Loader;
  • transactions;
  • wallet.

Installation

Power SDK

npm i @thepowereco/tssdk

Useful links:

Custom chain

If you need to join to custom chain you can override chain id and bootstrap nodes this way:

localStorage.setItem("nodesList", JSON.stringify(
  [{address:"nodeUrl", nodeId:"nodeId"}]
))
localStorage.setItem("chainId", "chainId")

Dependencies (12)

Dev Dependencies (11)

Package Sidebar

Install

npm i @thepowereco/tssdk

Weekly Downloads

347

Version

2.2.10

License

MIT

Unpacked Size

115 kB

Total Files

90

Last publish

Collaborators

  • thepowereco