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?

1
  • 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, 2018 at 14:04

1 Answer 1

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.

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

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