September 2019
Beginner to intermediate
540 pages
13h 3m
English
The MY WALLET INFO page has three functions:
Display wallet information: To display wallet information, we can utilize the web3 API. We have discussed similar APIs before; here is the code:

Note that web3.eth.getBalance() is to get user ether balance.
Display owned digital products: the DigitalArt smart contract defines the findMyArt() method and returns the list of current tokenIds for the wallet owner. With tokenId, we can perform a query on the findArt() method to get the details of each digital art product, including ...
Read now
Unlock full access