Skip to content

Commit 8bdeaf0

Browse files
authored
Merge pull request #8789 from Mattiatore/patch-1
send_transaction
2 parents b622cb1 + a5f2aae commit 8bdeaf0

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,15 @@ 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 that submitted the transaction - this fee is the amount of gas burned (21000 units of gas for an ETH transfer) multiplied by a base fee that varies according to network activity plus a tip that goes to the validator that includes the transaction in a block.
291+
292+
More on [gas](https://ethereum.org/en/developers/docs/gas/#post-london)
291293

292294
<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>
293295

0 commit comments

Comments
 (0)