Cum se estimează taxa de gas
Does this article need to be translated?
Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.
Obținerea taxei de gas
Dacă ești pe mainnet Ethereum, poți verifica instrumentul de calcul al taxei de gas al Etherscan pentru a estima taxa de gas de astăzi. Reține că taxa de gas este într-o continuă fluctuație; întotdeauna verifică instrumentul de calcul pentru a vedea prețurile curente ale gas-ului.
Rețeaua Ethereum necesită gas pentru a executa tranzacții. Când trimiți tokeni, interacționezi cu un contract, trimiți ETH sau faci orice altceva pe blockchain, trebuie să plătești pentru acel calcul. Această plată este calculată în gas, iar gas-ul se plătește întotdeauna în ETH.
You are paying for the computation, regardless of whether your transaction succeeds or fails. Even if it fails, validators must finalize and execute your transaction, which takes computational power. You must pay for that computation, just like you would pay for a successful transaction.
Obținerea limitei de gas
So, you know how much each unit of gas costs, but how many units of gas do you need to spend? Ei bine, dacă este o tranzacție simplă, să zicem, trimiterea tokenului ETH sau a unui token ERC-721 la o altă adresă, ar trebui să cheltui 21.000 de unități de gas. Dacă faci ceva mai complex, un instrument bun este un block explorer, cum ar fi etherscan.io. Navigate to the contract you wish to interact with, and start examining transactions made with the contract. This will give you a better idea of how much gas other users actually end up using.
Gas calculator
Există câteva instrumente disponibile pentru a estima cât te va costa gas-ul în monedă fiduciară înainte de a efectua o tranzacție. Un exemplu este calculatorul de taxe de gas Cryptoneur, care-ți permite să introduci detaliile tranzacției tale și să generezi costul estimat al gas-ului în moneda locală, conform cu cererea curentă de pe acea rețea (poți alege din majoritatea rețelelor compatibile EVM).
Structura generală a taxei de gas
Începând cu EIP-1559, taxa totală pe care o plătește un creator de tranzacție se calculează astfel: ( (comision de bază + taxă de prioritate) x unități de gas utilizate).
Pentru mai multe informații, vezi aici.
Please note this is not a fee that MetaMask receives so we cannot refund it. This fee is paid to miners or validators for finalizing the transaction, validating it into a block, and securing the blockchain.