async apiGetAccount(username)
    {
        const currentInstance = this;
        return new Promise((resolve, reject) => {
            currentInstance.reconnect();
            currentInstance.connection.api.getAccounts([username], function (err, result) {
                if (err) {
                    reject(err);
                } else {
                    if (result.length) {
                        resolve(result[0]);
                    } else {
                        reject(new Error(sprintf(
                            `Account "%s" not found in "%s" BlockChain.`
                            , username
                            , currentInstance.name
                        )));
                    }
                }
            });
        });
    }
/**
     * Provides account information for specified username
     * @param {string} username
     * @returns {Promise<Object>}
     */
Provides account information for specified username
@param {string} username
@returns {Promise}
Provides account information for specified username @param { string } username @returns { Promise }
async apiGetAccount(username)
    {
        const currentInstance = this;
        return new Promise((resolve, reject) => {
            currentInstance.reconnect();
            currentInstance.connection.api.getAccounts([username], function (err, result) {
                if (err) {
                    reject(err);
                } else {
                    if (result.length) {
                        resolve(result[0]);
                    } else {
                        reject(new Error(sprintf(
                            `Account "%s" not found in "%s" BlockChain.`
                            , username
                            , currentInstance.name
                        )));
                    }
                }
            });
        });
    }
async apiGetAccount ( username ) { const currentInstance = this ; return new Promise ( ( resolve , reject ) => { currentInstance . reconnect ( ) ; currentInstance . connection . api . getAccounts ( [ username ] , function ( err , result ) { if ( err ) { reject ( err ) ; } else { if ( result . length ) { resolve ( result [ 0 ] ) ; } else { reject ( new Error ( sprintf ( ` ` , username , currentInstance . name ) ) ) ; } } } ) ; } ) ; }
Provides account information for specified username
 @param {string} username
 @returns {Promise<Object>}
Provides account information for specified username @param { string } username @returns { Promise<Object > }