Skip to content

nhtung96/simple-wallet-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Wallet dApp

This app allows to manage user accounts and blockchain addresses, handle transactions as well as tracking tracsaction history in Python & Flask & Web3 with Ganache used to run tests and inspect state while controlling how the chain operates.

Getting Started

  1. Download Ganache (https://trufflesuite.com/ganache/) and start Ganache workplace (https://trufflesuite.com/docs/ganache/quickstart/). ./ganache-2.7.0-linux-x86_64.AppImage -p 7545
  2. Install MongoDB server (UI compass is an optional): https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows/
  3. Clone the directory, then cd simple-wallet-dapp
  4. Install packages: pip install -r requirements.txt
  5. Run the following command: python app.py then you will see app is running on http://127.0.0.1:5000 or http://localhost:5000

Description

Account

  • Create Account: localhost:5000/register
  • Log in: localhost:5000/login

Wallet

Contains information and actions regarding user wallet such as address, private key, balance, ... or create, restore wallet, sh

  • Account Info (List of Wallets):

    localhost:5000/account

  • Create Wallet:

    localhost:5000/create

  • Restore Wallet:

    localhost:5000/restore

  • Wallet Information:

    localhost:5000/wallet_info

  • Show private key:

    localhost:5000/restore_by_keystore

Transaction

Handles transactions

  • Handle transactions:

    localhost:5000/transaction

  • View transactions history:

    localhost:5000/history

File Contents

  • account/wallet.py - Implements functionality to generate wallet, address & private key and other security related algorithm or function
  • account/wallet_model.py - Implements functionality related to Wallet's database such as insert, remove wallet, check wallet is existed, ...
  • user/user_model.py - Implements functionality related to User's database such as insert, load user info, check user is existed, ...
  • user/schema.sql - Define table schemas
  • templates/ - Contains HTML files
  • app.py - Contains all the routes for app

Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published