Ethereum Graph Viewer is a D3.js-based web application that visualizes Ethereum transaction relationships. It allows users to enter an Ethereum address and view a graph representing the transaction interactions with the given address up to a specified depth level.
- Ethereum Address Input: Users can input any valid Ethereum address.
- Graph Depth Selection: Users can select the depth of the graph (1 to 3) to control the granularity of the visualization.
- Interactive Graph: The rendered graph is interactive, allowing users to zoom in/out and click on nodes for more information.
To set up the Ethereum Graph Viewer on your local machine, follow these steps:
-
Clone the Repository
git clone [repository URL] cd ethereum-graph-viewer
-
Install Dependencies
npm run build
-
Environment Variables
- Create a
.env
file in the root directory. - Add the following line (replace
<YOUR_ETHERSCAN_API_KEY>
with your actual Etherscan API key):ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_API_KEY>
- Create a
-
Start the Application
npm run start
Once the application is running:
- Navigate to
http://localhost:3000
(or the configured port). - Enter an Ethereum address in the input box.
- Select the desired graph depth.
- Click on "Show Graph" to visualize the Ethereum address interactions.