module
Version:
v0.0.0-...-8f01991
Opens a new window with list of versions in this module.
Published: Mar 13, 2025
License: MIT
Opens a new window with license information.
README
¶
Confirmix Blockchain Explorer
A modern blockchain explorer and smart contract management platform for the Confirmix PoA (Proof of Authority) blockchain.
Project Structure
blockchain/
├── cmd/
│ └── node/ # Blockchain node entry point
├── internal/
│ └── validator/ # Validator implementation
├── pkg/
│ ├── api/ # REST API implementation
│ ├── blockchain/ # Core blockchain implementation
│ ├── consensus/ # PoA consensus implementation
│ └── testing/ # Testing utilities
└── web/ # Frontend application
├── app/ # Next.js pages and routing
├── components/ # React components
├── contexts/ # React contexts
├── lib/ # Utility functions
├── services/ # API service layer
└── types/ # TypeScript type definitions
Working Components
Backend (Go)
-
Blockchain Core
- Block creation and validation
- Transaction processing
- Smart contract deployment and execution
- PoA consensus mechanism
-
Validator System
- Validator management
- Block signing and verification
- Authority rotation
-
API Server
- RESTful endpoints for blockchain interaction
- WebSocket support for real-time updates
- Contract deployment and interaction
Frontend (Next.js)
-
Overview Dashboard
- Blockchain statistics
- Recent blocks and transactions
- Network health indicators
-
Explorer
- Block explorer
- Transaction viewer
- Address lookup
-
Smart Contracts
- Contract deployment interface
- Contract verification
- Contract interaction UI
- Event monitoring
-
Validator Management
- Validator list and status
- Performance metrics
- Authority management
Setup and Running
- Start the blockchain node:
go run cmd/node/main.go
- Install web dependencies:
cd web
npm install
- Start the web application:
npm run dev
Environment Configuration
Backend
Default configuration:
- API Port: 8080
- WebSocket Port: 8081
Frontend
Configure in .env.local:
NEXT_PUBLIC_BLOCKCHAIN_API_URL=http://localhost:8080
NEXT_PUBLIC_BLOCKCHAIN_WS_URL=ws://localhost:8081
Future Development Plans
Short-term
-
Smart Contract Improvements
- Contract template library
- Batch deployment support
- Contract upgradeability
-
Explorer Enhancements
- Advanced transaction filtering
- Token tracking
- Gas analytics
-
Validator Features
- Validator performance metrics
- Automated health checks
- Slashing conditions
Long-term
-
Scalability
- Sharding support
- Layer 2 solutions
- State pruning
-
Security
- Audit logging
- Permission management
- Multi-signature support
-
Integration
- Cross-chain bridges
- Oracle integration
- API SDK development
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Directories
¶
Click to show internal directories.
Click to hide internal directories.