code: function (hash) {
    console.log('Pinning to IPFS...');
  
    return new Promise((resolve, reject) => {
      const options = {
        hostname: ipfsHost,
        port: ipfsProtocol === 'https' ? '443' : '8080',
        path: `/pins/${hash}`,
        method: 'POST'
      }
  
      const req = https.request(options, (res) => {
        res.setEncoding('utf8')
        res.on('data', (chunk) => { })
        res.on('end', () => resolve())
      })
  
      req.on('error', async (ex) => reject(new Error(`failed to pin hash "${hash}"; ${e.message || e}`)))
      req.on('timeout', async () => reject(new Error(`timeout during pinning of hash "${hash}"`)))
  
      req.write('')
      req.end()
    })
    .then(() => requestFileFromEVANIpfs(hash));
  }
docs: Requests the /pins/hash endpoint and try to load the hash afterwards
  @param {string} hash ipfs hash to pin