stateful_budget_guard_icp
[x402 Paid: $0.015 Base USDC] Enforce payer-isolated stateful shared spending caps and atomic nonce replay protection across multi-agent swarms on Internet Computer (ICP).
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": {
"vaultId": "<vaultId>",
"agentId": "<agentId>",
"nonce": "<nonce>",
"action": "<action>",
"amountMicroUsd": "<amountMicroUsd>",
"budgetCapMicroUsd": "<budgetCapMicroUsd>"
},
"name": "stateful_budget_guard_icp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Unique idempotency/replay-protection nonce for this spend attempt (7-day on-chain TTL). | |
| action | Yes | Short action label describing the intended expenditure (e.g. x402_api_call). | |
| agentId | Yes | Identifier of the autonomous agent worker requesting spend approval. | |
| vaultId | Yes | Logical budget vault identifier isolated under the verified x402 payer address (1..64 chars). | |
| amountMicroUsd | Yes | Requested spend amount in micro-USD (1 USD = 1,000,000 micro-USD). | |
| budgetCapMicroUsd | Yes | Maximum cumulative spending cap for this vault in micro-USD. | |
| maxSingleMicroUsd | No | Optional per-transaction spending ceiling in micro-USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | ||
| reason | Yes | ||
| vaultId | Yes | ||
| decision | Yes | ||
| onChainProof | No | ||
| decisionSha256 | Yes | ||
| opaqueVaultKey | Yes | ||
| payerNamespace | Yes | ||
| replayDetected | Yes | ||
| remainingMicroUsd | Yes | ||
| stateAnchoredOnChain | Yes | ||
| cumulativeSpentMicroUsd | Yes |