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

# TypedData.extractEip712DomainTypes

:::info
`TypedData.extractEip712DomainTypes` is a re-export of ox's [`TypedData.extractEip712DomainTypes`](https://oxlib.sh/api/TypedData/extractEip712DomainTypes). Refer to the ox documentation for the full reference.
:::

Gets [EIP-712 Typed Data](https://eips.ethereum.org/EIPS/eip-712) schema for EIP-721 domain.

## Imports

```ts
import { TypedData } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { TypedData } from 'viem/utils'

TypedData.extractEip712DomainTypes({
  name: 'Ether!',
  version: '1',
  chainId: 1,
  verifyingContract:
    '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC'
})
// @log: [
// @log:   { 'name': 'name', 'type': 'string' },
// @log:   { 'name': 'version', 'type': 'string' },
// @log:   { 'name': 'chainId', 'type': 'uint256' },
// @log:   { 'name': 'verifyingContract', 'type': 'address' },
// @log: ]
```

## Definition

```ts
function extractEip712DomainTypes(
  domain: Domain | undefined,
): Parameter[]
```

## Parameters

### domain

* **Type:** `Domain | undefined`

The EIP-712 domain.

## Return Type

The EIP-712 domain schema.

`Parameter[]`
