evm-token-decimals

Query EVM token decimals on-chain and normalize balances with chain-aware caching.

1|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/ROYCE-8425/ai-marketing-hub --skill evm-token-decimals-royce-8425
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evm-token-decimals
Source: https://github.com/ROYCE-8425/ai-marketing-hub/tree/main/skills/evm-token-decimals
Command: npx skills add https://github.com/ROYCE-8425/ai-marketing-hub --skill evm-token-decimals-royce-8425

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires web3.py, and includes scripts (resource) components.

What problem does it solve?

This Skill identifies and prevents silent decimal mismatch bugs across EVM chains, ensuring accurate token balances and calculations.

Core Features & Use Cases

  • Runtime Decimal Lookup: Query token decimals on-chain to avoid discrepancies.
  • Chain-Aware Caching: Cache results by chain and token address for efficiency.
  • Bridged-Asset Precision: Safely normalize bridged tokens to prevent drift.
  • Safe Normalization: Standardize internal accounting for accurate comparisons and pricing.
  • Use Case: For building bots, dashboards, or DeFi tools that require precise token calculations across EVM chains.

Quick Start

Use the 'evm-token-decimals' skill to fetch the decimals for a token on Ethereum chain with address '0xABC...' and wallet '0xXYZ...'.

Frequently Asked Questions about evm-token-decimals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle EVM token decimal mismatches across multiple chains?

To handle EVM token decimal mismatches across chains, you query token decimals on-chain at runtime and cache the results by chain and token address. This standardizes internal accounting and prevents silent calculation errors in DeFi tools.

Why does my DeFi bot show incorrect token balances for bridged assets?

Your DeFi bot shows incorrect token balances for bridged assets due to silent decimal drift. Safely normalizing bridged tokens with runtime decimal lookups ensures precise balance calculations and prevents these discrepancies across EVM chains.

Can I use web3.py to query token decimals on Ethereum for a specific wallet?

Yes, you can use web3.py to query token decimals on Ethereum. The skill fetches the decimals for a specific token address and wallet, enabling chain-aware caching and safe normalization for accurate on-chain interactions.

What is the best way to standardize token balance precision for DeFi dashboards?

The best way to standardize token balance precision for DeFi dashboards is to perform runtime decimal lookups and apply chain-aware caching. This safely normalizes internal accounting, ensuring accurate comparisons and pricing across different EVM networks.

Do I need web3.py installed to fetch EVM token decimals at runtime?

Yes, you need web3.py installed to fetch EVM token decimals at runtime. The skill requires web3.py for Ethereum contract interactions to identify and mitigate decimal mismatches in token balances across EVM chains.