{"uid":"cap_B2_XvEk3JGVQ4f8_yURw4","slug":"animica-chain-anomaly-detector-85ef8d2a","name":"Animica Chain Anomaly Detector","description":"Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.","url":"https://animica.dev/x402/chain/anomalies","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002509","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.002511/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002511","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002511","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZTmeaQ_NYK8m9a1YvnMfX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002511","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyses recent blockchain blocks to detect anomalies in block intervals, empty-block runs, difficulty jumps, mempool state, and block-producer concentration shifts.","exampleAgentPrompt":"Scan the last 120 Animica blocks for any chain anomalies — check for producer concentration, difficulty jumps, and long empty-block runs, and include a cryptographic attestation binding the report to the current chain height.","exampleUseCases":[{"title":"Centralisation alert for staking monitor","prompt":"Analyse the last 240 Animica blocks and flag if any single payout address produced more than 40% of blocks in the recent half, and tell me if the HHI shifted by more than 0.2 between the two halves."},{"title":"Quick interval anomaly check","prompt":"Scan the last 60 Animica blocks just for interval outliers and empty-block runs — I don't need producer analysis, I just want to know if there are any weird gaps or consecutive empty blocks, with a threshold of 10 empty blocks in a row."},{"title":"Auditable anomaly report with attestation","prompt":"Give me a full anomaly report on the last 180 Animica blocks including producer concentration analysis, and attach an ML-DSA-65 attestation so I can verify this report was pinned to the actual chain height."}],"resultDescription":"A JSON object containing flagged anomalies across the requested window: interval outliers (blocks far above the median), runs of consecutive empty blocks, difficulty (thetaMicro) jumps between consecutive blocks, block-producer concentration statistics including HHI values and mover addresses, and node read latency in milliseconds. If attestation was requested, an ML-DSA-65 signature binding the report to the chain height is also returned.","failureModes":["Block count out of range (must be 12–240) returns a validation error","Head margin exceeding available chain depth may cause a node read failure","Long windows (240 blocks with producer analysis) can time out if node load is high","Invalid threshold values (e.g. hhi_shift > 1 or theta_jump_ratio <= 1) return parameter errors","Payment failure or insufficient USDC balance returns a 402 response before any analysis"],"whenToPreferThis":"Choose this endpoint when you need on-chain anomaly detection specifically on the Animica blockchain — particularly for producer concentration shifts, difficulty spikes, or sustained empty-block runs. It is the right choice when you want a single structured report covering multiple anomaly dimensions in one call, especially when cryptographic attestation of the result is required. Prefer it over general block explorers when you need programmatic, threshold-driven flagging rather than manual inspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:50:42.214Z","isFirstParty":false}