Token widget

The last widget is the token widget. This widget is responsible for watching the ERC20 token. Create token_widget.py inside the wallet_widgets directory. Go to the following GitLab link provided for the full code file in this section: https://gitlab.com/arjunaskykok/hands-on-blockchain-for-python-developers/tree/master/chapter_09/wallet/wallet_widgets.

This last widget is in the third tab of the main widget. The purpose here is to watch the ERC20 token and list all ERC20 tokens that have been watched. There is a button to launch an input dialog,a button to ask for the address of the ERC20 smart contract token, and then there is a vertical layout that displays all ERC20 tokens:

from PySide2.QtWidgets import (QWidget, QGridLayout, ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.