# Bot Bazaar Token Decimal Normalizer

> Bot Bazaar Token Decimal Normalizer is a paid API for AI agents from bot-bazaar.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-27).

Converts token amounts between human-readable decimal strings and exact atomic integer units for tokens with 6, 8, or 18 decimal places.

## Facts

- Endpoint: GET https://bot-bazaar.fly.dev/v1/x402/token-decimal-normalizer?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bot-bazaar-token-decimal-normalizer-d98783e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BStv0JU-wYJ9qEDtSrzP3

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 bot-bazaar-token-decimal-normalizer-d98783e4
```

Example prompt: Convert the decimal token amount 1.5 to its exact atomic integer units for a token with 18 decimals, like ETH or a standard ERC-20.

## When to prefer this

Use this endpoint when you need a reliable, on-demand conversion between human-readable token decimal strings and exact on-chain atomic integer units for common token precisions (6 for USDC/USDT, 8 for WBTC, 18 for ETH/ERC-20). Prefer it over manual arithmetic when building agent-driven DeFi transactions, encoding contract calldata, or validating token amounts where precision errors would be costly.

## Known failure modes

- Missing or invalid 'amount' query parameter returns an error
- Unsupported decimal precision outside 6, 8, or 18 may return an error or unexpected result
- Malformed decimal string (e.g. multiple dots, non-numeric characters) returns a parse error
- Network or server error on the fly.dev host returns 5xx
- Payment not sent or invalid x402 payment header returns 402 Payment Required

## How this service works

Convert token amounts between human decimal strings and exact atomic integer units across 6, 8, or 18 decimals.

## Output

Returns the atomic integer unit representation of the given decimal token amount (and/or the reverse human decimal form), accounting for the token's specified decimal precision (6, 8, or 18).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "amount": {
       "type": "string",
       "description": "Decimal token amount string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bot-bazaar-token-decimal-normalizer-d98783e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bot-bazaar.fly.dev](https://www.zero.xyz/host/bot-bazaar.fly.dev/llms.txt)
