broadcastEvent method

Future<void> broadcastEvent(
  1. Nip01Event event,
  2. Iterable<String> relays,
  3. EventSigner signer
)

Implementation

Future<void> broadcastEvent(
    Nip01Event event, Iterable<String> relays, EventSigner signer) async {
  await signer.sign(event);
  await Future.wait(relays.map((url) => broadcastSignedEvent(event, url)));
}