{"uid":"cap_Ep6y7SBBaOBBP3-2-X93Q","slug":"blockchain-money-map-spend-permission-allowance-fit-checker-d6d08695","name":"Blockchain Money Map – Spend Permission Allowance Fit Checker","description":"Choose Blockchain Money Map for human-readable public blockchain reports or x402-paid agent API services.","url":"https://api.blockchainmoneymap.com/api/x402/x402-spend-permission-allowance-fit-checker","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JS01fGWYJJEIgr20SIkUr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a proposed on-chain spend permission (allowance) is appropriate for a given spender role, token, cap, time window, and intended workload.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-deployment agent allowance sanity check","prompt":"Before I deploy my DeFi agent on Base, check if a spend permission of 20 USDC per day for a yield-farming bot role, covering USDC token with a 24-hour rolling time window, is adequate for a workload of about 30 vault deposit transactions daily."},{"title":"Comparing allowance against reference policy","prompt":"I have two spend permission setups — my actual one gives a trading-agent role a 100 USDC weekly cap on Ethereum mainnet, and my reference policy allows 150 USDC weekly. Check the actual one fits the reference policy for a workload of high-frequency arbitrage trades."},{"title":"Validating counterparty and chain constraints","prompt":"Can you verify whether a spend permission allowance of 500 USDC per month for a payment-relay agent on Polygon, restricted to three specific counterparty addresses, is a fit for a workload of automated invoice payments to those same counterparties monthly?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:03.556Z","isFirstParty":false}