Ethereum: Get historical balance of ETH and ERC-20 tokens
Understanding the Historical Balance of Ethereum and ERC-20 Tokens
As a developer or investor interested in blockchain technology, tracking your Ethereum (ETH) and ERC-20 token balances is essential for making informed decisions. In this article, we will explore how to get historical balances of ETH and ERC-20 tokens using web tools like Etherscan.
What are ERC-20 tokens?
ERC-20 tokens are a type of decentralized smart contract token that runs on the Ethereum blockchain. They can be used as a medium of exchange for goods and services or as an investment vehicle. ERC-20 tokens are designed to be compatible with the Ethereum network, allowing them to interact with the Ethereum ecosystem.
Getting Historical Balances for ETH and ERC-20 Tokens
To get historical balances for ETH and ERC-20 tokens, you will need to:
- Get familiar with Etherscan: Etherscan is a popular web tool that provides access to Ethereum blockchain data, including transaction history. To use Etherscan, go to [ and create an account.
- Use the “Historical Balances” feature
: On Etherscan, navigate to the “Wallet” or “Account” tab and click on the “Historical Balances” link. This will take you to a page that displays a list of historical transactions related to your wallet or account.
- Filter by Token: On the “Historical Balances” page, you can filter the results by selecting the ERC-20 tokens you are interested in, such as ETH (Ethereum), DAI (DAI), or BAT (Binance Smart Chain).
- Sort and Paginate Results: You can sort historical balances by date, number of blocks, or number of transactions to refine your search.
- Download Data: After filtering and sorting the results, click the “Download” link to export the data to CSV or other compatible formats.
Example of Historical Balances for ETH and ERC-20 Tokens
Here is an example of what historical balances might look like for a user who holds ETH (Ethereum) and DAI (DAI) tokens:
| Date | Block Number | Ether | Ethereum Address | DAI |
| — | — | — | — | — |
| 2022-01-01 | 1 | 10.5 | 0x1234567890abcdef | 100.0 |
| 2022-02-01 | 5 | 20.8 | 0x234567890defghijklmn | 80.0 |
| 2022-03-01 | 10 | 30.1 | 0x3456789012345678 | 100.0 |
Conclusion
Getting historical balances for ETH and ERC-20 tokens is a simple process that requires familiarity with the Etherscan web toolkit. By filtering by ticker, sorting the results, and downloading the data in CSV format, you can easily track the balance of these tokens over time.
Additional Resources
- Etherscan: [
- Ethereum Blockchain Documentation: [
- ERC-20 Token Specifications: [ /main/README.md#token-specifications)
By following these steps and using the Etherscan web tool, you can gain valuable insight into the historical balances of ETH and ERC-20 tokens, helping you make informed decisions about investing or trading in these assets.