sdk.js
function generateTransactionRequest(signer, transaction, options) {
  let iou = {
    amt: transaction.amount,
    cur: transaction.currency,
    sub: signer.address,
    aud: transaction.destination,
    nce: String(Math.floor(Math.random() * 1000000000))
  };

  return createTransactionRequestStatement(signer, iou, options);
}
function generateTransactionRequest(signer, transaction, options) {
  let iou = {
    amt: transaction.amount,
    cur: transaction.currency,
    sub: signer.address,
    aud: transaction.destination,
    nce: String(Math.floor(Math.random() * 1000000000))
  };

  return createTransactionRequestStatement(signer, iou, options);
}
function generateTransactionRequest ( signer , transaction , options ) { let iou = { amt : transaction . amount , cur : transaction . currency , sub : signer . address , aud : transaction . destination , nce : String ( Math . floor ( Math . random ( ) * 1000000000 ) ) } ; return createTransactionRequestStatement ( signer , iou , options ) ; }
Generates a transaction request document in the form of an IOU
@param {Object} signer - Wallet whose private key is to be used for signing the IOU
@param {Object} transaction - Transaction parameters
@param {Object} options
@return {Object} - A cryptographically signed IOU
Generates a transaction request document in the form of an IOU