Cara Mendapatkan Data dari IPFS

//using fetch 
const response = await fetch(ipfs_url);

if(!response.ok)
  throw new Error(response.statusText);

const json = await response.json();

//using ipfs
const ipfs = await IPFS.create();
const result = await ipfs.cat(cid);
elcharitas