Skip to content

Commit

Permalink
Updated JavaScript API (markdown)
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Feb 23, 2015
1 parent 9016a07 commit 71e0a2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions JavaScript-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ var value = web3.fromDecimal('21');
console.log(value === "0x15"); // true
```

##### web3.fromWei([String,BigNumber] number, [String] unit)
##### web3.fromWei

web3.fromWei([String,BigNumber] number, [String] unit)

Converts a number of wei into the following ethereum units:

- kwei/ada
Expand All @@ -154,7 +157,10 @@ var value = web3.fromWei('21000000000000', 'finney');
console.log(value === "0.021"); // true
```

##### web3.toWei([String,BigNumber] number, [String] unit)
##### web3.toWei

web3.toWei([String,BigNumber] number, [String] unit)

Converts a number a ethereum unit into wei. Possible units are:

- kwei/ada
Expand Down

0 comments on commit 71e0a2e

Please sign in to comment.