{"uid":"cap_CMoj463uFlsL5KytvfD2C","slug":"kaspa-selected-chain-block-color-ratio-9aa6f2f1","name":"Kaspa Selected Chain Block Color Ratio","description":"Blue vs red block counts in the merge sets of recent Kaspa selected chain blocks and aggregate red/blue ratio over a configurable window of recent chain blocks (1-20).","url":"https://api.chainmarket-api.workers.dev/api/crypto/kaspa-chain-color?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":1,"description":"Number of recent selected-chain blocks to inspect (default 5, min 1, 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_DerXGAaPMeNfDgDJ-dQh8","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 blue vs red block counts and aggregate red/blue ratio for recent Kaspa selected-chain blocks over a configurable window of 1–20 blocks.","exampleAgentPrompt":"What's the current Kaspa selected-chain block color breakdown — how many blue vs red blocks are there and what's the red/blue ratio over the last 10 blocks?","exampleUseCases":[{"title":"DAG health spot-check","prompt":"Pull the Kaspa chain color ratio for the last 15 blocks and tell me the blue vs red block counts and the aggregate ratio right now."},{"title":"Network congestion monitoring","prompt":"Check the Kaspa selected-chain merge set color distribution over a 20-block window — I want to see if the red block ratio is unusually high compared to normal."},{"title":"Minimal single-block snapshot","prompt":"Give me the blue and red block counts in the most recent Kaspa selected chain block's merge set — just check 1 block."}],"resultDescription":"Returns blue block count, red block count, and the aggregate red/blue ratio computed over the requested window of recent Kaspa selected-chain blocks and their merge sets.","failureModes":["blocks parameter out of range (must be 1–20) results in validation error","Kaspa node or upstream API unavailability causes 5xx response","Invalid parameter type (non-integer blocks value) returns error","Rate limiting or payment failure results in 402 or 429 response"],"whenToPreferThis":"Choose this endpoint when you need real-time Kaspa DAG chain color statistics (blue vs red block counts and ratio) over a configurable recent block window. It is the only endpoint specifically computing Kaspa merge-set block color distributions; prefer it over general Kaspa fee or chain endpoints when the specific metric needed is block color ratio.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:31:26.487Z","isFirstParty":false,"canonicalSlug":"kaspa-selected-chain-block-color-ratio-9aa6f2f1"}