This is a Next.js app built with tailwindcss that allows to show last 10 transactions in the block for ethereum and polygon.
Demo: https://blockchain-transaction-explorer.vercel.app/
- The app will only show latest 10 transactions in the block
- sender's address balance is shown in the transaction details page
- currently, transaction details route will be the same for both ethereum and polygon. (Later, this can be separated by chain prefix)
To get started, follow these steps:
- Clone the repository:
git clone https://github.com/tiff0000/blockchain-transaction-explorer.git
- Install dependencies:
npm install
- Start the development server:
npm run dev
The app should now be running on http://localhost:3000.
pages/
- contains the pages of the apppublic/
- contains static files such as images and fontsstyles/
- contains global styles and tailwindcss configurationcomponents/
- contains reusable components used throughout the apphooks/
- contains custom React hooks used throughout the applib/
- contains utility functions and blockchain API integration
The app uses tailwindcss as its design system. Tailwindcss is a utility-first CSS framework that provides a set of pre-defined classes that can be used to quickly style the app. The styles/
folder contains the tailwindcss configuration file and any additional global styles.
The app also uses reusable components to provide a consistent design throughout the app. These components are located in the components/
folder and can be easily customized using tailwindcss classes.