code: function sendMoney(config, moneyObj) {
    const defaultObj = {
      feeLevel: "ECONOMIC",
    };
  
    // Add default values to the moneyObj if they are not already assigned.
    Object.assign(moneyObj, defaultObj);
  
    const options = {
      method: "POST",
      uri: `${config.obServer}:${config.obPort}/wallet/spend`,
      json: true, // Automatically stringifies the body to JSON
      body: moneyObj,
      headers: {
        Authorization: config.apiCredentials,
      },
      // resolveWithFullResponse: true
    };
  
    return rp(options);
  }
docs: Send Money (Will send whatever cryptocurrency the server is configured for). /*
  moneyObj:
  address: Address for the selected cryptocurrency.
  amount: Amount in satoshis
  feeLevel: 'NORMAL' or 'ECONOMIC'. Defaults to 'ECONOMIC'
  memo: Optional note.