This application allows a user to view transaction data from the Ethereum blockchain associated with a specific wallet address W that the user inputs, starting with block B. The application should get information on:
-
wallets (addresses) and
-
amounts of ETH associated with transactions made to and from the given wallet W and
-
show them in a simple human-readable way (ideally, through a web page).
The application should collect and display ALL transaction data starting from the given block B.
If a user requests to view transactions associated with the address 0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f from block 9000000 to the current block, your application should be able to crawl and visualize all transaction data (addresses that have sent and received tokens from the address 0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f, and how much ETH was used for a given transaction) in that period of time.
Create an account on etherscan and generate an api Key.
Create an environment variable and Add the API_KEY.
enter an address in the address field and select a the date range you want to crawl transaction from using the startBlock and endBlock date picker. This will convert the date from the default format YYYY-MM-DD to the appropriate timestamp using moment and the unix function. The timestamp is the use to get the block for both the start and end Block using the api:
The start Block, endBlock and the address is then used to crawl all transactions occured to and fro the address given using the etherscan api as follow:
## Install Dependencies
```yarn```
## Start App on development
```yarn dev```
## Start App on prod
```yarn start```