Create new ENS subnames or update existing ones, including text and address records, metadata, and more.
createSubname
to add a subname under an existing ENS name.owner
field when creating a subname. This allows you to later fetch all subnames owned by a specific address using the SDK or API.label
: Subname label (e.g., "subname"
for subname.example.eth
)parentName
: Parent ENS nametexts
: Array of key-value text records. (optional)addresses
: Array of address records. (optional)metadata
: Array of key-value metadata. It can be used to filter out the subnames later. (optional)contenthash
: Content hash (optional)owner
: Owner address (optional)ttl
: Time-to-live. (optional)updateSubname
to modify text records, address records, content hash, or metadata for an existing subname.
texts
: Array of text records to update (optional)addresses
: Array of address records to update (optional)metadata
: Array of key-value metadata to update. It can be used to filter out the subnames later. (optional)contenthash
: New content hash (optional)ttl
: Time-to-live (optional)