Bitcoin Forum
May 14, 2024, 10:58:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ethereum Gas Fees und Ausführungskosten für Smart Contracts  (Read 97 times)
MrSteez (OP)
Member
**
Offline Offline

Activity: 122
Merit: 21


View Profile
January 10, 2022, 08:51:11 PM
 #1

Hallo miteinander,

nachdem ich durch Unwissenheit viel Geld in Ethereum Fees verbraten habe, habe ich es mir zur Aufgabe gemacht, mich etwas zu beleuchten. Kraken hat seine Ethereum Kundenwallet von einer einfachen Wallet auf einen Contract umgewandelt. Dies war für mich im Konto nirgends ersichtlich und es ist ein Transaktionsversuch nach dem anderen gescheitert (Out of Gas).

Das sich die Preise für Gas mit steigender Nachfrage nach Transaktionen erhöhen ist mir soweit klar. Aber wie berechnen sich die Ausführungskosten für einen Smart Contract?

Vielen Dank schonmal und liebe Grüße
MrSteez
1715684295
Hero Member
*
Offline Offline

Posts: 1715684295

View Profile Personal Message (Offline)

Ignore
1715684295
Reply with quote  #2

1715684295
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715684295
Hero Member
*
Offline Offline

Posts: 1715684295

View Profile Personal Message (Offline)

Ignore
1715684295
Reply with quote  #2

1715684295
Report to moderator
mole0815
Moderator
Legendary
*
Offline Offline

Activity: 2352
Merit: 2638


Join the world-leading crypto sportsbook NOW!


View Profile
January 11, 2022, 09:32:27 AM
 #2

MrSteez ich habe deinen Thread verschoben da es hier hin gehört.
Vielleicht findest du in diesem Thread etwas zu deiner Frage Smiley

Klick mich -> ETH Gaspreis Verständnisfrage

.
.Duelbits.
█▀▀▀▀▀











█▄▄▄▄▄
TRY OUR
  NEW  UNIQUE
GAMES!
.
..DICE...
███████████████████████████████
███▀▀                     ▀▀███
███    ▄▄▄▄         ▄▄▄▄    ███
███   ██████       ██████   ███
███   ▀████▀       ▀████▀   ███
███                         ███
███                         ███
███                         ███
███   ▄████▄       ▄████▄   ███
███   ██████       ██████   ███
███    ▀▀▀▀         ▀▀▀▀    ███
███▄▄                     ▄▄███
███████████████████████████████
.
.MINES.
███████████████████████████████
████████████████████████▄▀▄████
██████████████▀▄▄▄▀█████▄▀▄████
████████████▀ █████▄▀████ █████
██████████      █████▄▀▀▄██████
███████▀          ▀████████████
█████▀              ▀██████████
█████                ██████████
████▌                ▐█████████
█████                ██████████
██████▄            ▄███████████
████████▄▄      ▄▄█████████████
███████████████████████████████
.
.PLINKO.
███████████████████████████████
█████████▀▀▀       ▀▀▀█████████
██████▀  ▄▄███ ███      ▀██████
█████  ▄▀▀                █████
████  ▀                    ████
███                         ███
███                         ███
███                         ███
████                       ████
█████                     █████
██████▄                 ▄██████
█████████▄▄▄       ▄▄▄█████████
███████████████████████████████
10,000x
MULTIPLIER
NEARLY UP TO
.50%. REWARDS
▀▀▀▀▀█











▄▄▄▄▄█
MrSteez (OP)
Member
**
Offline Offline

Activity: 122
Merit: 21


View Profile
January 11, 2022, 10:18:52 AM
 #3

Oh danke! Ich dachte die Frage wäre so Basic, dass sie in den Anfängerbereich gehört  Smiley
sam00
Legendary
*
Offline Offline

Activity: 1078
Merit: 1123



View Profile
January 11, 2022, 08:15:34 PM
Merited by mole0815 (1)
 #4

Oh danke! Ich dachte die Frage wäre so Basic, dass sie in den Anfängerbereich gehört  Smiley

