PAKT
PAKT SDK is a modern software development kit, built for NodeJs.
Installation
To install PAKT SDK, simply
npm install pakt-sdk
yarn add pakt-sdk
:warning: Ensure you are registered on www.pakt.world, with a paid and activated chainsite.
Initialization
See below the code block for initialization
import PaktSDK from "pakt-sdk";
const apiKey = config.PAKT_SDK_API_KEY;
const configData: PaktConfig = {
token: apiKey,
verbose: true,
};
const sdkInit = await PaktSDK.init(configData);
const PaktSDK = require("pakt-sdk");
const apiKey = config.PAKT_SDK_API_KEY;
const configData = {
token: apiKey,
verbose: true,
};
const sdkInit = await PaktSDK.init(configData);
The above code initializes the PAKT SDK and ensures the API KEY is generated on www.pakt.world.
If you want to learn how to use the PAKT SDK, visit this link for the documentation & guide.
Example
Explore our example project which effectively demonstrates the practical application of our SDK:
Sample Project