publish_spend_authority_grant
Publish a signed spend-authority grant to bind an agent wallet to a spend envelope with per-period budget, no-confirm threshold, and expiry; the facilitator relays it for activation.
Instructions
[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 recovere
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": {
"signed_grant": "<signed_grant>"
},
"name": "publish_spend_authority_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signed_grant | Yes |