Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 745 Bytes

ripple.md

File metadata and controls

51 lines (41 loc) · 745 Bytes

API of Ripple Wallet

Usage

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

isValidAddress

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

isValidSecret

/**
 * check ripple 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 ripple wallet
 *
 * @returns {IWalletModel}
 */