getEip712Domain
Reads the EIP-712 domain from a contract, based on the ERC-5267 specification.
Usage
example.ts
import { publicClient } from './client'
const { domain, extensions, fields } = await publicClient.getEip712Domain({
address: '0x57ba3ec8df619d4d243ce439551cce713bb17411',
})
Returns
GetEip712DomainReturnType
The EIP-712 domain (domain
) for the contract, with fields
and extensions
, as per ERC-5267.
Parameters
address
- Type:
string
The address of the contract to read the EIP-712 domain from.
const result = await publicClient.getEip712Domain({
address: '0x57ba3ec8df619d4d243ce439551cce713bb17411',
})