Vana SDK - v0.1.0
    Preparing search index...

    Function formatEth

    • Format wei value to ETH with specified decimal places

      Parameters

      • wei: string | number | bigint

        Value in wei (as bigint, string, or number)

      • decimals: number = 4

        Number of decimal places to display (default: 4)

      Returns string

      Formatted ETH value as string