what is Gas Used by Transaction:
159,170 (100%)
is it wei, gwei or matic?

what is 100%

Aug 12, 2022, 2:00 PM
Gas is gas
Then in order to determine how much you need to pay you multiply gas used with base fee per gas
Aug 12, 2022, 2:05 PM
gas_price means wei per one item

Gas - means number of items

right?
Aug 12, 2022, 2:06 PM
gas is a unit
1 Gas = 1 Gas
Aug 12, 2022, 2:07 PM
what is 100%
major of my transaction has that thing about 5%
Aug 12, 2022, 2:08 PM
gas limit
Aug 12, 2022, 2:09 PM
is it good to have about 100%?
Aug 12, 2022, 2:18 PM
Not really. Perfect 100% util of gas usually happens when exec runs out of gas
Aug 12, 2022, 2:34 PM
low can I calculate optimal maxPriorityFeePerGas, maxFeePerGas

or gasPrice
?
Aug 12, 2022, 2:35 PM
From gas station
Aug 12, 2022, 2:36 PM
What are best faucets for Goerli eth?
Aug 12, 2022, 2:39 PM
do you know some? with free api
Aug 12, 2022, 2:39 PM
ethgasstation
Aug 12, 2022, 2:40 PM
You also have Infura
If you're using ether.js you can call it using const currentGasPrice = await provider.getGasPrice();
Where provider is const provider = new ethers.providers.getDefaultProvider(INFURA_HTTP_ENDPOINT);

And you get yours INFURA_HTTP_ENDPOINT once you create Infura account
Aug 12, 2022, 2:42 PM
i have

is it safe to use?
Aug 12, 2022, 2:43 PM
What do you mean by that?
Aug 12, 2022, 2:44 PM
so i will use it . thanks
can i do something like that with "gas" parameter? how big should it be
.buildTransaction({ 'gas' : 10**9})
Aug 12, 2022, 2:58 PM
You can only manipulate baseFeePerGas and gasLimit parameters
gasUsed is deterministic and it depends on your code and function that you called
It depends on your needs
Aug 12, 2022, 3:03 PM
ho cat I set them right?

not all of it set as 1*10^9 I dont feel it good idea
i need to mint nft)
about 2 hours for transaction is ok
Aug 12, 2022, 3:04 PM
If you need to add your transaction to next block asap than use something like gasPrice = last_block_gas_price * x, where x is anywhere between 1.2-2
If time is not that much of the concern just use last block gas price
https://etherscan.io/gastracker also shows you current gas prices
Aug 12, 2022, 3:05 PM

© 2024 Draquery.com All rights reserved.