Skip to main content

Overview

Chain management covers monitoring and exploring your Pylon appchain through its RPC endpoint. Since Pylon manages the infrastructure, this guide focuses on setting up a block explorer and basic monitoring tasks you can perform using standard Ethereum RPC methods. For infrastructure issues (block production problems, cross-chain failures, etc.), contact Pylon support. This guide covers application-level monitoring and exploration.

Block Explorer Setup

BlockScout is an open-source blockchain explorer that provides detailed transaction views, contract verification, and chain analytics. It enables exploring and monitoring appchain transactions through a web interface.

Quick Start with Docker Compose

BlockScout consists of a backend API and a frontend web application. Before creating the docker-compose file, generate a secret key:
Save this value to use in the SECRET_KEY_BASE environment variable. Then create a docker-compose.yml file:
Important Configuration Notes:
  • RPC URL: Set ETHEREUM_JSONRPC_HTTP_URL to your Pylon RPC endpoint (e.g., https://pylon.{settlement-layer}.spire.dev/v1/chain/{chain-id}/rpc)
  • Chain Name: Update NETWORK, SUBNETWORK, and NEXT_PUBLIC_NETWORK_NAME with your appchain name
  • Chain ID: Set NEXT_PUBLIC_NETWORK_ID to your appchain’s Chain ID (found in your Chain Setup details)
  • App Host: If accessing remotely, update NEXT_PUBLIC_APP_HOST to your server’s address (e.g., http://your-domain.com:8080)
  • Secret Key: Replace GENERATE_A_SECRET_KEY_HERE with the secret key generated above

Running BlockScout

Access BlockScout at http://localhost:8080. The frontend connects to the backend API at http://localhost:4000. The first sync may take several minutes depending on chain size. Note: BlockScout indexes from the latest block backward, so new transactions appear immediately even while historical blocks are still syncing. The indexing progress banner shows historical sync status, but the latest blocks shown are always current. For production deployments, see the BlockScout documentation for detailed setup instructions including HTTPS configuration, database backups, and monitoring.

Basic Monitoring

Use standard Ethereum RPC methods to monitor your appchain’s health and activity. The Pylon RPC endpoint supports all standard Ethereum JSON-RPC methods.

Check Block Production

Verify blocks are being produced:

Inspect Transactions

View transaction details:

Query Contract Events

Query event logs from contracts:

View Transaction Receipts

Get transaction receipts to see logs and events:
For infrastructure issues (blocks not producing, cross-chain failures, etc.), contact Pylon support.

Next Steps