A Next.js-based crypto project that fetches and visualizes blockchain data for Bitcoin (BTC) and Litecoin (LTC). Features include fetching the latest blocks over predefined intervals (24H, 3D, 1M, 1Y), real-time updates via WebSocket, and Redis caching for efficient data retrieval. Displays mining-related graph visualizations such as block fee rates, block fee vs subsidy, and block rewards using React Chart.js.
Project created as a university project:
DPR013 - Cryptocurrency Technologies
University of Split - University Department of Professional Studies
- papic_projekt.pdf - Project paper
Blockchain Explorer: Confirmed Blocks
Figure 1: A menu with time intervals and a real-time display of the blockchain.
Block Fee Rates (Graphs)
Figure 2: Visual representation of block fee rates over 24 hours.
Figure 3: Visual representation of block fee rates over 3 days.
Figure 4: Visual representation of block fee rates over 1 week.
Figure 5: Visual representation of the maximum block fee rates over 1 week.
Block Fees Vs Subsidy (Graphs)
Figure 6: Visual representation of block fees vs subsidy for Bitcoin over 1 week.
Figure 7: Visual representation of block fees vs subsidy as a percentage over 1 week.
Block Rewards (Graphs)
Figure 8: Visual representation of block rewards in BTC and USD over 1 week.
Figure 9: Visual representation of the total block value in BTC over 1 week.
- Node.js
- npm
- Docker
- Access credentials for the RPC server
- Clone the repository
git clone git@github.com:anamarijapapic/crypto-project.git
- Position to the project folder
cd crypto-project - Create a
.envfile from the.env.examplefilecp .env.example .env
- Fill in the environment variables with your own values.
- Install the dependencies
npm install
- Start Redis via Docker
docker run -p 6379:6379 -it redis/redis-stack-server:latest
- Start the development server
npm run dev
- Open http://localhost:3000 with your browser to see the result.