src/functions.js
/**
 * Sample read function. Read account liquid balance in WAX
 * 
 * @param {string} user Name account
 * @returns liquid balance
 */
Sample read function. Read account liquid balance in WAX

@param {string} user Name account
@returns liquid balance
Sample read function . Read account liquid balance in WAX @param { string } user Name account @returns liquid balance
async function readFunds(user) {
    const account = await rpc.get_account(user);
    if (account.account_name === undefined) 
        throw Error('Reading error!');
    return account.core_liquid_balance;
}
async function readFunds ( user ) { const account = await rpc . get_account ( user ) ; if ( account . account_name === undefined ) throw Error ( 'Reading error!' ) ; return account . core_liquid_balance ; }
Sample read function.
Sample read function .