![]() ![]() Step 2: Sign and Execute a Payment Transaction Inside this function, call the get_balance function and pass it your Ethereum account.address. Within this same section of the fintech_finder.py file, define a new st.sidebar.write function that will display the balance of the customer’s account. This function will create the Fintech Finder customer’s (in this case, your) HD wallet and Ethereum account. ![]() Set this variable equal to a call on the generate_account function. Within the Streamlit sidebar section of code, create a variable named account. Toward the top of the file, after the import statements that are provided, import the following functions from the crypto_wallet.py file: When the information has been added, rename the file. Note that the Ethereum transaction functions that you have built throughout this module-including wallet, rive_acount, get_balance, fromWei, estimateGas, sendRawTransaction, and others-have now been incorporated into Python functions that allow you to automate the process of accessing them.Īdd your mnemonic seed phrase (provided by Ganache) to the starter code’s SAMPLE.env file. Review the code contained in the crypto_wallet.py script file. Therefore you will see in the code and the images that there is both a reduction in my wallet and the last transaction shows an increase in the wallet that I assigned to Lane. For this section, you will assume the perspective of a Fintech Finder customer (i.e., you’ll provide your Ethereum wallet and account information to the application).Ĭomplete the following steps: Also note that in the end I also amended the code so that Lane had an account address that was from my current Ganache that was utilising my Ethereum account address. In this section, you'll import several functions from the crypto_wallet.py script into the file fintech_finder.py, which contains code for Fintech Finder’s customer interface, in order to add wallet operations to the application. Step 1: Import Ethereum Transaction Functions into the Fintech Finder Application Import Ethereum Transaction Functions into the Fintech Finder Application.The steps for this challenge are broken out into the following sections: To confirm that you have successfully created the transaction, you will save screenshots to the README.md file of your GitHub repository for this Challenge assignment. Once you receive the transaction’s hash code, you will navigate to the Transactions section of Ganache to review the blockchain transaction details. Review the transaction hash code associated with the validated blockchain transaction. Generate a new Ethereum account instance by using the mnemonic seed phrase provided by Ganache.įetch and display the account balance associated with your Ethereum account address.Ĭalculate the total value of an Ethereum transaction, including the gas estimate, that pays a Fintech Finder candidate for their work.ĭigitally sign a transaction that pays a Fintech Finder candidate, and send this transaction to the Ganache blockchain. Specifically, you will assume the perspective of a Fintech Finder customer in order to do the following: Integrating these two files will allow you to automate the tasks associated with generating a digital wallet, accessing Ethereum account balances, and signing and sending transactions via a personal Ethereum blockchain called Ganache. By using import statements, you will integrate the crypto_wallet.py Python script into the Fintech Finder interface program that is found in the fintech_finder.py file. This file contains the Ethereum transaction functions that you have created throughout this module’s lessons. The second file that you will use is called crypto_wallet.py. You will write all of your code for this Challenge in this file. The code included in this file is compatible with the Streamlit library. It contains the code associated with the web interface of your application. The first file that you will use is called fintech_finder.py. To complete this Challenge, you will use two Python files, both of which are contained in the starter folder. To develop the code and test it out, you will assume the perspective of a Fintech Finder customer who is using the application to find a fintech professional and pay them for their work. In this Challenge, you will complete the code that enables your customers to send cryptocurrency payments to fintech professionals. As Fintech Finder’s lead developer, you have been tasked with integrating the Ethereum blockchain network into the application in order to enable your customers to instantly pay the fintech professionals whom they hire with cryptocurrency. Fintech Finder is an application that its customers can use to find fintech professionals from among a list of candidates, hire them, and pay them. You work at a startup that is building a new and disruptive platform called Fintech Finder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |