Skip to content

arudnytskyi/Bank-Account-dApp

Repository files navigation

Bank Account With Multiple Approvals dApp

This project provides a smart contract that allows for creating joint bank accounts. Each bank account can have up to 4 owners, each of which must approve any withdrawl of funds. As well as completed contract there is are automated test cases and front-end applications that allows you to interact with some functionality of the contract.

Getting Started

To test and deploy the smart contract follow the steps below.

  1. Install Node.js
  2. Clone the repository: git clone https://github.com/arudnytskyi/Bank-Account-dApp.git
  3. cd Bank-Account-dApp
  4. npm install
  5. To test the contract run npx hardhat test
  6. To deploy the contract to your localhost network do the following:
    • npx hardhat node
    • npx hardhat run --network localhost ./script/deploy.js

Using the Frontend

  1. Install the Liveserver Extension in VSCode.
  2. Open base.html
  3. Click the button that says "Go Live" in the bottom right hand corner of your VSCode.
  4. Import any accounts you need into MetaMask and change your MetaMask network to "Hardhat".
  5. Interact with the contract!

About

dApp for joint bank accounts using multi-signature approvals for withdrawals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published