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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identifier": "<identifier>"
},
"name": "nostr_verify_nip05"
}
}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. |