撤销 agent 授权
build_agent_revokeBuild an unsigned transaction for a user wallet to sign that revokes an agent's trading permissions, resetting usage limits, expiry, and gas budget; optionally clear USDC/WBNB allowances.
Instructions
agent 专用通道:生成用户主钱包要签的撤销交易,立即收回 agent 的交易权限(次数、到期、gas 报销一起清零)。可选同时把 USDC / WBNB 授权额度清零。
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": {
"account": "<account>",
"agent": "<agent>",
"resetUsdcAllowance": "<resetUsdcAllowance>",
"resetGasBudget": "<resetGasBudget>"
},
"name": "build_agent_revoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | 要撤销的 agent 地址 | |
| account | Yes | 用户钱包地址(交易的签名人和收款人) | |
| resetGasBudget | Yes | 同时把 WBNB gas 预算授权清零 | |
| resetUsdcAllowance | Yes | 同时把 USDC 授权清零(网页下单时会重新请求授权) |