# resolver.resolve

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

Calls the resolver of an ENS name with raw calldata through the Universal Resolver (ENSIP-10). Options, result, errors and examples for resolver.resolve.

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

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

Calls the resolver of an ENS name with raw calldata through the Universal Resolver (ENSIP-10).

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

Use to read resolver profiles ensforge has no action for. Use [`record.get`](/docs/reference/sdk/record/get) for
the standard records.

## Details [#details]

- Finds the resolver like any ENS client: the name's own, a parent's wildcard, or off-chain
  through CCIP-Read.
- `data` is the resolver call, with the name's node as its first argument.
- Returns the ABI-encoded result and the resolver the Universal Resolver called: for ENSv1
  names ENSv2 serves through the ENSv1 bridge, the bridge itself (`record.get` and
  `resolver.get` report the ENSv1 resolver behind it).

## Signature [#signature]

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

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

`resolver.resolve.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 resolve. Normalized automatically. |
| `data` (required) | `Hex` |  | Resolver calldata, e.g. `text(node, key)`. |

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

## Returns [#returns]

Resolves to `{ readonly data: Hex; readonly resolver: Address }`. The ABI-encoded result and the resolver that answered.

| Field | Type | Description |
| --- | --- | --- |
| `data` | `Hex` |  |
| `resolver` | `Address` |  |

## Errors [#errors]

| Error | Codes | When |
| --- | --- | --- |
| [`InvalidInputError`](/docs/reference/errors/invalid-input-error) | [`INVALID_NAME`](/docs/reference/errors/INVALID_NAME), [`INVALID_RECORD_VALUE`](/docs/reference/errors/INVALID_RECORD_VALUE) | an invalid name or calldata. |
| [`NotFoundError`](/docs/reference/errors/not-found-error) | [`RESOLVER_NOT_FOUND`](/docs/reference/errors/RESOLVER_NOT_FOUND) | nothing resolves the name. |
| [`UnsupportedError`](/docs/reference/errors/unsupported-error) | [`RESOLVER_PROFILE_UNSUPPORTED`](/docs/reference/errors/RESOLVER_PROFILE_UNSUPPORTED) | the resolver does not answer the call. |
| [`GatewayError`](/docs/reference/errors/gateway-error) | [`GATEWAY_REQUEST_FAILED`](/docs/reference/errors/GATEWAY_REQUEST_FAILED), [`GATEWAY_RESPONSE_INVALID`](/docs/reference/errors/GATEWAY_RESPONSE_INVALID), [`OFFCHAIN_LOOKUP_INVALID`](/docs/reference/errors/OFFCHAIN_LOOKUP_INVALID) | an off-chain gateway fails. |
| [`DnsError`](/docs/reference/errors/dns-error) |  | a DNS name's DNSSEC proof does not verify. |
| [`ConfigError`](/docs/reference/errors/config-error) | [`CCIP_READ_DISABLED`](/docs/reference/errors/CCIP_READ_DISABLED) | off-chain names when CCIP-Read is disabled. |

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="Calling a custom profile"
import { encodeFunctionData, namehash, parseAbi } from "viem"

const abi = parseAbi(["function text(bytes32, string) view returns (string)"])
const data = encodeFunctionData({ abi, functionName: "text", args: [namehash("nick.eth"), "url"] })
const { data: result } = await ens.resolver.resolve({ name: "nick.eth", data })
```
</Tab>

<Tab>
```ts title="Resolving with a standalone call"
import { Actions } from "@ensforge/sdk"

const { resolver } = await Actions.resolver.resolve(publicClient, { name: "nick.eth", data })
```
</Tab>

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

const result = yield* Actions.resolver.resolve(ens, { name: "nick.eth", data })
```
</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.resolve({ name: "nick.eth", data: "0x3b3b57de05a67c0ee82964c4f7394cdd47fee7f4d9503a23c09c38341779ea012afe6e00" })
```

```json
{
  "data": "0x000000000000000000000000b8c2c29ee19d8307cb7255e1cd9cbde883a267d5",
  "resolver": "0xF4f1007EA430848F2fAd60e405A54Fc100fEc341"
}
```

## See also [#see-also]

- [`resolver.get`](/docs/reference/sdk/resolver/get) to inspect the resolver