FrostBit

Install and Run the Explorer Backend

Updated 2026-11-22Open in Explorer

Run your own Explorer on Linux, connect it to FrostBit mainnet, and compare its indexing progress with the official Explorer.

Use the release bundle

Download dex-<version>-linux-amd64.zip from FrostBit Releases, extract it, and enter dex/. The backend executable is explorer and the website is in explorer_web/dist/. Set CONFIG_DIR to the mainnet configuration directory. Check that genesis.json specifies chain ID 51025, then set NODE to the host and port of a reachable, trusted node listed in the mainnet peers.json.

Connect to a mainnet node

Set DEX_EXPLORER_NODE_CA_FILE to the path of the trusted node certificate in PEM format. If the certificate name differs from the connection address, export DEX_EXPLORER_NODE_SERVER_NAME with the name on the certificate. Configure query credentials if the node requires them. The command uses the default HTTP listener behind an HTTPS reverse proxy on the same host and writes the Explorer index to --data-dir.

Bash
DEX_EXPLORER_NODE_CA_FILE="${DEX_EXPLORER_NODE_CA_FILE:?}" \
./explorer \
  --config-dir="${CONFIG_DIR:?}" --peers="$CONFIG_DIR/peers.json" \
  --sync-node="${NODE:?}" \
  --web-dir=./explorer_web/dist --data-dir=./explorer_data \
  --ip-tls=false --admin-listen=""

Check the service and index

In another terminal, set EXPLORER_ORIGIN to the full HTTPS address of your new Explorer. Check its node list and sync_height, then compare that height with the sync status on frostbit.io. A new index takes time to catch up to mainnet.

Bash
curl -fsS "${EXPLORER_ORIGIN:?}/api/nodes"
curl -fsS "$EXPLORER_ORIGIN/api/sync/status"

Maintain the spot asset list

The default list uses the active network’s genesis.json. To add a verified asset, pass the file path with --spot-asset-list and restart Explorer. Use the network’s chain_id and the full asset_id. The interface displays label and source. The optional decimals field formats group depth. verification_url can link to the issuer’s HTTPS confirmation. Set include_genesis to false to use only the groups in the file.

JSON
{
  "chain_id": 51025,
  "include_genesis": true,
  "assets": [{
    "asset_id": "<FULL_ASSET_ID>",
    "label": "Example asset",
    "source": "Example issuer",
    "decimals": 6
  }]
}

Build from source

Download frostbit-<version>-source.zip from the same release and enter its source root. Use Go 1.24 and Node.js 22.12 or a later 22.x version. After building, run the same start command with ./frostbit-explorer as the executable and ./explorer/dist as --web-dir.

Bash
npm --prefix explorer ci
npm --prefix explorer run build
go build -mod=readonly -trimpath -o ./frostbit-explorer ./cmd/explorer