wallet_sign
Sign a plain message with EIP-191 personal_sign for SIWE and attestations, or sign EIP-712 typed data for permits, DEX orders, and DeFi protocols using your wallet.
Instructions
Sign a message or typed data with your wallet.
Kinds:
"message"(default): EIP-191 personal_sign — for SIWE, attestations, offchain protocols"typedData": EIP-712 structured data — for permits, DEX orders, DeFi protocols
Examples:
Personal sign:
{"message": "Sign in to Example.com at 2024-01-01T00:00:00Z"}EIP-712 Permit:
{
"kind": "typedData",
"domain": {"name": "USDC", "version": "2", "chainId": 8453, "verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},
"types": {"Permit": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"}]},
"primaryType": "Permit",
"value": {"owner": "0x...", "spender": "0x...", "value": "1000000", "nonce": "0", "deadline": "1735689600"}
}Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wallet_sign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Signing kind. Defaults to "message". | |
| types | No | EIP-712 type definitions, excluding EIP712Domain (for kind:"typedData") | |
| value | No | The structured data to sign (for kind:"typedData") | |
| domain | No | EIP-712 domain (for kind:"typedData") | |
| message | No | The message to sign (plain text, for kind:"message") | |
| primaryType | No | The primary type to sign (for kind:"typedData") |