Questions tagged [fees]
Questions related to the transactions fees and gas costs in Ethereum
82
questions with no upvoted or accepted answers
3
votes
0
answers
42
views
Why does a STORAGEADD op (SSTORE) add 80 bytes to state rather than 32?
According to this spreadsheet that Vitalik has referenced before, stating that it's what they used to determine gas fees for each opcode, a STORAGEADD opcode (presumably renamed to SSTORE) is ...
3
votes
3
answers
306
views
Sandwich Attack: Why do they use so high gas fees on sells?
I am currently watching into vulnerabilities and different threats for DEXes.
I found some sandwich attacks or front running, that use moderate-high Gas Fees on Buy and crazy high Gas fees on the sell....
3
votes
0
answers
275
views
block.basefee, tx.gasprice and gasleft() in Optimism/Arbitrum
Does block.basefee, tx.gasprice and gasleft() work the same in Optimism and Arbitrum as they do on L1? If not, how do they differ? Do these L2s even have a base fee like L1 does?
I'm trying to make a ...
2
votes
1
answer
126
views
Base fee determination in Polygon / tâtonnement
I am currently stuck in my understanding of the base fee pricing. According to the [wiki](https://ethereum.org/en/developers/docs/gas/#block-sizestrong text) of the Ethereum mainnet, the base fee is ...
2
votes
1
answer
237
views
Get Max Priority Fee (miner tip) from transactions in transaction pool (mempool)
I'm scanning the transaction pool via txpool_content. However, for each pending / queued transaction, I only see they keys 'gas' and 'gasPrice'. How does one check what the maxPriorityFee is for each ...
2
votes
0
answers
227
views
Calculating Gas Fees
I'm trying to build a test (hardhat) on the withdrawal of a smart contracts funds and then making sure that the funds received are the correct amount.
I've spent ages trying to figure out what i am ...
2
votes
0
answers
637
views
Trying to get buy and sell fee for any BEP20/ERC20
I'm trying to understand how https://honeypot.is/?address=0x317a214777a04576b0287fc8abc98738b27815c8 works.
I'll link all info from the BSC checker but is almost the same for ETH
They are using a ...
2
votes
1
answer
782
views
gas fee on OpenSea
First, I'm brand new to the Ethereum platform, so I do apologise if any of the following is considered stupid questions. Now, I will ask my question anyway
I am setting up the first sale of one of my ...
2
votes
0
answers
321
views
ERC-2222 : Funds Distribution Token implementation for a fee contract
My MainCore contract is a contract who sell NFT, and all the sell and buy have a 1% fee for team developper (uint DevelopperCutTotalSupply).
I try to implement the ERC-2222 "Funds Distribution ...
2
votes
0
answers
632
views
Ethereum transaction sent from Ledger Nano X stuck because too low tranasction fee used
My ETH are STUCK.
48 hours ago i sent 31 ETH from my Ledger Nano X to my Coinbase account, but i choose the slowest and cheapest method that was diplayed into my ledger ( I don't remember how much gas ...
2
votes
1
answer
389
views
How long did a transaction spend in the mempool?
I'm trying to create some statistics on how long a transaction spends in the mempool before being included in a block, so I can reason about future gas prices. It would appear transactions in Ethereum ...
2
votes
0
answers
564
views
Remix Testrpc "base fee exceeds gas limit"
I am following this great tutorial from Ed Zynda. I started testrpc and tried to deploy the FuncToken.sol to a Web3 Provider. I managed to connect to the local RPC (have to change protocol from https ...
2
votes
0
answers
142
views
Very big fee for token on testnet
I'm new here and try to make my own token. I kinda made it actually, but fee for it is very big(cheapest one is 0.65 eth). Here's my code:
pragma solidity ^0.4.13;
library SafeMath {
function mul(...
1
vote
1
answer
43
views
Uniswap V2 Transfer Tax Math
The normal question to get the amount of token received when doing a Uniswap V2 swap is
amount_out = 0.997 * amount_in * reserves_out / (reserves_in + 0.997 * amount_in)
I want to adjust this equation ...
1
vote
0
answers
25
views
Send dalayed EIP1559 transaction
I'm trying to generate new EIP1559 transaction at 11:00. My goal is that after the transaction was sent I'll get 0 balance on the wallet. But the issue is that after I sign this transaction I'll ...
1
vote
0
answers
314
views
How do I calculate the transaction fee on the Optimism network
I have this transaction hash
https://optimistic.etherscan.io/tx/0x9b8f0d63adb5c633baff74b642331d0015ea207134bd3f7f526a9b89d5dfae27
How did optimism calculate the 0.05c USD transaction fee
Can someone ...
1
vote
1
answer
274
views
Who and where do the ETH gas fees goes to on L2 layers like Arbitrum and what is required to be a Arbitrum validator?
Arbitrum gas fees are paid in ETH, but these fees do not goto ETH miners/stakers. Who do they go to exactly? If there are L2 arbitrum validators, what are the requirements to become one?
1
vote
0
answers
56
views
Charge a user a fee based on gas price?
I want to let users mint NFTs and charge them a fee for each NFT that is a percentage of the gas price they are paying to mint.
For example, if the total gas cost of minting one token is 0.1 ETH, and ...
1
vote
0
answers
64
views
Would new type2 transactions be prioritised over legacy type0 transactions?
regarding ethereum eip 1559 upgrade, i see it still supports type0 legacy transactions. Is there any benefit for using new type2 transactions except for reducing fees if i just want fast uniswap ...
1
vote
0
answers
64
views
How to read the excess (non-burned) tip fee for a transaction after EIP-1559?
I'm trying to understand the programming capabilities of Solidity with the new model of base fee and tip. Pls correct me if I'm wrong, from my understanding, the base fee is setup by the network based ...
1
vote
0
answers
146
views
What would be the safest way to prevent paying unnecessary high gas fees for transferring USDT?
Bitfinex paid a seismic $23.7 million dollars in a gas fee for a comparatively nominal $100K transaction, link.
At 11:10 UTC on the 27th September a deposit transaction was made
using a hardware ...
1
vote
0
answers
100
views
How can exchanges afford to offer free deposits for ETH and ERC-20 tokens?
The question has been asked previously but the accepted answer does not hold a candle to reality:
In both cases, the exchange pays the gas fee to send the tokens to the
hot wallet. That's why the ...
1
vote
1
answer
134
views
Can the same ETH be used to pay for gas for multiple ERC-20 token transfers?
Suppose I deposit two ERC-20 tokens (let's say USDC and USDT) into a single ETH address with $10 worth of Ether and I now want to transfer both of these tokens to another address. Suppose the current ...
1
vote
0
answers
37
views
Paying for ERC-20 Transfer using Automatic Gas Station Fillers?
I'm building a cryptocurrency service which allows users to deposit and transfer ETH and ECR-20 based tokens (such as USDC and USDT). When a user deposits an ERC-20 token, the user must have ...
1
vote
0
answers
359
views
Uniswap V3's Position NFTS "positions()" returning irregular results for tokensOwed
I'm messing around with web3py and I ran into something that I haven't been able to understand; when I call positions() on a tokenid, I get odd results for the tokensOwed values. The results don't ...
1
vote
0
answers
24
views
Will the tx fees of old contracts be greater or smaller than those of new contracts in ETH 2.0?
Will contracts that currently exist cost more or less to interact with after the ETH 2.0 upgrade? What about old contracts that call a new contract, or new contracts that call an old contract?
Will ...
1
vote
1
answer
39
views
Is it possible that the contract pays to store data coming from an address with no eth?
So the ideia is like this:
contract MyContract {
uint mydata;
function setData1(uint _data) public {
mydata = _data; //normal way (msg.sender pays to store _data in mydata (msg....
1
vote
1
answer
40
views
Return fees - is it save?
I would like to return partially fees to users of my dApp. Once they have reached X amount in fees, I want to make a function that will pay them ethereum automatically. Now my question: Is that secure?...
1
vote
1
answer
81
views
Change contract transaction payer from initiator to contract
I have smartcontract that creates some internal structures in external call. Now, when calling this creator function transaction paid by initiator. Is it possible to make contract paying for this tx?
1
vote
0
answers
30
views
Miner incentives in a permission blockchain with a digitally native asset on Ethereum?
Would be very grateful if someone could give me their opinion and ideas on whether this is possible, and if so, how this might be done:
If one were to build a permission blockchain on Ethereum with ...
1
vote
2
answers
1k
views
Ethereum TX Fees/Gas Gambling Calculation
I'm wondering if there's a better way of handling the transaction fee limit. As I understand it at the moment, it's basically a gamble. You wager an amount. If it is too low, you lose it all when it ...
1
vote
0
answers
184
views
Is there a solution to fees scaling with the size of the network?
I just read the whitepaper's section on fees. I like the idea that presenting a reward can avert a tragedy of the commons because miners can roughly predict the cost to them to process the transaction ...
1
vote
0
answers
160
views
What are the alternative methods of specifying gas price for contract execution?
This is possibly a rhetoric question, but I didn't find an answer to it. There are excellent answers to similar questions from @eth How much does it cost to use a contract? and When calling a smart ...
0
votes
0
answers
15
views
Who is earning the Safe Paymaster fees?
I am running a wallet project where the business model is to earn revenue by Paymaster fees in ERC20 tokens.
Will Safe allow me to set my own Paymaster fees and will Safe allow me to earn revenue that ...
0
votes
0
answers
24
views
Is there anyway to reduce gas fee for uniswap v3 ExactOutputSingleParams?
Question is simple. Is there anyway to reduce gas fee for ExactOutputSingleParams ?
function swapExactOutputSingle(uint256 amountOut, uint256 amountInMaximum) external returns (uint256 amountIn) {
...
0
votes
0
answers
8
views
How can l compare tx fee for main network and testnet
I have a contract on testnet and how can l learn how much tx fee will be on main network with same contract. Is there any way to get this information.
0
votes
1
answer
238
views
How accurately does sepolia gas/transaction price correlate with ETH
I'm currently using Sepolia testnet while learning how to mint nft's through javascript, and wondering how accurate the gas price/transaction fee's are for when I switch to using real ETH.
I'm making ...
0
votes
2
answers
22
views
Gas price error when minting a created token
I created the following token https://bscscan.com/address/0xb3497b2a0368e9b96ace9b6ad3033f440457d1b9.
In addition to the written code, the imported calls were ERC20 such as
import "@openzeppelin/...
0
votes
1
answer
61
views
How much does it cost to clog the Ethereum Network exactly?
Currently the largest gas guzzler to clog the Ethereum network is the Mint contract below. Supposedly there are users purposely causing high gas prices using this function. Why would anyone do this ...
0
votes
0
answers
134
views
How to get taxation feature on token transactions on uniswap?
I have an ERC20 token contract deployed on mainnet.
// SPDX-License-Identifier: MIT
pragma solidity <=0.9.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@...
0
votes
0
answers
30
views
Launched my ERC20 contract on both Ethereum and PulseChain, when updating fees on Pulsechain i recieve this error? Please help
invalid BigNumber string (argument="value", value="", code=INVALID_ARGUMENT, version=bignumber/5.7.0)
I get this message when updating the fees on buys/sells. Can anyone help? ...
0
votes
0
answers
77
views
Calculate uniswap v3 fees for position from swap events
I need to calculate uncollected fees for uniswapV3 position let's say from yesterday.
I scanned for all swap events in the liquidity pool and saved them to my DB. Also I have in the database all ...
0
votes
0
answers
20
views
Fantom cannot approve spending USDC token
I am doing simple approve operation on USDC token in Fantom network.
Here is my payload:
functionParams {
from: '0xd775b00b5cf6e954aed8408202367a1bae6ac55f',
to: '...
0
votes
1
answer
112
views
Can't clear pending transaction with current nonce getting an rpc error
Somehow my transaction was sent with extremely low gas fees from ETH mainnet to zkSync bridge. Is stays forever on pending
I saw this and tried to cancel it/speed it up but it did not work.
I tried to ...
0
votes
0
answers
22
views
80% of tax fees in uniswap
I PUT 27 euros to uniswap and they take 6 euros in fees for PUT it in the wallet and then I want to swap my Ethereum and it says that I only have 3 euros to swap in ethereum. It’s normal that they ...
0
votes
0
answers
38
views
Ether gas fees, environmental impact?
It is my understanding that gas fees paid in Ether are more like tips given to validators to prioritize their tasks when there is a high volume of traffic.
For example, Investopedia states here:
&...
0
votes
1
answer
496
views
FX6 and "ERC-20 Block Link Fee" or My Funds are being held Hostage
I was "tricked" into using FX6/Sundell, but that is a story for another thread.
I was able to move my funds out of FX6/Sundell into my Coinbase Wallet. But, it appears FX6/Sundell were able ...
0
votes
0
answers
52
views
Is there a way for the fee payer to be another account web3py
Is it possible on the ETH chain to have a transaction signed by account_1 but send it and pay fee by account_2?
i know this is possible in solana but i cant find an answer in Ethereum.
What i would ...
0
votes
0
answers
776
views
How to calculate the buy/sell fee or tax on the pairing token within the erc20 token - solidity
I am trying to develop an ERC20 token that has a marketing fee/tax for both buy and sell. The marketing fee/tax must be calculated and paid in USDC which will be paired with my ERC20 token on the ...
0
votes
1
answer
150
views
unit of tx.gasprice and block.basefee
I'm querying tx.gasprice and block.basefee on a mainnet fork pinned to block 15823986 -kind of recent one at the time of writing- and I'm getting 1991927019 and 991927019 respectively.
If these values ...