Skip to content

Domain fields

Fields (also called records) are key-value metadata attached to your .night domain. They let you store information like a display name, bio, social links, avatar URL, and more — all on-chain and queryable by anyone through the SDK.

FieldDescription
nameDisplay name shown on your profile
bioShort description or bio text
websiteYour website URL
twitterTwitter/X handle (without @)
githubGitHub username
avatarURL to your profile picture
epkYour EncryptionPublicKey — set automatically on registration
locationYour location

You can also add any custom field you like. Field names are case-insensitive.

Fields appear on your domain profile at preprod.midnames.com and in any app that uses the DomainProfileWidget or calls getDomainFields from the SDK.

The widget automatically reads these fields to populate the profile card — for example, avatar sets the profile picture, bio fills the bio section, and twitter/github/website render as social link chips.

To add, edit, or remove fields, go to preprod.midnames.com, search for your domain, and click Customize & Advanced. From there you can:

  • Add fields — enter a field name and value, then click the add button. You can add multiple fields at once.
  • Edit fields — change the value of an existing field in the input.
  • Remove fields — clear the value (leave it empty) to remove a field.

Click the update button when you’re done. Your Lace wallet will prompt you to sign the transaction.

import { getDomainFields } from "@midnames/sdk";
const result = await getDomainFields("facu.night");
if (result.success) {
for (const [key, value] of result.data) {
console.log(`${key}: ${value}`);
}
}

See the SDK reference for full details.