> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://ensforge.com/api/mcp` to find what you need.

# getHcaGovernanceOwner

Read the owner of a supported HCA governance contract.

## Import

```ts
import { Ensforge } from "@ensforge/sdk";
```

## Usage

:::code-group
```ts [index.ts]
import { sdk } from "./client";

const result = await sdk.hca.admin.getHcaGovernanceOwner({
  target: { kind: "factory" },
});
```

```ts [client.ts]
// [!include ~/snippets/hca/client.ts]
```
:::

This targets HCA governance contracts. It does not transfer or renounce the immutable account owner.

## Parameters

### target

`HcaGovernanceTarget`

Governance contract to inspect or modify.

### blockNumber

`bigint | undefined`

Block number to read. Cannot be combined with blockTag.

### blockTag

`BlockTag | undefined`

Named block state to read. Cannot be combined with blockNumber.

## Return Type

```ts
type GetHcaGovernanceOwnerResult = Awaited<ReturnType<typeof sdk.hca.admin.getHcaGovernanceOwner>>;
```

Returns `` `0x${string}` ``.

## Effect

Use `.effect` when composing the method in an Effect program. The success and error channels remain
fully typed.

```ts
import { Effect } from "effect";

const program = sdk.hca.admin.getHcaGovernanceOwner.effect({
  target: { kind: "factory" },
});

type Success = Effect.Success<typeof program>;
type Failure = Effect.Error<typeof program>;

const result = await Effect.runPromise(program);
```

## Request

Use `.request` to describe the read without executing it, then include it in a typed
[read batch](/core/guides/batching).

```ts
const request = sdk.hca.admin.getHcaGovernanceOwner.request({
  target: { kind: "factory" },
});
```

## Error

The method rejects with the corresponding Core action errors. Use `.effect` to keep those failures
in the typed Effect error channel.

See [Error Handling](/sdk/guides/error-handling).

## Action

* [`getHcaGovernanceOwner`](/core/api/actions/hca/admin/get-hca-governance-owner)
* [Guide](/core/guides/hca)
