KAS SDK(Software Development Kit) allows you to used KAS more easily in different environments. It is the extended library of Kaia (formerly Klaytn) SDK caver, and supports JavaScript and Java such like caver. With KAS SDK, you don't have to configure the environment or parse the responses yourself. Using KAS SDK for your DApp (Decentralized App) development will enable all the functionalities of Kaia as well as KAS APIS Node API, Token History API, Wallet API, Anchor API, and the KIP series, all with a single library.

KAS SDK builds on caver's functionalities and makes them available to users. There are two main ways:

  • Using KAS features on top of Caver's functionalities

    KAS API functions.

    e.g. caver.kas.wallet.createAccout()

  • Using internal functionalities of Caver

    Caver functions.

    e.g. contract.deploy()

SDK Configuration

Caver-js extension

Install the following packages to use KAS SDK(caver-js extension).

KAS SDK(caver-js extension) runs in the following versions of Node.js.


Caver-java extension

You need Java 8 or higher to use KAS SDK(caver-java extension). For any inquiries regarding this document of KAS in general, visit our KAS Developers Forum.

Install SDK

Caver-js extension

To install KAS SDK(caver-js extension), use the following command:

Copy
Copied
npm install caver-js-ext-kas

If you want to install a specific version of KAS SDK(caver-js extension), use the following command:

Copy
Copied
npm install caver-js-ext-kas@X.X.X

Caver-java extension

maven

You can download KAS SDK (caver-java extension) library in Maven project like this:

Copy
Copied
 <repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>xyz.groundx.caver</groupId>
        <artifactId>caver-java-ext-kas</artifactId>
        <version>X.X.X</version>
    </dependency>
</dependencies>

You can download KAS SDK (caver-java extension) library for android in Maven project like this:

Copy
Copied
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>xyz.groundx.caver</groupId>
        <artifactId>caver-java-ext-kas</artifactId>
        <version>X.X.X-android</version>
    </dependency>
</dependencies>

gradle

Copy
Copied
implementation 'xyz.groundx.caver:caver-java-ext-kas:X.X.X

You can download KAS SDK (caver-java extension) library for android in Gradle project like this:

Copy
Copied
implementation 'xyz.groundx.caver:caver-java-ext-kas:X.X.X-android

You can see the newest version of KAS SDK(caver-java extension) in the Release Page.

You can find more details about KAS SDK in References.