Actions53
- Account Actions
- Block Actions
- Transaction Actions
- Contract Actions
- ERC20 Actions
- ERC721 Actions
- ERC1155 Actions
- Gas Actions
- Signature Actions
- Utils Actions
- Custom RPC Actions
Utils → Format Units
AI-generatedSummary
Formats a numeric value in wei to a human‑readable string with specified decimals.
Inputs
- value (required) — The numeric value in wei as a string.
- decimals — Number of decimal places to use (default 18).
Output shape
a formatted string
Returns the value formatted according to decimals; may be empty on invalid input.
Examples
Example 1: Convert 1e18 wei to ETH with default decimals
value: "1000000000000000000", decimals: 18