create_permit_signature
Generate EIP-2612 permit signatures for gasless token approvals, letting users sign off-chain to authorize ERC20 spending without paying gas fees.
Instructions
Create an EIP-2612 permit signature for gasless token approvals
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": {
"tokenAddress": "<tokenAddress>",
"tokenName": "<tokenName>",
"spender": "<spender>",
"value": "<value>",
"nonce": "<nonce>",
"deadline": "<deadline>",
"chainId": "<chainId>",
"privateKey": "<privateKey>"
},
"name": "create_permit_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Current nonce for the owner | |
| value | Yes | Amount to approve (in wei) | |
| chainId | Yes | Chain ID | |
| spender | Yes | Spender address to approve | |
| deadline | Yes | Permit deadline (unix timestamp) | |
| tokenName | Yes | Token name (for EIP-712 domain) | |
| privateKey | Yes | Private key in hex format (with or without 0x prefix). SECURITY: This is used only for address derivation and is not stored. The private key will not be logged or displayed in chat history. | |
| tokenAddress | Yes | ERC20 token address |