Explorer blocks, transactions, and addresses on your Libplanet-powered distributed games. For the frontend, see also libplanet-explorer-frontend.
You need to install .NET Core 2.0 or higher, and PowerShell. Both work on Linux, macOS, and Windows. After you install them, execute the run.ps1 script on the command-line:
./run.ps1 --store-path BLOCKCHAIN_STORE_PATH
BLOCKCHAIN_STORE_PATH
refers to a directory or a file made by
a Libplanet-powered game. If you need a sample data file please contact us
on our Discord chat!
If you omit --store-path
switch in online mode, explorer will use memory to store
blockchain instead of storage.
The key purpose of this project is to provide GraphQL endpoint. The endpoint is placed:
/graphql/
This provides a built-in GraphQL Playground. The web root path serves it:
/
Now, it uses IRichStore
to improve transaction query speed
and provide more usable features (e.g., blockRef
).
It provides some implementations like below:
LiteDBRichStore
MySQLRichStore
To use MySQLRichStore
, it needs to fill command line arguments started with mysql-
prefix fully and correctly.
Else, it will use LiteDBRichStore
as default.