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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| router | Yes | ||
| chain_id | Yes | ||
| amount_wei | Yes |