📌 Challenge 19
"In this Challenge, I assumed the role of blockchain lead developer, working for a fintech startup. My goal is to integrate the Ethereum blockchain network into Fintech Finder application in order to enable customers to instantly pay the fintech professionals whom they hire with cryptocurrency. "
- Overview of the project
- Project goals
- Project steps
- Software version control
- Helps recruiters
- License
In this Challenge, I was task to complete the code that enables customers to send cryptocurrency payments to fintech professionals. To develop the code and test it out, we assume the perspective of a Fintech Finder customer who is using the application to find a fintech professional and pay them for their work.
To complete this Challenge, I am using two Python files:
-
fintech_finder.py contains the code associated with the web interface of the application. The code included in this file is compatible with the Streamlit library.
-
crypto_wallet.py contains the Ethereum transaction functions. By using import statements, I integrate the crypto_wallet.py Python script into the Fintech Finder interface program that is found in the fintech_finder.py file.
Integrating these two files allow the user to automate the tasks associated with generating a digital wallet, accessing Ethereum account balances, and signing and sending transactions via Ethereum’s Kovan testnet.
-
Generate a new Ethereum account instance by using your mnemonic seed phrase (which you created earlier in the module).
-
Fetch and display the account balance associated with your Ethereum account address.
-
Calculate the total value of an Ethereum transaction, including the gas estimate, that pays a Fintech Finder candidate for their work.
-
Digitally sign a transaction that pays a Fintech Finder candidate, and send this transaction to the Kovan testnet.
-
Review the transaction hash code associated with the validated blockchain transaction.
-
Once you receive the transaction’s hash code, you will navigate to Kovan’s Etherscan (Links to an external site.) website to review the blockchain transaction details
The steps for this Challenge are divided into the following sections:
Return the transaction hash from the send_transaction and display it on the application’s web interface.
Screen.Recording.2021-08-03.at.6.47.11.PM.mov
Provide screenshots from Etherscan that show the sender’s address balance and history, and the recipient's address balance and history.
##### Sender
##### Recipient
- crypto_wallet.py
- fintech_finder.py
# Import the required libraries and dependencies
import streamlit as st
from dataclasses import dataclass
from typing import Any, List
- Streamlit- is an open-source app framework for Machine Learning and Data Science teams.
- Dataclasses-a utility tool to make structured classes specially for storing data. These classes hold certain properties and functions to deal specifically with the data and its representation.
- Typing-provides runtime support for type hints. The most fundamental support consists of the types Any, Union, Tuple, Callable, TypeVar, and Generic.
- Repository created on GitHub
- Files were committed using command line
- Our repository is organized, and includes Resources folder with CSV project files,
- Jupyter Notebook with code runs without errors.
- Answers on nesassary questions are included
- Save remote repo from GitHub to your computer (Desktop): in Terninal type:
cd desktop
git clone https://github.com/nataliaburrey/Paying_Salary_With_Crypto.git
now you can find the repo Paying_Salary_With_Crypto on your desktop
-
In the terminal, navigate to the repository folder
-
In the terminal, run the Streamlit application by running the command
streamlit run fintech_finder.py
The project was created in collaboration with Berkeley Fintech Bootcamp team
📔 Contact me: 📩 [email protected]