Sending a transaction widget

The second widget is SendWidget. Create a file named send_widget.py inside the wallet_widgets directory. This widget is responsible for sending ethers or coins from the ERC20 token. For the full code in this section, go to the following GitLab link: https://gitlab.com/arjunaskykok/hands-on-blockchain-for-python-developers/tree/master/chapter_09/wallet/wallet_widgets.

This widget is the most complex in the tabbed window. In this widget, we need to select the account of the sender, and then, based on that account, we need to display the balance of ethers or coins relative to the ERC20 token for this account. Whether or not the balance is displayed in ethers or ERC20 tokens is decided based on whether Ethereum or ...

Get Hands-On Blockchain for Python Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.