ndk icon indicating copy to clipboard operation
ndk copied to clipboard

Unclear what relays are used when using NIP-07 signer

Open rolznz opened this issue 6 months ago • 0 comments

Hi,

I have initialized like this just as testing:

const ndk = new NDK({
  explicitRelayUrls: [
    "wss://relay.damus.io",
    "wss://lunchbox.sandwich.farm",
    "wss://nostr.stakey.net",
    "wss://relay.n057r.club",
  ],
  signer: new NDKNip07Signer(),
});

When I publish events, sometimes it uses the explicit URLs, sometimes it uses the relays from the alby extension, and sometimes it uses the relays from my personal user. It seems completely random and I have no idea which it is using.

Is there a way to control this?

rolznz avatar Aug 17 '24 16:08 rolznz