{"uid":"cap_6UyrKZqUAvv5eh9pj218P","slug":"tanod-nostr-decoder-chainpeek-ad43e7e4","name":"Tanod Nostr Decoder (chainpeek)","description":"chainpeek (Tanod) Nostr decoder: NIP-19 npub, note, nprofile, nevent and naddr to hex and TLV fields, and NIP-05 name@domain to a public key. Secret keys are refused. Use when an agent must turn a No…","url":"https://tanod.dev/v1/nostr/decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":5000,"minLength":3,"description":"A NIP-19 identifier (npub1..., note1..., nprofile1..., nevent1... or naddr1..., an optional 'nostr:' prefix is accepted) or a NIP-05 address (name@domain, or a bare domain for _@domain). Secret keys (nsec1...) are refused and never decoded."},"verify_nip05":{"anyOf":[{"type":"string","maxLength":320,"minLength":3},{"type":"null"}],"default":null,"description":"Optional NIP-05 address (name@domain) to check against the key of an npub, nprofile, nevent (with author) or naddr: the domain's nostr.json must map the name to that key (result nip05.verified)."}}},"responseSchema":null,"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_T2Y1KQaBTvO3wTX2LOyJp","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":"Decodes NIP-19 Nostr identifiers (npub, note, nprofile, nevent, naddr) into hex and TLV fields, and resolves NIP-05 name@domain addresses to public keys","exampleAgentPrompt":"Can you decode this Nostr identifier npub1sg6plzptd64u62a878hep2kev88swjh3tw00gjsfl4xcrectabvs6j85rz to its raw hex public key?","exampleUseCases":[{"title":"Resolve NIP-05 identity to public key","prompt":"I have this Nostr NIP-05 address jack@cash.app — can you look up what hex public key it maps to?"},{"title":"Decode nprofile relay hints","prompt":"Decode this nprofile identifier for me: nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpz4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlgl — I need the pubkey and all the relay hints it contains."},{"title":"Verify NIP-05 against npub","prompt":"Check whether the NIP-05 address fiatjaf@fiatjaf.com actually matches this npub: npub1zl3g38a72gzmyln3gkzrq0qnr7r5f7u7hkqgtms5xjm7kzphrjaqyqrlmj"}],"resultDescription":"A JSON object containing the decoded Nostr entity type, the raw hex public key or event ID, and any TLV fields (such as relay URLs, author pubkey, kind number). For NIP-05 inputs, returns the resolved hex public key. When verify_nip05 is provided, includes a nip05.verified boolean indicating whether the domain's nostr.json maps the given name to the expected key.","failureModes":["Secret key (nsec1...) input is explicitly refused and returns an error","Invalid or malformed NIP-19 bech32 encoding returns a decode error","NIP-05 domain is unreachable or nostr.json is missing/malformed","NIP-05 name not found in domain's nostr.json","Input string too short (below 3 chars) or too long (above 5000 chars) triggers validation error","Non-Nostr bech32 strings (e.g. Bitcoin addresses) are rejected"],"whenToPreferThis":"Choose this endpoint when an agent needs to work with Nostr protocol identifiers and must convert human-readable NIP-19 bech32 strings (npub, nprofile, note, nevent, naddr) into raw hex values usable by lower-level Nostr APIs, or when resolving a NIP-05 internet identifier to a public key. Prefer it over generic bech32 decoders because it is Nostr-aware, handles TLV multi-field formats, understands the nostr: URI prefix, explicitly blocks nsec secret keys for safety, and supports cross-checking NIP-05 addresses against known pubkeys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:45:57.130Z","isFirstParty":false,"canonicalSlug":"tanod-nostr-decoder-chainpeek-ad43e7e4"}