getSinglePublicNip51RelaySet method

Future<Nip51Set?> getSinglePublicNip51RelaySet({
  1. required String name,
  2. required String publicKey,
  3. bool forceRefresh = false,
})

return single public nip51 set that match given name and pubkey

Implementation

Future<Nip51Set?> getSinglePublicNip51RelaySet({
  required String name,
  required String publicKey,
  bool forceRefresh = false,
}) async {
  //? not perfect to use bip340 signer here
  final mySigner = Bip340EventSigner(privateKey: null, publicKey: publicKey);
  return getSingleNip51RelaySet(name, mySigner, forceRefresh: forceRefresh);
}