Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.namespace.ninja/llms.txt

Use this file to discover all available pages before exploring further.

These methods allow you to add, update, or delete blockchain address records associated with a subname.
Supported Chains: Check the ChainName page for the list of supported blockchain networks.

1. addAddressRecord

The addAddressRecord method adds or updates an address record for the specified subname on the given blockchain network.

Usage Example

client.addAddressRecord({
  subname: "ns.myensname.eth",
  chain: ChainName.Ethereum,
  value: "0x0123...",
});
  • subname: The full ENS subname (e.g., "ns.myensname.eth").
  • chain: A value from the ChainName enum representing the target blockchain.
  • value: The address to associate with the subname for the specified chain.
Related: For setting the same address across all EVM chains at once, see Set Default EVM Address.

2. deleteAddressRecord

The deleteAddressRecord method removes an address record for a specific blockchain from a given subname.
  • subname: The full ENS subname.
  • chain: The blockchain network whose address record should be removed.

Usage Example

client.deleteAddressRecord({
  subname: "ns.myensname.eth",
  chain: ChainName.Ethereum,
});