Selling Files
Introduction​
Selling files is one of the three interactions an end-user can do on Fileshop.
Steps​
The user first connects their wallet to the app. This can be done in one of two ways:
- Connecting directly i.e. the MetaMask browser extension
- Using WalletConnect to connect to other hardware or software wallets.
The user then fills out the name for the file/files and uploads them. The uploaded files will be previewed in a table below the filename. The user can also upload an image that will be used as a thumbnail for the sale. Only valid image types are supported for the thumbnail. Click
Next
.On the next screen the user can set the pricing and payment information for the sale. Currently the pricing can only be set in USD with the final amount being the BCH amount below it.
The user can choose whether they want to add other Stakeholders or not.
A table will appear when the user wants stakeholders. This table will have the seller's wallet address and the percentage payout they will receive (default is 100%) of the revenue per sale. The user can then add stakeholder by entering in the the wallet address and percentage payout for that stakeholder. They can add as many stakeholders as they want but the total payout from the table must be 100%.
The user can choose whether they want to allow Promotion by adjusting the percentage payout for the promoter to be any value larger than 0 (0% being the default and no promoters will be allowed).
Once the user has enter all the required information they can click the
Sell
button. The files will be compressed, encrypted and uploaded to IPFS and then the smart contract will be deployed which can take some time depending on the size of your files and the traffic of the SmartBCH network.When the contract is ready to be deployed the transaction will be sent to the user's hardware or software wallet. The user must then confirm the cost of deploying the smart contract as well as the transaction to the blockchain.
Once the user accepts the fees and the transaction is processed a success screen will be shown. This screen has the link for the sale which the user can share with their audience or community in order for them to buy the file/files.
NOTE: Make sure to save the sale link in a safe place. If you refresh the page or lose it you will have to create and pay for a new sale.