From 831f42c611953dc9fc3a317282abe167e4d7e80b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 15 Feb 2022 19:54:46 -0300 Subject: [PATCH] add getRelays() to README. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cd296fd..5d41098 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ It provides a `window.nostr` object which has the following methods: ``` async window.nostr.getPublicKey(): string // returns your public key as hex async window.nostr.signEvent(event): string // returns the signature as hex +async window.nostr.getRelays(): {} // returns a list of relays async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext+iv as specified in nip04 async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext+iv as specified in nip04 ```