# resolver.get

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

Reads the resolver of an ENS name: its address, what kind of resolver it is, who may write to it and which record profiles it supports.

Source: https://ensforge.com/docs/reference/sdk/resolver/get

<ApiMeta kind="Read" stability="stable" since="1.0.0" source="packages/sdk/src/actions/resolver/get/index.ts#L63" batchable />

Reads the resolver of an ENS name: its address, what kind of resolver it is, who may write to
it and which record profiles it supports.

## When to use [#when-to-use]

Use to show where a name's records live, or to check that its resolver can store a record
before writing it.

## Details [#details]

- The name's own resolver comes from the registry that holds the name (ENSv1 or ENSv2).
- Without one, the resolver serving the name is returned with `inherited: true`: a parent's
  wildcard resolver or an off-chain resolver. For ENSv1 names that ENSv2 serves through the
  ENSv1 bridge, it is the ENSv1 resolver behind the bridge, as before the ENSv2 launch.
- Costs three batched calls: name state, then one round of ERC-165 checks.
- Returns `null` when nothing resolves the name, unless `strict` is set.

<Callout type="warn" title="Gotchas">
- An inherited resolver belongs to a parent: records cannot be written there for this name.
</Callout>

## Signature [#signature]

```ts
function get(client: Like, options: get.Options): Promise<get.ReturnType>
```

Call it as `ens.resolver.get(options)` on a client, or `Actions.resolver.get(client, options)`.

`resolver.get.request(options)` builds a deferred read for `Actions.batch`. See [Look up many at once](/docs/sdk/look-up-many-at-once).

## Parameters [#parameters]

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `name` (required) | `string` |  | ENS name to read. Normalized automatically. |

Also takes the [read options](/docs/reference/sdk/client#read-options).

## Returns [#returns]

Resolves to `ResolverInfo | null`. The resolver, or `null` when nothing resolves the name.

| Field | Type | Description |
| --- | --- | --- |
| `address` | `Address` |  |
| `inherited` | `boolean` | Whether the name has no resolver of its own and is served by another one (a parent's wildcard resolver, or the ENSv1 bridge). Records cannot be written for the name there. |
| `serving` | `boolean` | Whether resolving the name reaches this resolver. `false` for a name's own resolver that resolution no longer uses, e.g. an ENSv1 name ENSv2 holds no reservation for after the launch: its records are kept there but do not resolve. |
| `kind` | `ResolverKind` |  |
| `authorization` | `ResolverAuthorization` |  |
| `profiles` | `ResolverProfiles` |  |
| `version` | `bigint \| null` | ENSv1 record version of the name (bumped by `clear`); `null` when not versioned. |

## Errors [#errors]

| Error | Codes | When |
| --- | --- | --- |
| [`InvalidInputError`](/docs/reference/errors/invalid-input-error) | [`INVALID_NAME`](/docs/reference/errors/INVALID_NAME) | the name cannot be normalized. |
| [`NotFoundError`](/docs/reference/errors/not-found-error) | [`RESOLVER_NOT_FOUND`](/docs/reference/errors/RESOLVER_NOT_FOUND) | with `strict` when nothing resolves the name. |
| [`NetworkError`](/docs/reference/errors/network-error) | [`RPC_REQUEST_FAILED`](/docs/reference/errors/RPC_REQUEST_FAILED), [`RPC_TIMEOUT`](/docs/reference/errors/RPC_TIMEOUT), [`RATE_LIMITED`](/docs/reference/errors/RATE_LIMITED) | the RPC request fails. |

It can also fail with the errors every read can (`Errors.CommonError`: `ConfigError`, `ContractRevertError`, `InternalError`, `NetworkError`).

See [How errors work](/docs/sdk/errors-explained).

## Examples [#examples]

<Tabs groupId="api" items={["Client","Standalone","Effect"]} persist>
<Tab>
```ts title="Checking a resolver before writing"
const resolver = await ens.resolver.get({ name: "nick.eth" })
if (resolver?.profiles.data) await ens.record.set({ name: "nick.eth", data: { key: "0x01" } })
```
</Tab>

<Tab>
```ts title="Reading with a bare viem client"
import { Actions } from "@ensforge/sdk"

const resolver = await Actions.resolver.get(publicClient, { name: "vitalik.eth" })
resolver?.kind // "public-resolver"
```
</Tab>

<Tab>
```ts title="Reading in an Effect program"
import { Actions } from "@ensforge/sdk/effect"

const resolver = yield* Actions.resolver.get(ens, { name: "nick.eth", strict: true })
```
</Tab>
</Tabs>

## Example response [#example-response]

Recorded from Ethereum mainnet on 2026-11-18 at block 26443964. Values change as the chain does.

```ts
await ens.resolver.get({ name: "nick.eth" })
```

```json
{
  "address": "0xF4f1007EA430848F2fAd60e405A54Fc100fEc341",
  "inherited": false,
  "serving": true,
  "kind": "permissioned-resolver",
  "authorization": "roles",
  "profiles": {
    "addr": true,
    "addresses": true,
    "text": true,
    "contentHash": true,
    "abi": true,
    "pubkey": false,
    "name": true,
    "interfaces": true,
    "data": true,
    "extended": true
  },
  "version": null
}
```

## See also [#see-also]

- [`resolver.set`](/docs/reference/sdk/resolver/set) to change it