Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get data from 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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #ipfs
ADD COMMENT
Topic
Name
3+5 =