{"uid":"cap_ORCnjxmMHtVCHEo7mXMq-","slug":"crypto-amount-sanity-checker-aac8c316","name":"Crypto Amount Sanity Checker","description":"Check token amount decimals, dust, unusually round/precise values and mismatch against a stated invoice amount.","url":"https://gateway.apiosk.com/crypto-sanity/check/amount","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.022","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RUoHbNJvxl9wsfUCEtpDZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a cryptocurrency payment amount against an invoice amount, checking for precision and decimal consistency issues","exampleAgentPrompt":"Before I send this payment, sanity check that the amount '1000000' matches the invoice amount '1.00' for a token with 6 decimal places — flag any precision or mismatch issues.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a boolean `valid` flag, an `ok` status, an `issues` array listing any critical problems (e.g. amount mismatch, decimal overflow), and a `warnings` array for non-critical concerns like rounding.","failureModes":["Missing or malformed `amount` field returns validation error","Token decimals value out of expected range causes processing failure","Non-numeric string in amount field causes parse error","Invoice amount and amount in incompatible formats returns issues array populated with mismatch errors"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that a cryptocurrency token amount (on-chain representation) correctly matches an expected invoice amount, especially when dealing with token decimal precision. Ideal as a pre-flight check before executing a crypto payment to catch rounding, overflow, or mismatch errors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:48:39.643Z","isFirstParty":false}