Build nevent identifiers from event id + optional TLV hints — 5 sats
Encode a canonical 64-character hex event id into a Nostr nevent1... identifier. Optional relay hints, author pubkey, and kind fields are encoded as TLV records for portable event references.
5 sats via L402.
curl -X POST https://maximumsats.com/api/nevent-encode \
-H "Content-Type: application/json" \
-d '{"event_id":"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d","relays":["wss://relay.damus.io"],"author_pubkey":"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245","kind":1}'
{
"ok": true,
"hex_event_id": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"relays": ["wss://relay.damus.io/"],
"hex_author_pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"kind": 1,
"nevent": "nevent1..."
}