Build revoke txs (approve to 0), simulated
blazar_build_revokeBuild UNSIGNED revoke txs (approve(spender, 0)) on Polygon (default), Base or Ethereum (chain param) for 1-10 token/spender pairs, each simulated from the owner, with the current allowance and gas. Feed it the active entries from blazar_allowances. Returns txs[] plus batch (EIP-5792) to revoke several in one smart-wallet call.
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": {
"from": "<from>",
"revokes": "<revokes>"
},
"name": "blazar_build_revoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Address that will sign and send the txs. Required: used for allowance checks, simulation and nonce. | |
| chain | No | Chain: "polygon" (default, chain 137), "base" (8453) or "ethereum" (1). BZB / BlazarSwap tools are Polygon only. | |
| revokes | Yes | 1-10 token/spender pairs, e.g. the active entries from blazar_allowances. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txs | Yes | Sign and send in order. | |
| from | No | ||
| next | No | ||
| batch | No | EIP-5792 wallet_sendCalls request with the same calls (smart wallets). | |
| quote | No | ||
| action | Yes | ||
| guards | No | ||
| safety | No | ||
| chainId | No | 137 Polygon, 8453 Base, 1 Ethereum. BlazarForce builds are always 137. | |
| details | No | ||
| signing | No | ||
| summary | Yes | ||
| warnings | Yes | ||
| routeGuide | No | ||
| simulation | Yes |