nprofile Encoder

Build nprofile identifiers from hex pubkeys + relay hints — 5 sats

About

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.

Try It

5 sats via L402.

API Usage

curl -X POST https://maximumsats.com/api/nprofile-encode \
  -H "Content-Type: application/json" \
  -d '{"pubkey":"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245","relays":["wss://relay.damus.io"]}'

Sample Response

{
  "ok": true,
  "hex_pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
  "relays": ["wss://relay.damus.io/"],
  "nprofile": "nprofile1..."
}
Also available via MCP as nprofile_encode at maximumsats.com/mcp