set_resolver
Change the resolver contract for an ENS name to manage where its records are stored. Use to migrate to the ENS Public Resolver, set a custom resolver, or fix names without one.
Instructions
Change the resolver contract for an ENS name.
The resolver is where a name's records live (ETH address, text records, content hash, etc.). Changing the resolver points the name at a different contract.
Common use cases:
Migrating to the latest ENS Public Resolver
Pointing to a custom resolver (e.g. for off-chain/CCIP-read resolution)
Fixing a name that has no resolver set
Pass "public" as the resolver address to use the ENS Public Resolver (0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63).
WARNING: Records on the old resolver won't be visible after switching. Set up records on the new resolver first, or use the ENS Public Resolver which most names already use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ENS name to change resolver for (e.g. "coffee.eth") | |
| resolver | Yes | New resolver contract address. Use "public" for the ENS Public Resolver. |