Variable: formatEth()

December 9, 2025 ยท View on GitHub

iexec


iexec / utils / formatEth

Variable: formatEth()

const formatEth: (wei) => string

format a wei amount in Eth

example:

console.log('500000000 wei =' + formatEth('500000000')) + 'ether');

Parameters

wei

WeiAmount

Returns

string

Contents

  1. 1Parameters
  2. 1.1wei
  3. 2Returns