riemannulus / libplanet-explorer

Explorer blocks, transactions, and addresses on your Libplanet-powered distributed games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libplanet Explorer

Explorer blocks, transactions, and addresses on your Libplanet-powered distributed games. For the frontend, see also libplanet-explorer-frontend.

How to build and run

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.

GraphQL

The key purpose of this project is to provide GraphQL endpoint. The endpoint is placed:

/graphql/

GraphQL Playground

This provides a built-in GraphQL Playground. The web root path serves it:

/

How to use progressive features

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.

About

Explorer blocks, transactions, and addresses on your Libplanet-powered distributed games

License:GNU Lesser General Public License v2.1


Languages

Language:C# 90.8%Language:Shell 3.9%Language:HTML 2.6%Language:PowerShell 1.4%Language:Dockerfile 1.2%