uniklay
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

UniKlay

Current npm package version.

Unified interface module for Klip/Kaikas to interact with the Klaytn blockchain

import {
  KlaytnWalletKlipProvider,
  KlaytnWalletKaikasProvider,
} from 'uniklay'

const walletProvider = walletProvider === 'Klip'
  ? new KlaytnWalletKlipProvider({ // Klip
      bappName: 'UniKlay BApp',
    })
  : new KlaytnWalletKaikasProvider() // Kaikas

const klaytnWallet = new KlaytnWallet({
  networkStage: 'mainnet',
  walletProvider,
})

klaytnWallet.initialize() // Connect to wallet

klaytnWallet.address // 0x9c7377E72564EcD512a68672BA943AB48dBa0415
klaytnWallet.getKlaytnBalance()

Readme

Keywords

none

Package Sidebar

Install

npm i uniklay

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

20.8 kB

Total Files

19

Last publish

Collaborators

  • junhoyeo