async function start(contractName) {
  console.log(`\nCalling /start(${contractName})`);
  return new Promise((resolve, reject) => {
    const options = {
      url: `${url}/start`,
      method: 'POST',
      json: true,
      headers: { contractname: contractName },
      // body:, // no body
    };
    request(options, (err, res, body) => {
      if (err) reject(err);
      else resolve(body.data);
    });
  });
}
/**
Start the event filter in the merkle-tree microservice, for the given contract
*/
Start the event filter in the merkle-tree microservice, for the given contract
Start the event filter in the merkle - tree microservice for the given contract
async function start(contractName) {
  console.log(`\nCalling /start(${contractName})`);
  return new Promise((resolve, reject) => {
    const options = {
      url: `${url}/start`,
      method: 'POST',
      json: true,
      headers: { contractname: contractName },
    };
    request(options, (err, res, body) => {
      if (err) reject(err);
      else resolve(body.data);
    });
  });
}
async function start ( contractName ) { console . log ( ` \n ${ contractName } ` ) ; return new Promise ( ( resolve , reject ) => { const options = { url : ` ${ url } ` , method : 'POST' , json : true , headers : { contractname : contractName } , } ; request ( options , ( err , res , body ) => { if ( err ) reject ( err ) ; else resolve ( body . data ) ; } ) ; } ) ; }
Start the event filter in the merkle-tree microservice, for the given contract
Start the event filter in the merkle - tree microservice for the given contract
// body:, // no body