Getting Started

KardiaChain JS SDK is a wrapper built on top of KardiaChain RPC protocol that helps developers to interact with KardiaChain’s blockchain network easily. Other than KardiaChain JS SDK, other Ethereum library such as web3, ethers can be used to interact with KardiaChain RPC too.

Installation

KardiaChain JS SDK can be installed from NPM

npm i kardia-js-sdk

Usage

import KardiaClient from 'kardia-js-sdk';
const RPC_ENDPOINT = 'YOUR_RPC_ENDPOINT';

const kardiaClient = new KardiaClient({ endpoint: RPC_ENDPOINT });

// Account module
const accountModule = kardiaClient.account;

// KAI module
const kaiModule = kardiaClient.kaiChain;

// Smart contract module
const smcModule = kardiaClient.contract;

// KRC20 module
const krcModule = kardiaClient.krc20;

// Transaction module
const transactionModule = kardiaClient.transaction;

Last updated