Hey MrSteez,
mole0815 hat deinen Beitrag glaube ich nicht wegen der Komplexität (derer ich mir nicht anmaße, sie zu beurteilen, da ich mich selbst nicht damit auskenne) verschoben, sondern weil es eben nicht in das Bitcoin Anfänger und Hilfe Board gehört. Bitcoin und Altcoins sind einfach klar getrennt.
Sorry, dass ich dir nicht auf deine eigentliche Frage antworte.
MrSteez (OP)
Member
**
Offline Offline

Activity: 122
Merit: 21


View Profile
January 12, 2022, 09:57:22 AM
 #5

Ich bin schon selber etwas weiter gekommen. Was noch für mich offen ist, wie berechnen sich die höheren Transaktionskosten für Contracts (zB. ERC20)? Hier braucht es ein höheres Limit. Standart sind soweit ich weiß 21.000. Bei ERC20 muss das Limit meist deutlich höher angesetzt werden. Aber wie genau berechnet sich das ganze?
Lakai01
Legendary
*
Offline Offline

Activity: 2296
Merit: 2726


Top Crypto Casino


View Profile
January 12, 2022, 10:58:57 AM
 #6

Was noch für mich offen ist, wie berechnen sich die höheren Transaktionskosten für Contracts (zB. ERC20)? Hier braucht es ein höheres Limit. Standart sind soweit ich weiß 21.000. Bei ERC20 muss das Limit meist deutlich höher angesetzt werden. Aber wie genau berechnet sich das ganze?
Kurz gesagt: Eine Transaktion insich verbrennt Gas. Wie viele Transaktionen bei der Ausführung eines Smart Contracts notwendig sind weiß man in der Regel aber vorab nicht:

Quote
Basically, miners and contracts do not know in advance the gas/fees needed for a transaction: they have to run the code in the transaction to find out. This is why the gas specified in a transaction, is the maximum amount that the transaction is willing to consume.

Quelle

Die einzige Lösung für dich als Enduser: Das Limit möglichst hoch setzen um ja nicht out-of-gas zu laufen, weil dann geht weder der Contract durch noch bekommst du die bezahlten Fees zurück.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
MrSteez (OP)
Member
**
Offline Offline

Activity: 122
Merit: 21


View Profile
January 12, 2022, 12:27:48 PM
 #7

Danke für deine Antwort. Gibt es zufällig einen historischen Chart der Transaktionsgebühren für Smart Contracts? Auf Etherscan gibt es einige super Charts. Auf dieser hier werden wohl nur die reinen Ether Transaktionen aufgelistet: https://etherscan.io/chart/avg-txfee-usd
Mich würde dazu der Vergleich der Kosten für eine Contract Transaktion interessieren.
Lakai01
Legendary
*
Offline Offline

Activity: 2296
Merit: 2726


Top Crypto Casino


View Profile
January 12, 2022, 04:30:47 PM
Merited by sam00 (1)
 #8

Gibt es zufällig einen historischen Chart der Transaktionsgebühren für Smart Contracts?
Ich kenne ehrlich gesagt keinen und stell mir das auch recht schwierig vor. Es ist maximal bei sehr einfachen Contracts so, dass eine "Contract Ausführung" immer die selbe Anzahl an Transaktionen benötigt. Bei Contract Transaktionen muss man folgende zumindest unterscheiden:

Quote
For “transaction of a contract” possible meanings are:

Transaction sent to this contract.
Transaction sent by this contract (internal transaction).
Transaction that created this contract.
Transaction that destroyed this contract.
Transaction that destroyed some other contracts sending remaining ether from the balance of destroyed contract to this contract without executing this contract's byte code.
Transaction that accessed this contract without executing its byte code, i.e. read ether balance of this contract or byte code of it.
Transaction that performed delegate call to this contract.
You need to use different approaches to detect and count different kinds of transaction related to the contract in different ways. In some cases Web3 API will be enough, but in the other cases, you will need to trace transactions all use etherescan.io API.

Quelle

Führst du also einen Contract 2 Mal hintereinander aus ist nicht garantiert, dass dieser die gleiche Anzahl an Transaktionen benötigt und daher gleich viel kostet. Contractausführungen sind daher recht schwer miteinander zu vergleichen.


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
MrSteez (OP)
Member
**
Offline Offline

Activity: 122
Merit: 21


View Profile
January 12, 2022, 04:38:49 PM
 #9

Sehr gute Informationen. Ich danke dir.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!