Installation
Last updated
To follow this tutorial, ensure you have Node version 20 or later and npm version 8 or higher installed in your environment. You can download the latest LTS (Long Term Support) version from the Node.js official website.
If you need to upgrade Node to version 20 or higher, we recommend using nvm (Node Version Manager). To upgrade npm to the latest version, use the following command:
npm install -g nvmFirst, create a folder named kor-ts-example:
mkdir kor-ts-exampleNavigate into the folder and run npm init to initialize the project:
cd kor-ts-example/
npm initYou can accept all default values by pressing the enter key when prompted for package name, version, description, etc. After running the command, you will see a file named package.json in the directory.
While in the kor-ts-example folder, install the Kor Protocol SDK node package,
You can use any of the following package managers to install the dependencies:
npm install --save @kor-protocol/core-sdk or
or
Last updated
pnpm add @kor-protocol/core-sdk yarn add @kor-protocol/core-sdk