Skip to content
A dumb Groestlcoin block explorer
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of jonasschnelli:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.php

README.md

Dumb Block Explorer

A trivial block explorer written in a single PHP file.

Demo

https://www.groestlcoin.org/explorer/

Features

  • Works with Groestlcoin Core with enabled REST interface (-rest)
  • Works with or without txindex
  • Works with pruning
  • Does UTXO lookups

Install

  • Place the index.php script into a php enabled http docs directory
  • Run Groestlcoin Core with rest and txindex (optional) -txindex -rest
  • Edit the index.php config section

Nice links

Use mod_rewrite use a propper URL scheme (/block/), etc. Apache users can place a .htaccess file into the same folder as the PHP script.

RewriteEngine On
RewriteRule ^testnet$ index.php?testnet=1 [L,QSA]
RewriteRule ^testnet/$ index.php?testnet=1 [L,QSA]
RewriteRule ^testnet/tx/([a-fA-F0-9]*)$ index.php?testnet=1&tx=$1 [L,QSA]
RewriteRule ^testnet/tx/([a-fA-F0-9]*)/n/([a-fA-F0-9]*)$ index.php?testnet=1&tx=$1&n=$2 [L,QSA]
RewriteRule ^testnet/block/([a-fA-F0-9]*)$ index.php?testnet=1&block=$1 [L,QSA]
RewriteRule ^tx/([a-fA-F0-9]*)$ index.php?tx=$1 [L,QSA]
RewriteRule ^tx/([a-fA-F0-9]*)/n/([0-9]*)$ index.php?tx=$1&n=$2 [L,QSA]
RewriteRule ^block/([a-fA-F0-9]*)$ index.php?block=$1 [L,QSA]
You can’t perform that action at this time.