ether.toWei: Conversion to Wei.

Description Usage Arguments Value See Also Examples

View source: R/ether.R

Description

ether.toWei returns the value of the cryptocurrency in Wei.

Usage

1
ether.toWei(amount, type)

Arguments

amount

Integer - Amount of the cryptocurrency to convert from.

type

String - Unit of the cryptocurrency to convert from: wei, kwei, mwei, gwei, szabo, finney, ether, kether, mether, gether or tether.

Value

Integer - Value in Wei.

See Also

Other ether functions: ether.toEther, ether.toFinney, ether.toGether, ether.toGwei, ether.toKether, ether.toKwei, ether.toMether, ether.toMwei, ether.toSzabo, ether.toTether, gethr

Examples

1
ether.toWei(50, 'ether')

gethr documentation built on May 2, 2019, 7:03 a.m.