publish_spend_authority_grant
[FREE] Publish a signed spend-authority grant, relayed to the facilitator.
Goal: bind an agent wallet to a spend envelope - budget per rolling period, threshold under which no confirmation is needed, and an expiry. Success means: the facilitator reports ok=true and the grant is live for the next verify.
signed_grant = {"grant": {...}, "signature": "0x..."} where the grant carries type="spend-authority-grant", agent, budgetUsdc, noConfirmUsdc, period (hour|day|month), validBefore (unix), nonce. The signature is EIP-191 over the canonical JSON (sorted keys, compact separators) and the recovered signer IS the owner. This tool carries no keys and signs nothing - the owner signs locally, and a new grant supersedes the previous one for that agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signed_grant | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||