api/settings.js
function getSettings(account, callback) {
  validate.address(account);

  this.remote.requestAccountInfo({account: account}, function(error, info) {
    if (error) {
      return callback(error);
    }

    var data = info.account_data;
    var settings = {
      account: data.Account,
      transfer_rate: '0'
    };

    // Attach account flags
    _.extend(settings, TxToRestConverter.parseFlagsFromResponse(data.Flags,
      constants.AccountRootFlags));

    // Attach account fields
    _.extend(settings, parseFieldsFromResponse(data,
      constants.AccountRootFields));

    settings.transaction_sequence = String(settings.transaction_sequence);

    callback(null, {settings: settings});
  });
}
function getSettings(account, callback) {
  validate.address(account);

  this.remote.requestAccountInfo({account: account}, function(error, info) {
    if (error) {
      return callback(error);
    }

    var data = info.account_data;
    var settings = {
      account: data.Account,
      transfer_rate: '0'
    };

    // Attach account flags
    _.extend(settings, TxToRestConverter.parseFlagsFromResponse(data.Flags,
      constants.AccountRootFlags));

    // Attach account fields
    _.extend(settings, parseFieldsFromResponse(data,
      constants.AccountRootFields));

    settings.transaction_sequence = String(settings.transaction_sequence);

    callback(null, {settings: settings});
  });
}
function getSettings ( account , callback ) { validate . address ( account ) ; this . remote . requestAccountInfo ( { account : account } , function ( error , info ) { if ( error ) { return callback ( error ) ; } var data = info . account_data ; var settings = { account : data . Account , transfer_rate : '0' } ; // Attach account flags _ . extend ( settings , TxToRestConverter . parseFlagsFromResponse ( data . Flags , constants . AccountRootFlags ) ) ; // Attach account fields _ . extend ( settings , parseFieldsFromResponse ( data , constants . AccountRootFields ) ) ; settings . transaction_sequence = String ( settings . transaction_sequence ) ; callback ( null , { settings : settings } ) ; } ) ; }
Retrieves account settings for a given account

@url
@param {String} request.params.account
Retrieves account settings for a given account