# approval.getDelegate

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

Checks whether a delegate may edit a name's records on its public resolver (isApprovedFor). Options, result, errors and examples for approval.getDelegate.

Source: https://ensforge.com/docs/reference/sdk/approval/get-delegate

<ApiMeta kind="Read" stability="stable" since="1.0.0" source="packages/sdk/src/actions/approval/getDelegate/index.ts#L52" batchable />

Checks whether a delegate may edit a name's records on its public resolver
(`isApprovedFor`).

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

Use to see who besides the owner can edit a profile on a PublicResolver.

## Details [#details]

- The owner defaults to the one the resolver authorizes against: the ENS registry owner (or
  NameWrapper owner) for ENSv1 resolvers, the ENSv2 owner for PublicResolverV2.
- PermissionedResolvers have roles instead of delegates and answer `false`.

## Signature [#signature]

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

Call it as `ens.approval.getDelegate(options)` on a client, or `Actions.approval.getDelegate(client, options)`.

`approval.getDelegate.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. Normalized automatically. |
| `delegate` (required) | `string` |  | Account that may be a delegate. |
| `owner` | `string` | the owner the resolver authorizes against | Owner who granted the delegation. |

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

## Returns [#returns]

Resolves to `boolean`. Whether `delegate` may edit the name's records.

## Errors [#errors]

| Error | Codes | When |
| --- | --- | --- |
| [`InvalidInputError`](/docs/reference/errors/invalid-input-error) | [`INVALID_NAME`](/docs/reference/errors/INVALID_NAME), [`INVALID_ADDRESS`](/docs/reference/errors/INVALID_ADDRESS) | invalid input. |
| [`NotFoundError`](/docs/reference/errors/not-found-error) | [`RESOLVER_NOT_FOUND`](/docs/reference/errors/RESOLVER_NOT_FOUND) | the name has no resolver. |
| [`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 delegate"
const approved = await ens.approval.getDelegate({ name: "alice.eth", delegate })
```
</Tab>

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

const approved = await Actions.approval.getDelegate(publicClient, { name: "vitalik.eth", delegate })
```
</Tab>

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

const approved = yield* Actions.approval.getDelegate(ens, { name: "alice.eth", delegate })
```
</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.approval.getDelegate({ name: "nick.eth", delegate: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" })
```

```json
false
```

## See also [#see-also]

- [`approval.setDelegate`](/docs/reference/sdk/approval/set-delegate) to change it