https://github.com/selendra/explorer
A blocks explore for Selendra Blockchain
https://github.com/selendra/explorer
blockchain blockchain-explorer blockchain-platform selendra substrate-node
Last synced: about 1 month ago
JSON representation
A blocks explore for Selendra Blockchain
- Host: GitHub
- URL: https://github.com/selendra/explorer
- Owner: selendra
- License: apache-2.0
- Created: 2022-03-30T13:47:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T00:38:32.000Z (about 1 year ago)
- Last Synced: 2024-11-21T01:27:54.509Z (about 1 year ago)
- Topics: blockchain, blockchain-explorer, blockchain-platform, selendra, substrate-node
- Language: Rust
- Homepage: https://selendra.org
- Size: 7.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selendra Explorer
[](https://opensource.org/licenses/Apache-2.0)
Block explorer for the Selendra Network featuring a SurrealDB backend, archive services, and REST API endpoints.
## Quick Start
### Prerequisites
- Rust (latest stable)
- Docker and Docker Compose
- Git
### Installation
```bash
# Clone and setup
git clone https://github.com/selendra/explorer.git
cd explorer
cp .env.example .env
# Initialize and start services
./scripts/init.sh # Setup database
cargo run -p archive-service -- evm --block # Start archive service
cargo run -p explorer-api # Start API server
```
## Core Components
### Archive Service
Indexes blockchain data into SurrealDB.
```bash
# Development
cargo run -p archive-service --
# EVM Services
cargo run -p archive-service -- evm --account # Archive EVM accounts
cargo run -p archive-service -- evm --block # Archive EVM blocks
# Substrate Services
cargo run -p archive-service -- substrate --account # Archive Substrate accounts
cargo run -p archive-service -- substrate --block # Archive Substrate blocks
# Production
cargo build --release
./target/release/archive-service
```
### Explorer API
REST API built with Actix-web.
```bash
# Development
cargo run -p explorer-api
# Production
cargo build --release
./target/release/explorer-api
```
### API Documentation
- Swagger UI: http://localhost:8080/swagger-ui/index.html
- OpenAPI Spec: http://localhost:8080/api-docs/openapi.json
## Development
### Project Structure
```
selendra-explorer/
├── archive-service/ # Indexing service
├── api/ # REST API
├── scripts/ # Utilities
├── docker/ # Docker configs
├── db/ # Database
├── rust-client/ # Blockchain clients
├── config/ # Configuration
└── data/ # Storage
```
### Build & Test
```bash
# Build
cargo build # Debug
cargo build --release # Production
# Test
cargo test # All tests
cargo test -p api # Package specific
```
## Contributing
See [Contributing Guide](CONTRIBUTING.md) for guidelines and best practices.
## Resources
- [Website](https://selendra.org)
- [GitHub](https://github.com/selendra/explorer)
## License
[Apache License 2.0](LICENSE)