This project illustrates how you can build and run a secure contract for buying and selling of a commodity without any intermediaries
IDE - Visual Studio Code with Remix Extension or use Remix IDE Node.js
Solidity
- Compile the project
- Select the address for the seller, set value (price ) and deploy.
- After deployment, change the address to that of the buyer, the enter the value( same as one set by the seller) and then Confirm Purchase (transact).
- Confirm received.
- Then switch the address to that of the seller and call the paySeller function