From 0f490ece1611e129cb2c84878f34cac345ccca41 Mon Sep 17 00:00:00 2001 From: Manu NALEPA Date: Wed, 11 May 2022 18:22:46 +0200 Subject: [PATCH] docs: 1**18 ==> 10**18 (#24858) 1**18 == 1 1 ether = 10**18 Wei != 1**18 Wei --- docs/_getting-started/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_getting-started/index.md b/docs/_getting-started/index.md index 4748e876b6..0ecbd81456 100644 --- a/docs/_getting-started/index.md +++ b/docs/_getting-started/index.md @@ -263,7 +263,7 @@ web3.fromWei(eth.getBalance("0xca57F3b40B42FCce3c37B8D18aDBca5260ca72EC"), "ethe ``` -There are actually two instructions sent in the above command. The inner one is the `getBalance` function from the `eth` namespace. This takes the account address as its only argument. By default, this returns the account balance in units of Wei. There are 118 Wei to one ether. To present the result in units of ether, `getBalance` is wrapped in the `fromWei` function from the `web3` namespace. Running this command should provide the following result (for the account that received faucet funds): +There are actually two instructions sent in the above command. The inner one is the `getBalance` function from the `eth` namespace. This takes the account address as its only argument. By default, this returns the account balance in units of Wei. There are 1018 Wei to one ether. To present the result in units of ether, `getBalance` is wrapped in the `fromWei` function from the `web3` namespace. Running this command should provide the following result (for the account that received faucet funds): ```terminal @@ -452,7 +452,7 @@ This requires approval in Clef. Once approved, the following information is retu ### Sending Transactions -Sending a transaction between accounts can also be achieved using Curl. Notice that the value of the transaction is a hexadecimal string in units of Wei. To transfer 0.1 ether, it is first necessary to convert this to Wei by multiplying by 118 then converting to hex. 0.1 ether is `"0x16345785d8a0000"` in hex. As before, update the `to` and `from` fields with the addresses in the Clef keystore. +Sending a transaction between accounts can also be achieved using Curl. Notice that the value of the transaction is a hexadecimal string in units of Wei. To transfer 0.1 ether, it is first necessary to convert this to Wei by multiplying by 1018 then converting to hex. 0.1 ether is `"0x16345785d8a0000"` in hex. As before, update the `to` and `from` fields with the addresses in the Clef keystore. ```shell