sign_typed_data
Sign structured EIP-712 data for gasless transactions, meta-transactions, permit signatures, and protocol-specific signatures using configured wallet.
Instructions
Sign structured data (EIP-712) using the configured wallet. Used for gasless transactions, meta-transactions, permit signatures, and protocol-specific signatures. The signature follows the EIP-712 standard.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domainJson": "<domainJson>",
"typesJson": "<typesJson>",
"primaryType": "<primaryType>",
"messageJson": "<messageJson>"
},
"name": "sign_typed_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainJson | Yes | EIP-712 domain as JSON string with fields: name, version, chainId, verifyingContract, salt (all optional) | |
| typesJson | Yes | EIP-712 types definition as JSON string (exclude EIP712Domain type - it's added automatically) | |
| primaryType | Yes | The primary type name (e.g., 'Mail', 'Permit', 'MetaTransaction') | |
| messageJson | Yes | The message data to sign as JSON string |