polycode-sdk v1.0.3
Polycode SDK (TypeScript)
This SDK provides the support the Polycode platform via various functions exposed through the SDK package; you can easily integrate the SDK to existing web projects regardless of the technology stack being used.
Polycode SDK speeds up blockchain application development by abstracting away complexities such as wallet management, transaction building, processing, and smart contract interactions.
The simplest way to start using the SDK is to run the following command in your project's root directory:
$ npm install polycode-sdk
Then intialize the singleton object inside your application (be it nodejs, browser based, or other) like this:
import { PolycodeSDK } from "polycode-sdk";
// or
const { PolycodeSDK } = require("polycode-sdk")
...
const sdk = new PolycodeSDK("your-api-key", "your-project-id");
"your-api-key"
and "your-project-id"
values can be found on your project details page
on the polycode platform.
Build
Update your environment to NodeJS v16 before running the steps below.
To clone and build the project, run the following command in your terminal:
$ git clone https://github.com/0xpolycode/polycode-sdk
$ npm install
$ npm run build