diff --git a/src/lib/nip86-client.ts b/src/lib/nip86-client.ts index 31e291d..800cf0a 100644 --- a/src/lib/nip86-client.ts +++ b/src/lib/nip86-client.ts @@ -95,9 +95,10 @@ export class Nip86Client { async call(method: string, params: unknown[] = []): Promise { const body = JSON.stringify({ method, params }); + // NIP-86: "The `u` tag is the relay URL" - use WebSocket URL, not HTTP const authHeader = await createAuthHeader( { - url: this.httpUrl, + url: this.relayUrl, method: "POST", payload: body, },