nostr_verify_nip05
Validate a NIP-05 identifier by resolving its well-known nostr.json, confirm expected pubkey match, and return relay hints.
Instructions
Verify a NIP-05 identifier resolves to the expected pubkey. Fetches https://{domain}/.well-known/nostr.json?name={name} and looks up names[name]. If expected_pubkey is provided, returns verified=true only if the resolved pubkey matches; otherwise returns verified=true on any successful resolution + the resolved pubkey. Also surfaces the recipient's relay hints if the well-known doc advertises them (NIP-65 outbox path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | NIP-05 identifier. Either `name@domain.tld` (e.g., `alice@getalby.com`) or a bare `domain.tld` (resolves the `_@domain.tld` root identity). | |
| expected_pubkey | No | Optional. If provided, the tool returns verified=true only when the resolved pubkey matches. |