evm_generate_permit
Generate an EIP-2612 permit signature for gasless ERC20 token approvals, enabling off-chain approval and meta-transactions without an on-chain approve() transaction.
Instructions
Generate EIP-2612 permit signature for gasless token approvals.
Creates off-chain approval signature that can be used instead of on-chain approve() transactions. Enables gasless user experiences and meta-transactions.
PARAMETERS:
chain: Target EVM chain
tokenAddress: ERC20 token with EIP-2612 support
owner: Token owner address
spender: Address to approve
value: Approval amount in token units
privateKey: Owner's private key for signing
deadline: Unix timestamp expiry (optional, default: 1 hour)
EIP-2612 PERMIT: • No approve() transaction needed • Saves gas fees for users • One-time use signature • Can be submitted by relayers • Signature valid until deadline
Returns permit signature (v,r,s), transaction data, and usage examples.
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": {
"chain": "<chain>",
"tokenAddress": "<tokenAddress>",
"owner": "<owner>",
"spender": "<spender>",
"value": "<value>",
"privateKey": "<privateKey>"
},
"name": "evm_generate_permit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| owner | Yes | Token owner address | |
| value | Yes | Approval amount | |
| spender | Yes | Address to approve | |
| deadline | No | Unix timestamp deadline | |
| privateKey | Yes | Owner private key | |
| tokenAddress | Yes | ERC20 token address (must support EIP-2612) |