Skip to main content
Glama

MCP Ethers Wallet

parseUnits

Convert decimal strings into their smallest unit representation, such as converting Ether to Wei, for accurate blockchain transactions and calculations in Ethereum networks.

Instructions

Convert a decimal string to its smallest unit representation

Input Schema

NameRequiredDescriptionDefault
unitYesThe number of decimals or unit name (e.g., 'gwei', 18)
valueYesThe decimal string to parse

Input Schema (JSON Schema)

{ "properties": { "unit": { "description": "The number of decimals or unit name (e.g., 'gwei', 18)", "type": [ "string", "number" ] }, "value": { "description": "The decimal string to parse", "type": "string" } }, "required": [ "value", "unit" ], "type": "object" }

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/crazyrabbitLTC/mcp-ethers-server'

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