{"uid":"cap_dFEQMNXKKOWh4InIfe79T","slug":"x402-toolbox-chain-token-decimals-f636ccc3","name":"x402-toolbox Chain Token Decimals","description":"309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.","url":"https://x402-toolbox.shablony-pro.workers.dev/chain/token-decimals?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2aXg9brH6ObBEh9DaXU3U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the number of decimal places for a specified blockchain token on a given chain via pay-per-call x402 micropayment.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Normalize raw DeFi token balances","prompt":"I pulled a raw on-chain balance of 1000000 for USDC on Base — can you look up the token decimals so I can convert that to a human-readable amount?"},{"title":"Validate token precision before swap","prompt":"Before I execute this token swap, I need to confirm the decimal count for the WETH token on Ethereum mainnet so my amounts are correctly scaled."},{"title":"Build multi-token portfolio dashboard","prompt":"I'm building a portfolio tracker and need the decimal precision for DAI, USDC, and USDT on Base so I can display balances correctly — can you fetch those?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:41:13.737Z","isFirstParty":false,"canonicalSlug":"x402-toolbox-chain-token-decimals-f636ccc3"}