Escrow dApp configured for Polkadot Network using Moonbeam Parachain (Moonbase Alpha TestNet).
- Seller create new transaction by input the unique Product ID, the buyer's address, and the price
- Anyone can check the transaction detail by input the Product ID
- Buyer pay the transaction amount, the smart contract will hold the money as Escrow
- Only buyer can pay and the status must be
Awaiting Payment
- Only buyer can pay and the status must be
- After receiving the item, buyer can confirm the delivery status. The smart contract will send the amount to the seller
- Only buyer can confirm and the status must be
Awaiting Delivery
- Only buyer can confirm and the status must be
- MetaMask wallet connected to Moonbase Alpha network: How to setup
- Get some token from the faucet: Faucet
- NodeJS >= 14
- Yarn:
npm i -g yarn
- Rename
.env.sample
file to.env.
- Copy your account PrivateKey from MetaMask wallet to the env file and put it beside
MOONBASE_KEY=
- Install dependencies and compile smart contract:
yarn install
- Deploy the contract to the blockchain network:
yarn deploy
- Get the deployed contract address from the console and copy to the env file, put it beside
REACT_APP_CONTRACT_ADDRESS=
- Run the application:
yarn start
- ReactJS
- TailwindCss
- Truffle box moonbeam
- Solidity
- Implement refund function on the front-end