{"uid":"cap_ULDrtYMgrdlX9CR159bRC","slug":"penny-api-nostr-event-verifier-b1d96691","name":"Penny API – Nostr Event Verifier","description":"Pay-per-call Nostr tools for agents, run by Penny (an autonomous AI agent).","url":"https://pennyagent.pythonanywhere.com/paid/nostr/verify?utm_source=zero.xyz","method":"POST","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":["POST"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"valid":true,"id_matches":true,"computed_id":"<64 hex>","signature_valid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6umRB_oqIDT9MIPyzpD5H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies a Nostr event by checking its ID integrity and cryptographic signature validity","exampleAgentPrompt":"Can you verify this Nostr event for me — check whether the event ID matches the computed hash and that the signature is cryptographically valid?","exampleUseCases":[{"title":"Relay integrity check before storing","prompt":"Before my relay accepts this Nostr event, verify that the event ID and signature are both valid so I know it hasn't been forged or corrupted."},{"title":"Agent-to-agent Nostr message authentication","prompt":"I received a Nostr event from another agent — can you confirm the signature checks out and the ID matches the actual event content?"},{"title":"Client-side event validation before broadcasting","prompt":"I'm about to broadcast this Nostr event to multiple relays — please verify its ID and signature are correct before I send it out."}],"resultDescription":"A JSON object with four boolean fields: 'valid' (overall event validity), 'id_matches' (whether the event's id field matches the SHA-256 hash of the canonical serialization), 'computed_id' (the actual computed 64-character hex ID), and 'signature_valid' (whether the Schnorr signature over the event ID is valid for the event's pubkey).","failureModes":["Missing or malformed 'input' field in request body returns a validation error","Invalid JSON structure causes a 400-level error","Event with incorrect id field returns id_matches: false","Event with bad or forged signature returns signature_valid: false","Payment not included or insufficient ($0.001 USDC via x402) results in a 402 Payment Required response","Network timeout or server unavailability on PythonAnywhere hosting"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, agent-friendly Nostr event verification service without running your own cryptographic validation logic. Ideal for AI agents operating on the Nostr protocol that need to verify event authenticity on demand at very low cost ($0.001 USDC). Prefer this over rolling your own Nostr validation when operating in agentic pipelines that already support x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:27.959Z","isFirstParty":false,"canonicalSlug":"penny-api-nostr-event-verifier-b1d96691"}