Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 845 Bytes

call.md

File metadata and controls

52 lines (42 loc) · 845 Bytes

API of Call Wallet

Usage

const callWallet = require('jcc_wallet').callWallet
// import { callWallet } from 'jcc_wallet'

isValidAddress

/**
 * check call address is valid or not
 *
 * @param {string} address
 * @returns {boolean} return true if valid
 */

isValidSecret

/**
 * check call secret is valid or not
 *
 * @param {string} secret
 * @returns {boolean} return true if valid
 */

getAddress

/**
 * get call address with secret
 *
 * @param {string} secret
 * @returns {(string | null)} return address if valid, otherwise return null
 */

createWallet

/**
 * create call wallet
 *
 * @param {ICreateCallOptionsModel} [opt={}]
 * @returns {(IWalletModel | null)} return IWalletModel if succress, otherwise return null
 */