/infura-ipfs

Sample application to demo uploading file to IPFS using Infura

Primary LanguageJavaScript

dApp Description

Our dApp will take file as an input from user and upload it to IPFS by invoking Ethereum contract. The hash of the file will be stored on Ethereum.

  1. Take file as an input
  2. Convert file to buffer
  3. Upload buffer to IPFS
  4. Store hash of file returned by IPFS
  5. Get user’s Metamask Ethereum address
  6. User confirms transaction to Ethereum via Metamask
  7. IPFS hash is written on Ethereum

Tech Stack Involved

•React — Front end library

•Solidity — The language used to build smart contracts that runs on Ethereum

•IPFS — Decentralized storage

•Infura —API access to Ethereum network and IPFS