transactions / approve_router
transactions.approve_routerApprove ERC20 tokens for an allowlisted Rootstock router, rejecting arbitrary spenders and simulating policy-gated transactions before execution.
Instructions
ERC20 approve whose spender must be an allowlisted Rootstock router. Arbitrary spenders refused. Sim-first, policy-gated.
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_id": "<chain_id>",
"token": "<token>",
"router": "<router>",
"amount_wei": "<amount_wei>"
},
"name": "transactions.approve_router"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| router | Yes | ||
| chain_id | Yes | ||
| amount_wei | Yes |