revise_grant
Update a grant's policy: spending cap, allowed programs, and expiry. Requires root signature; agent cannot self-revise or change identity.
Instructions
Replace Grant policy fields. Root signs. Agent cannot revise. Same policy rules as issue_grant. Cannot change the agent (different PDA).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Base58 Solana public key. Never a secret. | |
| agent | Yes | Agent whose grant PDA to revise | |
| label | No | ||
| dry_run | No | ||
| expires_at_unix | Yes | ||
| allowed_programs | Yes | ||
| sponsor_eligible | No | This grant may use YOUR paymaster — not a promise Grok Chain pays. | |
| spend_cap_lamports | Yes | Lamports as integer or decimal string. Not a vault debit. |