Skip to content

Commit 8dac14f

Browse files
authored
send_transaction
I think the fees are expressed as gwei and not wei in the send_transaction 'gas'
1 parent b24db7d commit 8dac14f

File tree

1 file changed

+2
-2
lines changed
  • src/content/developers/tutorials/a-developers-guide-to-ethereum-part-one

1 file changed

+2
-2
lines changed

src/content/developers/tutorials/a-developers-guide-to-ethereum-part-one/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ We can also easily verify the success of this transaction by checking the balanc
281281

282282
```python
283283
In [12]: w3.eth.get_balance(w3.eth.accounts[0])
284-
Out[12]: 999996999999999999969000
284+
Out[12]: 999996999979000000000000
285285

286286
In [13]: w3.eth.get_balance(w3.eth.accounts[1])
287287
Out[13]: 1000003000000000000000000
288288
```
289289

290-
The latter looks good! The balance went from 1,000,000 to 1,000,003 ether. But what happened to the first account? It appears to have lost slightly more than three ether. Alas, nothing in life is free, and using the Ethereum public network requires that you compensate your peers for their supporting role. A small transaction fee was deducted from the account making the transaction to the tune of 31000 wei.
290+
The latter looks good! The balance went from 1,000,000 to 1,000,003 ether. But what happened to the first account? It appears to have lost slightly more than three ether. Alas, nothing in life is free, and using the Ethereum public network requires that you compensate your peers for their supporting role. A small transaction fee was deducted from the account making the transaction to the tune of 21000 gwei.
291291

292292
<div class="featured">Note: On the public network, transaction fees are variable based on network demand and how quickly you'd like a transaction to be processed. If you're interested in a breakdown of how fees are calculated, see my earlier post on <a href="https://medium.com/ethereum-grid/ethereum-101-how-are-transactions-included-in-a-block-9ae5f491853f">how transactions are included in a block</a>.</div>
293293

0 commit comments

Comments
 (0)