TypedData.extractEip712DomainTypes
Gets EIP-712 Typed Data schema for EIP-721 domain.
Imports
Named
import { TypedData } from 'ox'
Examples
import { TypedData } from 'ox'
TypedData.extractEip712DomainTypes({
name: 'Ether!',
version: '1',
chainId: 1,
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
})
[ { 'name': 'name', 'type': 'string' }, { 'name': 'version', 'type': 'string' }, { 'name': 'chainId', 'type': 'uint256' }, { 'name': 'verifyingContract', 'type': 'address' }, ]
Definition
function extractEip712DomainTypes(
domain: Domain | undefined,
): Parameter[]
Source: src/TypedData.ts
Parameters
domain
- Type:
Domain | undefined
The EIP-712 domain.
Return Type
The EIP-712 domain schema.
Parameter[]