evm-token-decimals

Query on-chain token decimals and normalize amounts across EVM chains.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill evm-token-decimals-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evm-token-decimals
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/evm-token-decimals
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill evm-token-decimals-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Silent decimal mismatches can cause balances or USD values to be off by orders of magnitude without throwing an error.

Core Features & Use Cases

  • Runtime lookups of token decimals across EVM chains
  • Chain-aware caching keyed by (chain_id, token_address)
  • Safe normalization of amounts for tokens with differing decimals, including bridged assets
  • Use cases: reconciliation of on-chain balances in wallets, dashboards, and DeFi tooling

Quick Start

Query a token's decimals at runtime, cache results by chain_id and token_address, and normalize amounts to a standard decimal.

Frequently Asked Questions about evm-token-decimals

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

FAQPage Schema
How do I prevent silent ERC20 token balance mismatches across EVM chains?

To prevent silent ERC20 token balance mismatches, perform runtime lookups of token decimals and apply safe normalization to standardize amounts before executing arithmetic across EVM chains.

Why does my cross-chain DeFi dashboard show incorrect USD values for bridged assets?

Cross-chain DeFi dashboards show incorrect USD values for bridged assets due to silent decimal mismatches, which you prevent by querying on-chain decimals and applying safe normalization for accurate arithmetic.

What is the best way to cache runtime decimals for cross-chain token reconciliation?

The best way to cache runtime decimals for cross-chain token reconciliation is using chain-aware caching keyed by chain_id and token_address to ensure accurate normalization of differing token amounts.

Does this approach work for reconciling wallet balances across tokens with differing decimals?

Yes, querying runtime decimals and applying safe normalization works for reconciling wallet balances across tokens with differing decimals, preventing mispricing caused by unstandardized arithmetic operations.

When do I need to query on-chain token decimals instead of hardcoding values?

You need to query on-chain token decimals instead of hardcoding values when reconciling on-chain balances in wallets, dashboards, and DeFi tooling across EVM chains where bridged assets may have differing decimals.

What are the limitations of relying on hardcoded decimals for EVM token normalization?

Hardcoding decimals for EVM token normalization fails when bridged assets have differing decimals across chains, causing silent mispricing without throwing errors, which runtime lookups and chain-aware caching prevent.