Skip to content

📊 Chain Reliability Score #65

@mijinummi

Description

@mijinummi

📌 Overview

Merchants and developers need to evaluate blockchain networks not only by cost but also by stability and reliability. Without structured metrics, selecting the optimal chain for transactions is challenging.

This task introduces a Chain Reliability Score, combining stability and gas cost to rank chains and provide a public leaderboard endpoint for reference.


🎯 Objective

Build a system that:

  • Calculates reliability scores for supported chains based on stability and gas cost
  • Maintains a historical record of chain performance
  • Exposes a public leaderboard endpoint for developers and merchants
  • Enables informed chain selection for optimal transaction execution

🛠 Scope of Work

1️⃣ Data Collection

  • Track per-chain metrics including:

    • Transaction success rate (from Transaction Success Rate Metric)
    • Average gas price
    • Network congestion or latency
    • Historical trends over configurable time windows (daily, weekly, monthly)
  • Normalize metrics to ensure comparability across chains


2️⃣ Reliability Score Calculation

  • Compute composite reliability score using weighted factors:
    ReliabilityScore = w1 * SuccessRate + w2 * (1 / AvgGasPrice) + w3 * StabilityFactor

  • Configurable weights (w1, w2, w3) for tuning the importance of each metric

  • Score scaled to 0–100 for consistency


3️⃣ Leaderboard Endpoint

  • Public API endpoint to retrieve chain rankings:
    GET /leaderboard/chain-reliability?period=<daily|weekly|monthly>

  • JSON response example:

{
  "period": "2026-02",
  "chains": [
    { "chainId": 1, "chainName": "Ethereum", "score": 92.5 },
    { "chainId": 56, "chainName": "BSC", "score": 88.1 },
    { "chainId": 137, "chainName": "Polygon", "score": 84.3 }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Nest.jsStellar WaveIssues in the Stellar wave programbackendNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions