Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 731 Bytes

moac.md

File metadata and controls

51 lines (41 loc) · 731 Bytes

API of Moac Wallet

Usage

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

isValidAddress

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

isValidSecret

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

getAddress

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

createWallet

/**
 * create moac wallet
 *
 * @returns {IWalletModel}
 */