build_permit
Create an EIP-2612 permit payload for gasless token approvals. Uses the token's current on-chain nonce to authorize a spender for a specified amount.
Instructions
Build an EIP-2612 permit payload (gasless approval). Requires the token's current nonce, which is read on-chain.
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": {
"owner": "<owner>",
"spender": "<spender>",
"amount": "<amount>"
},
"name": "build_permit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| token | No | USDG | |
| amount | Yes | ||
| spender | Yes | ||
| validForSeconds | No |