Skip to main content

Overview

Sign typed structured data following the EIP-712 standard for better security and readability.

Prerequisites

Sign Typed Data

EIP-712 Typed Data Structure

Common Use Cases

ERC-20 Permit (Gasless Approval)

Meta-Transaction

NFT Voucher

Order Signature (DEX)

Typed Data Builder

Best Practices

  • Validate typed data structure has all required fields
  • Display message data in readable format to users
  • Verify chain ID matches current network
  • Show clear explanation of what data is being signed
  • Never sign typed data you don’t understand

Error Handling

Troubleshooting

Invalid JSON: Ensure proper formatting with quotes, commas, and braces Chain ID mismatch: Verify chain ID in typed data matches wallet’s current network

What’s Next

Last modified on February 3, 2026