Brocoscan: Solana Blockchain Explorer
This repository provides a starter code and guide for building a customizable Solana blockchain explorer using @solana/web3.js and ReactJS. It's designed for developers to experiment with real-time monitoring of blocks, transactions, accounts, and tokens on Solana, simplifying integration via Shyft API.
Built on top of Create React App with custom overrides. Inspired by Solana ecosystem tools and explorers like Solscan.
(If deployed, add link here, e.g., https://brocoscan.vercel.app/)
- Real-time fetching of Solana data (blocks, transactions, tokens).
- Integration with Shyft API for easy RPC access.
- Support for Devnet and Mainnet configurations.
- Basic UI for navigation and data display.
- Educational setup with video guide.
Note: Use Devnet for testing to avoid real costs. Secure your API keys — never commit them to Git!
- VS Code Editor
- Node.js v18.12.1 or later (download here)
- NPM v8.19.2 or later
- Shyft API Key (get one here)
- Solana Wallet (e.g., Phantom) for optional interactions
- Clone the repository:
git clone https://github.com/BroccoliFin/Brocoscan.git
- Navigate to the project directory:
cd Brocoscan - Install dependencies:
npm install
Copy .env.example to .env and fill in:
REACT_APP_API_EP=YOUR_RPC_URL
REACT_APP_API_KEY=YOUR_SHYFT_API_KEY
REACT_APP_GA_ID=YOUR_GOOGLE_ANALYTICS_ID
REACT_APP_RPC_MAINNET=MAINNET_RPC_URL
For Shyft docs, visit Shyft Documentation.
Start the development server:
npm run devOpen http://localhost:3000 in your browser.
Watch the setup and demo: YouTube Video (replace with actual link).
- Configure your .env with Shyft API key and RPC.
- Run the app with npm run dev.
- Explore Solana data: Search addresses, view blocks/transactions.
- Customize: Add features like wallet connection or advanced filters.
Warning: This is experimental; audit for production. Review API usage limits.
Key libraries (from package.json):
- Blockchain: @solana/web3.js.
- UI/State: react, react-dom, react-scripts.
- Others: Shyft API integration, Google Analytics.
Full list: See package.json.
Run npm outdated to check. Update cautiously to avoid breaking changes.
- Fork the repo.
- Create a feature branch: git checkout -b feature/new-feature.
- Commit changes: git commit -m 'Add new feature'.
- Push: git push origin feature/new-feature.
- Open a Pull Request.
MIT License - see LICENSE for details.
- GitHub: https://github.com/BroccoliFin
- X (Twitter): https://x.com/broccolifinance
- Telegram: https://t.me/mike2money
