What is Nostr?
Yuki Kishimoto
npub1drv…seet
2024-12-23 19:37:41
in reply to nevent1q…zufd

Yuki Kishimoto on Nostr: There is a method on the database that allow to check where an event ID was seen: ...

There is a method on the database that allow to check where an event ID was seen:

```rust
let database = client.database();
let relays = database.event_seen_on_relays(id).await?;
```

This works with the in-memory database (which is used by default) and with some persistent database but not with all implementations (like with nostrdb).

Another good solution is to use the `RelayPoolNotification`, like suggested by dluvian (nprofile…ru2a)
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet