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

Wei

class Wei : BaseUInt256Value<Wei!> (source)

A unit measure of Wei as used by the Ethereum VM.

Functions

fromEth

Return a Wei containing the specified value from an ETH

static fun fromEth(ethValue: Long): Wei!

valueOf

Return a Wei containing the specified value.

static fun valueOf(value: UInt256!): Wei!
static fun valueOf(value: Long): Wei!
static fun valueOf(value: BigInteger!): Wei!