# Crypto Amount Sanity Checker

> Crypto Amount Sanity Checker is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Validates a cryptocurrency payment amount against an invoice amount, checking for precision and decimal consistency issues

## Facts

- Endpoint: POST https://gateway.apiosk.com/crypto-sanity/check/amount
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-amount-sanity-checker-aac8c316
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ORCnjxmMHtVCHEo7mXMq-

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 crypto-amount-sanity-checker-aac8c316 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Check token amount decimals, dust, unusually round/precise values and mismatch against a stated invoice amount.

## Output

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.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-amount-sanity-checker-aac8c316/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
