/sdk

Unofficial Pi Network SDK

Primary LanguageTypeScriptOtherNOASSERTION

Pi Network SDK

GitHub npm

Unofficial Pi Network SDK

Features

  • An uncompiled (rewritten) version of the SDK
  • True Typescript support

Installation

Install with npm or yarn:

npm install @pinetwork-js/sdk
yarn add @pinetwork-js/sdk

Usage

const { Pi } = require('@pinetwork-js/sdk');

Pi.init({ version: '2.0' });
import { Pi } from '@pinetwork-js/sdk';

Pi.init({ version: '2.0' });

Documentation

  • Official documentation from the Pi Network Core Team (you don't need to write the types, the package includes them)