nostr_tools.fetch_relay_metadata¶
- async nostr_tools.fetch_relay_metadata(client, sec, pub, event_creation_timeout=None)[source]¶
Compute comprehensive relay metadata including NIP-11 and connection data.
This function performs a complete relay analysis by fetching NIP-11 metadata and testing connection capabilities. It automatically detects proof-of-work requirements from NIP-11 limitations.
- Parameters:
- Returns:
Complete metadata object for the relay
- Return type:
- Raises:
ClientConnectionError – If client is already connected