async function getRelays(): { [url: string]: {read: boolean, write: boolean} }
returns a basic map of relay urls to relay policies
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;
const event = async provider.getRelays()
{% embed url="https://codepen.io/OneKeyHQ/pen/vYbzmoJ" %}