---
title: "Get EIP-712 types for a method"
method: GET
path: "/eip712/types-for-method"
tags: ["auth", "eip712"]
---

# Get EIP-712 types for a method

`GET /eip712/types-for-method`

## Request

- Base URL: `https://api.namefi.io/v-next`
- URL: `https://api.namefi.io/v-next/eip712/types-for-method`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Return the accepted primary types and full type map for a specific API operation that supports EIP-712 authentication.

## Query parameters

- `method` string, required: API operation ID (e.g. "createDnsRecord", "registerDomain").

## Headers

- `x-namefi-eip7702-account` string
- `x-namefi-eip1271-account` string
- `x-namefi-erc1271-account` string

## Response `200`

OK

- object: Result of looking up EIP-712 types for a specific API operation.
  - `found` boolean, required: Whether the method was found in the EIP-712 registry.
  - `acceptedPrimaryTypes` string[]: Primary type names accepted by this method (sent via x-namefi-eip712-type header). Present when found is true.
  - `types` object: EIP-712 type map for this method. Present when found is true.
  - `availableMethods` string[]: List of operation IDs that support EIP-712 authentication. Present when found is false.

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `406`: 406
- `408`: 408
- `409`: 409
- `412`: 412
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/namefi/apis/namefi-api.md) · [All operations](https://skmtc.dev/namefi/apis/namefi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namefi/apis/namefi-api/revisions/3c7c3ade95c9?raw)
