agentek-eth

by NaniDAO
Verified

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

ID: embaq2gcce