Sorry, I do not understand this very well. But with tokens (let's say those which follow ERC20), can one ethereum address own multiple tokens? How would one determine the names and balances of those tokens using JSON RPC or web3?
ERC-20 Tokens – How to See All Tokens Owned by an Account
erc-20tokens
Related Solutions
To see balance of an account you should do like this:
1- Go to Contracts Tab (If it is not there enable it in Settings)
2- Click Contract you already watch or add it then choose it.
3- Under balanceOf click on address
4- click on address you want to see it's balance or enter it.
5- Click on Query
6- You can see it's balance without Decimal corrections there.
To transfer your tokens to another account you should do like this:
1- Go to Contracts Tab (If it is not there enable it in Settings)
2- Click Contract you already watch or add it then choose it.
3- Click on "execute"
4- in from account, Choose the account you want to transfer from.
5- in function to execute, choose transfer
6- in to address choose destination address.
7- in value choose the amount you want to transfer (Please pay enough attention to Decimals, Send very small amounts to be sure)
8- Click on "post transaction."
There is no difference between a wallet containing BAT and one that does not (aside from the fact that one can send now send BAT tokens, of course). In fact, the BAT tokens are never actually stored in the wallet. The tokens are "stored" in the BAT contract -- and this is true of all ERC-20-compliant tokens. Each ERC-20 contract contains a mapping of wallet addresses to account balances. An ERC-20-aware wallet will know that the ERC-20's software interface has a balanceOf
function to examine token balances and some functions for transferring named transfer
and transferFrom
. You can think of "transfers to a wallet" as more of a "request to the relevant ERC-20 contract to hold tokens in trust on behalf of an owner of a wallet".
Since an account receiving a token doesn't actually receive any tokens (it's some number shifting in the token contract), to see if you have any tokens of a particular type, you need to query the mapping of the appropriate token. Some wallets may automatically check (AKA watch) some common tokens, but a fully-featured Ethereum wallet should be able to interact with any ERC-20 token; it just requires user input to direct its "attention" towards a particular ERC-20 contract. A non-fully-featured Ethereum wallet may not let you interact with the contract, even if you have received the tokens at your wallet address. In that case, you will need to export the private keys for the wallet and import them into a more featured wallet. Don't worry; those tokens aren't lost!
Best Answer
Yes, any ethereum can own multiple tokens.
You will need contract ABI and address of each contract to check balances. You can implement something like this: