Build nprofile identifiers from hex pubkeys + relay hints — 5 sats
Encode a canonical 64-character hex pubkey into a Nostr nprofile1... identifier. Optionally include relay hints to make the profile pointer more portable across clients.
5 sats via L402.
curl -X POST https://maximumsats.com/api/nprofile-encode \
-H "Content-Type: application/json" \
-d '{"pubkey":"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245","relays":["wss://relay.damus.io"]}'
{
"ok": true,
"hex_pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"relays": ["wss://relay.damus.io/"],
"nprofile": "nprofile1..."
}