auth
eip712

Get EIP-712 types for a method

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

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

Query parameters

methodstring required

API operation ID (e.g. "createDnsRecord", "registerDomain").

Headers

x-namefi-eip7702-accountstring

Optional delegated account address to authenticate as when the signer is an approved signer. Preferred header name.

x-namefi-eip1271-accountstring

Legacy alias for x-namefi-erc1271-account. When multiple delegated account headers are present, x-namefi-eip7702-account takes precedence, then x-namefi-erc1271-account.

x-namefi-erc1271-accountstring

Optional delegated account address to authenticate as when the signer is an approved signer. Preferred ERC-1271 header name.

Response

OK

foundboolean required

Whether the method was found in the EIP-712 registry.

acceptedPrimaryTypesstring[]

Primary type names accepted by this method (sent via x-namefi-eip712-type header). Present when found is true.

typesobject

EIP-712 type map for this method. Present when found is true.

availableMethodsstring[]

List of operation IDs that support EIP-712 authentication. Present when found is false.

Changes

No recorded changes to this operation across all 1 revision of this API.