import KardiaClient, {KAIChain} from 'kardia-js-sdk';
const RPC_ENDPOINT = 'YOUR_RPC_ENDPOINT';
const kardiaClient = new KardiaClient({ endpoint: RPC_ENDPOINT });
// Account module
const accountModule = kardiaClient.account;
// Get balance
const balance = await accountModule.getBalance('YOUR_WALLET_ADDRESS');
const balanceInKAI = KAIChain.KAIFromHydro(balance);
import {KAIChain} from 'kardia-js-sdk';
const KAI_BALANCE = '1';
const balanceInHydro = KAIChain.HydroFromKAI(KAI_BALANCE);