add getRelays() to README.

This commit is contained in:
fiatjaf
2022-02-15 19:54:46 -03:00
parent 56cb50950f
commit 831f42c611

View File

@@ -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
```