api/transactions.js
function getTransactionAndRespond(account, identifier, options, callback) {
  getTransaction(
    this,
    account,
    identifier,
    options,
    function(error, transaction) {
      if (error) {
        callback(error);
      } else {
        callback(null, {transaction: transaction});
      }
    }
  );
}
function getTransactionAndRespond(account, identifier, options, callback) {
  getTransaction(
    this,
    account,
    identifier,
    options,
    function(error, transaction) {
      if (error) {
        callback(error);
      } else {
        callback(null, {transaction: transaction});
      }
    }
  );
}
function getTransactionAndRespond ( account , identifier , options , callback ) { getTransaction ( this , account , identifier , options , function ( error , transaction ) { if ( error ) { callback ( error ) ; } else { callback ( null , { transaction : transaction } ) ; } } ) ; }
Wrapper around getTransaction function that is
meant to be used directly as a client-facing function.
Unlike getTransaction, it will call next with any errors
and send a JSON response to the client on success.

See getTransaction for parameter details
Wrapper around getTransaction function that is meant to be used directly as a client - facing function . Unlike getTransaction it will call next with any errors and send a JSON response to the client on success .