0.1.3 • Published 4 years ago

xek-sdk v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

XEK SDK

SDK for Katana Blockchain

Installation

npm install xek-sdk

Usage

const xekSdk = require('xek-sdk');

API

XEKSdk

createSendTx (from, to, amount, privateKey)

Utils

validateAddress(address)
validateBlock(height)
validateTxHash(hash)
isInt(n)
isUint(n)
fromXek(xek)
fromXek(amount)
subtraction(a,b)
bigNumToString(val,base)
encodeUtf8(text)
decode(buf)

API

getBlock (height)
getTransaction (txHash)
getAccountDetail (address)
getGetHistoryTransaction ({address, page, limit})
sendTransaction (tx)

Wallet

generateWallet(walletName, password)
verifyTransaction(tx)
encryptWallet(privateKey, password)
decryptWallet(cipherText, password)
restoreWallet(mnemonic, walletName, password)
getAddressFromPublicKey(publicKey)
createTx(from, to, amount, sequence, CHAINID)

License

MIT

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago