1

I want to check ethereum balance of accounts by entering address in text box and click on check balance button it must show the balance in the account.

Please some one help with related links

My second requirement after login into wallet it must automatically display the balance of the account.

Thanks in advance.

3
  • Any details about what you're doing? Commented Sep 26, 2017 at 0:40
  • I want to search ethers in address and display the no of ethers in the account
    – swa
    Commented Sep 26, 2017 at 1:09
  • Have you even try to look for an answer online...? Commented Nov 25, 2017 at 3:18

1 Answer 1

1

As per my knowledge, you can do this by using web3, ethereum avascript API, which allows you to interact with an ethereum chain either via by RPC to a full node connected to the chain or by injected Web 3 (with metamask like plugin).The high level architecture would look like,

enter image description here

What you have to do is build your html interface, load a js file with web3 module imported and you can call eth.getBalance(account_address) with the onclick enevt of the button and display the return value.

If you want it to be displayed when the user logs in, send the same call at the page loading time (document-ready) and get the return value.

You may refer this question, posts here and here as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.