encodeNprofile static method

String encodeNprofile({
  1. required String pubkey,
  2. List<String>? relays,
})

Encode nprofile (profile reference) pubkey - 32-byte hex public key (required) relays - optional list of relay URLs where the profile may be found

Implementation

static String encodeNprofile({
  required String pubkey,
  List<String>? relays,
}) {
  return Nip19Encoder.encodeNprofile(
    pubkey: pubkey,
    relays: relays,
  );
}