This is the official API and block explorer for Bitcoin Stamps. It provides a comprehensive interface for exploring Bitcoin Stamps transactions and metadata, working in conjunction with the Bitcoin Stamps Indexer.
- Full Bitcoin Stamps block explorer
- API with OpenAPI/Swagger documentation
- Support for SRC-20, SRC-721, and SRC-101 token standards
-
Install Deno
⚠️ Required Version: 2.1.5curl -fsSL https://deno.land/install.sh | sh
Add Deno to your path:
echo 'export DENO_INSTALL="$HOME/.deno"' >> ~/.bashrc echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Required Services
- MySQL/MariaDB (with read-only user access)
- Redis (for caching)
- Bitcoin Stamps Indexer database
-
Clone the repository:
git clone https://github.com/stampchain-io/bitcoin-stamps-explorer.git cd bitcoin-stamps-explorer
-
Environment Setup
cp .env.sample .env # Edit .env with your configuration
⚠️ IMPORTANT: Ensure DB_USER has READ-ONLY permissions for security!
# Start development server with hot reload and debugging
deno task dev
# Code quality checks (formatting, linting, type checking)
deno task check
# Update Fresh framework
deno task update
# Decode SRC-20 transactions
deno task decode
deno task decode_olga
# Run schema validation
deno task validate:schema
-
Build the project:
deno task build
-
Start production server:
deno task start
Docker deployment is also supported:
docker build -t btc-stamps-explorer:2.1.5 .
docker run -p 8000:8000 btc-stamps-explorer:2.1.5
The container uses:
- Deno 2.1.5 Alpine base image
- Production environment
- Port 8000
- Required permissions for network, file system, and environment variables
For development with Docker:
# Build with development tag
docker build -t btc-stamps-explorer:dev .
# Run with mounted volumes for development
docker run -p 8000:8000 \
--env-file .env \
-v $(pwd):/app \
btc-stamps-explorer:dev deno task dev
- OpenAPI/Swagger documentation available at
/docs
- Schema validation with
deno task validate:schema
- Fork the repository
- Create your feature branch
- Run
deno task check
to ensure code quality - Add tests for new features
- Submit a pull request
This project is licensed under the AGPL-3.0 License.