1

I am developing an eBay DAPP as my second project.

The transactions are taking time. How to reduce transaction times?

Moreover, I want to add an image uplaod option too. Where should I store the image? On blockchain or IPFS? How?

marked as duplicate by Richard Horrocks, Achala Dissanayake, flygoing, ivicaa, Roman Frolov Feb 25 '18 at 6:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Any reference for ipfs and solidity. That is Solidity code to upload media directly to ipfs in a dapp and just include hash in the dap – Rakesh Feb 24 '18 at 14:04
0

Images shouldn't be stored on the blockchain only their fingerprints (if you need it). As you're already suggesting, IPFS is a good solution for that. If you want to learn about IPFS you can start here https://ipfs.io/docs/getting-started/

You could also use BitTorrent or Swarm for this. See this post for the difference between Swarm and IPFS -> What is the difference between Swarm and IPFS?

About transaction times: You can speed this up to some extent by requiring users to pay larger transaction fees. However, even if transactions are immediately included in the next block you will at least have the block times, which are around 15s in Ethereum.

  • Only ipfs or any other methods.? – Rakesh Feb 24 '18 at 6:09
  • I've extended the answer. – ivicaa Feb 24 '18 at 6:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.