Explorer
The Protokit Explorer is a web-based interface for browsing and inspecting your app-chain in real time. It allows you to view blocks, batches, transactions, and settlement data through a simple UI.
Features
The Explorer provides comprehensive views of your app-chain data:
- Dashboard: Overview with real-time statistics and recent activity
- Blocks: Browse and search blocks with detailed information
- Batches: View batches informations and contained blocks
- Transactions: Explore transactions details, status, and execution results
- Settlements: Track settlements transactions and their status
Starting the Explorer
The easiest way to run the Explorer is using the Protokit CLI, which handles Docker image pulling and container management automatically.
pnpm protokit explorer startThis will:
- Pull the latest Explorer Docker image (
ghcr.io/proto-kit/explorer:latest) - Start the Explorer on port
5003 - Connect to the indexer at
http://localhost:8081/graphql(default)
The Explorer will be available at http://localhost:5003.
Configuration Options
You can customize the Explorer using CLI flags:
pnpm protokit explorer start \
--port 3000 \
--indexer-url http://localhost:8081/graphql \
--dashboard-title "My App-Chain Explorer" \
--dashboard-slogan "Explore the blockchain" \
--explorer-image ghcr.io/proto-kit/explorer:latest| Option | Default | Description |
|---|---|---|
--port | 5003 | Port to run the Explorer on |
--indexer-url | http://localhost:8081/graphql | GraphQL endpoint URL for the indexer |
--dashboard-title | Protokit Explorer | Title displayed in the Explorer dashboard |
--dashboard-slogan | Explore your Protokit AppChain | Slogan displayed in the Explorer |
--explorer-image | ghcr.io/proto-kit/explorer:latest | Docker image used for the Explorer UI |
Prerequisites
- Docker: The CLI runs the Explorer in a Docker container.
- Indexer: A running indexer service reachable at the URL provided via
--indexer-url(or the defaulthttp://localhost:8081/graphql).
Customization
The Explorer is built with Next.js and can be customized:
- Branding: Modify the title and slogan via environment variables
- Styling: The Explorer uses Tailwind CSS and can be themed
- Components: Built with Radix UI primitives and shadcn/ui components
For advanced customization, clone the Explorer repository and modify the source code.