Skip to main content

Buying Files

Introduction​

Buying files is one of the three interactions an end-user can do on Fileshop.

Steps​

  1. The user first connects their wallet to the app. This can be done in one of two ways:

    1. Connecting directly i.e. the MetaMask browser extension
    2. Using WalletConnect to connect to other hardware or software wallets.
  2. Once the user's wallet is connected they can click the Buy button. The user's wallet will make a signature request which is used to verify that the user owns the wallet address being used for the purchase. This step also confirms if you have previously bought the file in which case you will be brought directly to the download screen.

  3. The purchase transaction will then be sent to the users wallet. This transaction will indicate the cost of purchasing the file/files and the estimated gas costs of deploying the transaction to the blockchain.

  4. Once the user accepts the fees and the transaction is processed the download screen will be shown. The user can then click the Download button and depending on the size of the file/files it may take a while to download and decrypt. The user will download a compressed file of the file/files. The user can then decompress it on their own machine.

NOTE: If the user refreshes the page the purchase will be cleared and the user will need to click the Buy button again and perform the signature request.