Skip to main content
Glama

agentek-eth

by NaniDAO

getDecimals

Retrieve the number of decimals for any ERC20 token on Ethereum or supported chains using its token address. Simplify token data analysis and integration.

Instructions

Gets the number of decimals of an ERC20 token

Input Schema

NameRequiredDescriptionDefault
chainIdNoIf not specified, returns decimals for all supported chains.
tokenYesThe token address

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chainId": { "description": "If not specified, returns decimals for all supported chains.", "type": "number" }, "token": { "description": "The token address", "type": "string" } }, "required": [ "token" ], "type": "object" }

You must be authenticated.

Other Tools from agentek-eth

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NaniDAO/agentek'

If you have feedback or need assistance with the MCP directory API, please join our Discord server