finance

Guard against decimal-scaling errors by verifying raw on-chain amount against the token's authoritative decimals.

Cost: 1 credit(s). Free tier: 10 calls per IP (no auth).

post/v1/finance/units

Request

  • Base URL: https://api.agent-toolbox.ai
  • URL: https://api.agent-toolbox.ai/v1/finance/units
  • Auth: one of:
    • HTTP bearer
    • none

Request body

tokenAddressstring required
rawAmountstring required
uiAmountnumber required
chain'solana' | 'ethereum' | 'bsc' | 'polygon' | 'base' | 'arbitrum' required

Response

Success.

verdict'PASS' | 'FLAG' | 'BLOCK' required
scorenumber required
latencyMsnumber required

Server compute time in ms.

authoritative_decimalsinteger nullable required
expected_rawstring nullable required
actual_rawstring required
deviation_pctnumber nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.