Hi
Have anyone heard that it is somehow possible to increase the cost of transaction (gas fee) inside of smart contract? And that extra amount goes not to miners but to owners of sc
Is it true? Seems dubious
Aug 24, 2020, 9:12 AM
you could ask the user to pay for executing a function but I am not aware that you can directly manipulate the costs of an OP code/transaction
Aug 24, 2020, 10:34 AM
Yeah, you can only check that the user sends Ethers along with the transaction which you keep but you can't "keep" gas costs - they always go to the miners.
In some cases you could check something like https://gastoken.io/ but it's a bit..special
In some cases you could check something like https://gastoken.io/ but it's a bit..special
Aug 24, 2020, 10:40 AM
Could this solve the high cost on mining tokens?
Aug 25, 2020, 9:50 AM
You mean the gas token? No, it's not really a solution to anything, it's just a trick to save on gas fees when fees are high - but you must've been prepared for it when fees were low.
Aug 25, 2020, 9:53 AM
I mean i got this minable token i made, but each block i mine it cost like almost 6 usd in fees to get that tokem transacted to my wallet
I don t get why but as i mine blocks if the gas fee is too low it will be rejected and fee is spent, even if is too low.. only high cost fee transactions are done
So i would like to understand how this can be avoided cause if i set a sufficient fee is ok, but later if gas price spikes up , my settings will be no more sufficient and fee will be "eaten" till no more eth available... This is so bad
This is on solo mining but would be the same on pool because it would eat all eth on the pool wallet
Aug 25, 2020, 10:00 AM
To begin with, you are not mining. You are just sending transactions.
If you are talking about *gas limits*, then transactions get reverted if they reach the gas limit. But I believe you mean *gas prices*. If your price is too low the transaction doesn't get rejected - it just stays in the transaction pool until someone mines it. This may take a long time if the gas price is too low.
There is no automatic way how to decide what gas price to use for transaction. You can use various services, such as https://ethgasstation.info/ to see the current fees.
If you are talking about *gas limits*, then transactions get reverted if they reach the gas limit. But I believe you mean *gas prices*. If your price is too low the transaction doesn't get rejected - it just stays in the transaction pool until someone mines it. This may take a long time if the gas price is too low.
There is no automatic way how to decide what gas price to use for transaction. You can use various services, such as https://ethgasstation.info/ to see the current fees.
Aug 25, 2020, 10:10 AM
in this case tx are done if mining process is done.. like 0xbtc, bsov, etc etc... the fact is that the miner software let me set gas limit and max price, if this is balanced and gas is enough the transaction will be done , otherwise is failed and gas is still used, and not gave back
if you want i can show you on etherscan but i havent already launched the token to the public
@Lauri_P
Aug 25, 2020, 10:33 AM