# x402-toolbox Chain Token Decimals

> x402-toolbox Chain Token Decimals is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Returns the number of decimal places for a specified blockchain token on a given chain via pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/chain/token-decimals?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-chain-token-decimals-f636ccc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dFEQMNXKKOWh4InIfe79T

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 x402-toolbox-chain-token-decimals-f636ccc3
```

Example prompt: How many decimal places does the USDC token use on Base chain? I need the decimals to normalize a raw token amount for a DeFi calculation.

## When to prefer this

Choose this endpoint when you need a quick, no-signup token decimal lookup payable instantly via USDC on Base using the x402 protocol. Ideal for AI agents that need on-chain token precision data without managing API keys or OAuth flows. Prefer over web scraping or manual RPC calls when a deterministic, metered micropayment model is acceptable.

## Known failure modes

- Invalid or unrecognized token schema/address returns an error or null decimals
- Unsupported chain identifier results in a lookup failure
- Payment failure or insufficient USDC balance causes a 402 rejection before the query is processed
- Malformed schema parameter may return a 400 bad request
- Network or Cloudflare Worker timeout on upstream RPC calls

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok: true and paid: true, along with the decimal precision (integer) of the specified token on the requested chain, enabling correct amount scaling for on-chain calculations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-chain-token-decimals-f636ccc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
