Read a profile card from a profile event, or the placeholder for a key with none.
The person's hex key.
Their newest profile event, if any.
The card.
toProfileCard(pubkey, undefined).name; // '3bf0c63f…'toProfileCard(pubkey, profileEvent).name; // 'fiatjaf' Copy
toProfileCard(pubkey, undefined).name; // '3bf0c63f…'toProfileCard(pubkey, profileEvent).name; // 'fiatjaf'
Read a profile card from a profile event, or the placeholder for a key with none.