tuweni / org.apache.tuweni.units.ethereum / Wei / valueOf

valueOf

static fun valueOf(value: UInt256!): Wei! (source)

Return a Wei containing the specified value.

Parameters

value - UInt256!: The value to create a Wei for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
Wei!: A Wei containing the specified value.

static fun valueOf(value: Long): Wei! (source)

Return a Wei containing the specified value.

Parameters

value - Long: The value to create a Wei for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
Wei!: A Wei containing the specified value.

static fun valueOf(value: BigInteger!): Wei! (source)

Return a Wei containing the specified value.

Parameters

value - BigInteger!: The value to create a Wei for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
Wei!: A Wei containing the specified value.