finance 1 credit · ~$0.015 <10ms

Units Sanity Check

POST /v1/finance/units

Validates a raw on-chain amount against the intended UI amount using the token authoritative decimals. Catches the catastrophic decimal-scaling error — sending 1000x too many tokens.

Capabilities

  • Authoritative decimals from DexScreener and Solana RPC
  • Blocks over 1% deviation
  • Works across Solana and EVM chains
  • Under 10ms once decimals are known

Use cases

  • Any agent building a transfer transaction
  • Treasury and payout bots
  • The Lobstar $440k check
example
curl -X POST https://api.agent-toolbox.ai/v1/finance/units \
  -H "Content-Type: application/json" \
  -d '{"rawAmount": 1000000000, "uiAmount": 1.0, "token": "SOL"}'
response shape
{
  "verdict": "PASS" | "FLAG" | "BLOCK",
  // tool-specific findings…
  "certificate": "sha256:..."
}