Convert hex pubkeys to npub identifiers — 5 sats
Encode a canonical 64-character hex Nostr pubkey into npub1... format. Useful when sharing keys in Nostr-native clients and profiles.
5 sats via L402.
curl -X POST https://maximumsats.com/api/npub-encode \
-H "Content-Type: application/json" \
-d '{"pubkey":"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"}'
{
"ok": true,
"hex_pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"npub": "npub17td9xj68m0lqtq9y9h3mwkx2jsge630d8r55utumurq4dze3c42sdav95p"
}