UNPKG

xek-sdk

Version:

SDK for katana blockchain

33 lines (24 loc) 763 B
# Class XEKSdk ## Properties - webAPI : instance of class API - wallet : instance of Wallet - utils : instance of Utils - CHAINID : chain identify of blockchain. ## Constructor - `new XEKSdk(chain, api)` + Parameters: + chain: chain id of blockchain + api: uri of api server + Returns: instance of class XEKSdk ## Methods - `createSendTx (from, to , amount, privateKey)` + Parameters: + from: address of sender + to: address of receiver + amount: amount of token will be sent + privateKey : private key of sender, which is used to sign transaction. + Returns: + Success:(Promise) transaction hash of transaction. + Other: Error ## Source code - [code](#)