openbazaar.js
function getExchangeRate(config) {
  const options = {
    method: "GET",
    uri: `${config.obServer}:${config.obPort}/ob/exchangerate`,
    json: true, // Automatically stringifies the body to JSON
    headers: {
      Authorization: config.apiCredentials,
    },
    // resolveWithFullResponse: true
  };

  return rp(options);
}
function getExchangeRate(config) {
  const options = {
    method: "GET",
    uri: `${config.obServer}:${config.obPort}/ob/exchangerate`,
    json: true, // Automatically stringifies the body to JSON
    headers: {
      Authorization: config.apiCredentials,
    },
    // resolveWithFullResponse: true
  };

  return rp(options);
}
function getExchangeRate ( config ) { const options = { method : "GET" , uri : ` ${ config . obServer } ${ config . obPort } ` , json : true , // Automatically stringifies the body to JSON headers : { Authorization : config . apiCredentials , } , // resolveWithFullResponse: true } ; return rp ( options ) ; }
Get wallet balance
Get wallet balance