I am building an angular based app with ionicframework. In this app the user shall be able to retrieve his balance of an erc-20 token. Using web3js's
web3.eth.getBalance(MY_ADDRESS) i have to retrieve this address and hand it to
Thank you very much for your detailed response!
I think I got a better idea of what an account an its address does. Unfortunately I am not directly included in developing the smart contract code and cannot provide it. I want to display an accounts balance of my token in the app. Thereafter I want to implement a voting system. Currently I plan on sending the public address as identifier, his balance and some information (what he is voting for) to a database.
I am simply not sure what this public address is and if I can be sure the user is going to what to enter if I simply prompt him to enter his "address".
Do you have different addresses for each erc-20 token?
Can one account have different addresses?
Do you need to have an account for each erc-20 token?
Is my general approach correct?
Any feedback appreciated and thanks in advance!
EDIT: I currently am planning to let the user enter a public address.