Variable: parseRLC()

December 9, 2025 ยท View on GitHub

iexec


iexec / utils / parseRLC

Variable: parseRLC()

const parseRLC: (value, defaultUnit?) => BN

parse a string formatted RLC value in nRLC big number

supported units: 'nRLC', 'RLC' default unit 'nRLC'

example:

console.log('5 RLC =' + parseEth('5 RLC') + 'nRLC');
console.log('5 RLC =' + parseEth(5, 'RLC') + 'nRLC');

Parameters

value

string

defaultUnit?

string

Returns

BN

Contents

  1. 1Parameters
  2. 1.1value
  3. 1.2defaultUnit?
  4. 2Returns