A Subsquid indexer for Substrate chains with ParachainStaking pallet. Tracks delegator stakes, collator self-bonds, and global staking statistics.
- Stakers: Current stake, scheduled unbonds, lifetime totals
- Collators: Self-bond, scheduled unbonds, lifetime totals
- Global: Total staked/bonded, percentages, active counts
- Node.js 24+
- Docker & Docker Compose
- Subsquid CLI:
npm install -g @subsquid/cli
npm install # Install dependencies
npm run start # Build, setup, and start indexer (default: Qustream)GraphQL API: http://localhost:4350/graphiql
sqd start # Complete setup and start indexer
sqd reset # Reset DB and restart from block 0
sqd serve # Start processor + API (if already setup)
sqd open # Open GraphiQL
sqd compare # Compare DB with chain stateEdit .env file (auto-created by sqd start):
CHAIN=qustream
CHAIN_RPC_ENDPOINT=ws://127.0.0.1:8800
TOKEN_SYMBOL=QST
TOKEN_DECIMALS=18
SS58_PREFIX=5041For custom chains, manually edit .env with your config.
MIT