MCP Ethers Wallet

parseUnits

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" }