Skip to main content

Method Signature

Parameters

string
required
Human-readable amount (e.g., "100.50")
number
required
Token decimals (e.g., 6 for USDC, 18 for ETH)

Returns

Returns the raw amount as a string (e.g., "100500000").

Examples

Use in Contract Calls

This is a synchronous method - no network calls are made.

Format Amount

Convert to readable

Get Token Info

Get token decimals