pub async fn get_api_urls(
db: &Database,
cfg: &ClientConfig,
) -> BTreeMap<PeerId, SafeUrl>Expand description
Returns a list of all peers and their respective API URLs taking into account guardian metadata and API announcements overwriting the URLs contained in the original configuration.
Priority order:
- Guardian metadata (if available) - uses first URL from api_urls
- API announcement (if available)
- Configured URL (fallback)