{"uid":"cap_GSy2Y4qql1O88b-dyT0ST","slug":"kaspa-dag-chain-density-1d859635","name":"Kaspa DAG Chain Density","description":"Ratio of selected-chain blocks to total DAG blocks created and merged across a recent window (2-20 blocks) on Kaspa, measuring DAG concurrency and block propagation density.","url":"https://api.chainmarket-api.workers.dev/api/crypto/kaspa-chain-density?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"blocks":{"type":"integer","maximum":20,"minimum":2,"description":"Number of selected-chain blocks to inspect (default 5, min 2, max 20)."}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WQQnUc142efPPl0LqEXCo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the ratio of selected-chain blocks to total DAG blocks over a configurable recent window (2–20 blocks), measuring DAG concurrency and block propagation density on the Kaspa network.","exampleAgentPrompt":"What's the current Kaspa DAG chain density? Check it over a window of 10 blocks and tell me the ratio of selected-chain blocks to total DAG blocks.","exampleUseCases":[{"title":"Real-time Kaspa DAG concurrency check","prompt":"Can you pull the Kaspa chain density metric right now using the last 10 blocks? I want to know how many of those are on the selected chain versus total DAG blocks."},{"title":"Network health monitoring dashboard","prompt":"I'm building a Kaspa network health dashboard — fetch the DAG chain density over a window of 20 blocks so I can track block propagation density trends over time."},{"title":"DAG congestion alert system","prompt":"Check Kaspa's block propagation density using a 5-block window and let me know if the selected-chain ratio looks unusually low, which might signal high DAG concurrency or network stress."}],"resultDescription":"Returns the ratio of selected-chain blocks to total DAG blocks created and merged over the specified window, along with the raw counts and a measure of DAG concurrency and block propagation density for the Kaspa network.","failureModes":["Invalid blocks parameter outside 2–20 range returns a 400 or validation error","Upstream Kaspa node unavailability may return a 503 or timeout","Stale data if the node is behind the network tip","Payment not received or x402 protocol failure blocks the request"],"whenToPreferThis":"Use this endpoint when you need a lightweight, quantitative measure of Kaspa DAG concurrency and block propagation health — specifically the selected-chain-to-total-DAG block ratio — rather than full block-by-block data or transaction-level detail.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:31:21.088Z","isFirstParty":false,"canonicalSlug":"kaspa-dag-chain-density-1d859635"}