# Blockchain Money Map – Spend Permission Allowance Fit Checker

> Blockchain Money Map – Spend Permission Allowance Fit Checker is a paid API for AI agents from api.blockchainmoneymap.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Validates whether a proposed on-chain spend permission (allowance) is appropriate for a given spender role, token, cap, time window, and intended workload.

## Facts

- Endpoint: POST https://api.blockchainmoneymap.com/api/x402/x402-spend-permission-allowance-fit-checker
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-money-map-spend-permission-allowance-fit-checker-d6d08695
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ep6y7SBBaOBBP3-2-X93Q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockchain-money-map-spend-permission-allowance-fit-checker-d6d08695 -d '<json body>'
```

Example prompt: Check whether a spend permission allowance of 50 USDC per week for a trading-bot spender role on Base, with ETH as the token and a 7-day rolling time window, is a good fit for an intended workload of roughly 200 small swaps per week.

## When to prefer this

Choose this endpoint when an AI agent or developer needs to programmatically validate that an on-chain spend permission's parameters (cap, token, time window, recurrence, allowed chains/counterparties) are appropriately sized and structured for a given workload before deploying or approving it. It is especially useful in agentic systems using x402 micropayments or Coinbase-style spend permissions where over- or under-provisioned allowances carry real financial risk.

## Known failure modes

- Missing required fields (spender_role, token, amount_cap, time_window, intended_workload, allowance_unit) returns validation error
- Invalid token or chain identifiers produce unrecognized entity error
- Mismatched or conflicting facts vs reference_facts may return an error or inconclusive result
- Payment of $0.01 USDC via x402 required — missing payment header results in 402 Payment Required
- Malformed time_window object causes schema rejection

## How this service works

Choose Blockchain Money Map for human-readable public blockchain reports or x402-paid agent API services.

## Output

Returns a JSON assessment indicating whether the proposed spend permission allowance parameters (cap, token, time window, recurrence, chains, counterparties) are a good fit for the stated workload and spender role, potentially including gap analysis, warnings, or comparison against reference facts or a policy object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "check"
   ]
  },
  "facts": {
   "type": "object",
   "required": [
    "spender_role",
    "token",
    "amount_cap",
    "time_window",
    "intended_workload",
    "allowance_unit"
   ],
   "properties": {
    "token": {
     "type": "string",
     "maxLength": 500
    },
    "amount_cap": {
     "type": "number"
    },
    "recurrence": {
     "type": "string",
     "maxLength": 500
    },
    "time_window": {
     "type": "object",
     "maxProperties": 50,
     "additionalProperties": true
    },
    "spender_role": {
     "type": "string",
     "maxLength": 500
    },
    "allowance_unit": {
     "type": "string",
     "maxLength": 500
    },
    "allowed_chains": {
     "type": "array",
     "maxItems": 50
    },
    "intended_workload": {
     "type": "string",
     "maxLength": 500
    },
    "allowed_counterparties": {
     "type": "array",
     "maxItems": 50
    }
   },
   "additionalProperties": false
  },
  "policy": {
   "type": "object",
   "additionalProperties": true
  },
  "reference_facts": {
   "type": "object",
   "required": [
    "spender_role",
    "token",
    "amount_cap",
    "time_window",
    "intended_workload",
    "allowance_unit"
   ],
   "properties": {
    "token": {
     "type": "string",
     "maxLength": 500
    },
    "amount_cap": {
     "type": "number"
    },
    "recurrence": {
     "type": "string",
     "maxLength": 500
    },
    "time_window": {
     "type": "object",
     "maxProperties": 50,
     "additionalProperties": true
    },
    "spender_role": {
     "type": "string",
     "maxLength": 500
    },
    "allowance_unit": {
     "type": "string",
     "maxLength": 500
    },
    "allowed_chains": {
     "type": "array",
     "maxItems": 50
    },
    "intended_workload": {
     "type": "string",
     "maxLength": 500
    },
    "allowed_counterparties": {
     "type": "array",
     "maxItems": 50
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-money-map-spend-permission-allowance-fit-checker-d6d08695/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchainmoneymap.com](https://www.zero.xyz/host/api.blockchainmoneymap.com/llms.txt)
