# TypedData.extractEip712DomainTypes

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

## Imports

:::code-group
```ts [Named]
import { TypedData } from 'ox'
```

```ts [Entrypoint]
import * as TypedData from 'ox/TypedData'
```
:::

## Examples

```ts twoslash
import { TypedData } from 'ox'

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[]
```

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L1040)

## Parameters

### domain

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

The EIP-712 domain.

## Return Type

The EIP-712 domain schema.

`Parameter[]`
