On this page
getRelays
Method
declare function getRelays(): Promise<Record<string, { read: boolean; write: boolean }>>;Response
returns a basic map of relay urls to relay policies
Example
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;
const relays = await provider.getRelays();Demo
Last updated on