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
Name | Required | Description | Default |
---|---|---|---|
unit | Yes | The number of decimals or unit name (e.g., 'gwei', 18) | |
value | Yes | The decimal string to parse |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MCP Ethers Wallet
- checkWalletExists
- contractCall
- contractCallView
- contractCallWithEstimate
- contractCallWithOverrides
- contractEvents
- contractSendTransaction
- contractSendTransactionWithEstimate
- contractSendTransactionWithOverrides
- formatEther
- formatUnits
- getBlockDetails
- getBlockNumber
- getContractCode
- getERC20Balance
- getFeeData
- getGasPrice
- getSupportedNetworks
- getTransactionDetails
- getTransactionsByBlock
- getWalletBalance
- getWalletTransactionCount
- lookupAddress
- parseEther
- parseUnits
- queryLogs
- resolveName
- sendRawTransaction
- sendTransaction
- sendTransactionWithOptions
- signMessage
Related Tools
- @crazyrabbitLTC/mcp-ethers-server
- @crazyrabbitLTC/mcp-ethers-server
- @crazyrabbitLTC/mcp-ethers-server
- @0xKoda/eth-mcp
- @nbiish/mcp-calc-tools