Skip to main content

Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

85 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
48 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 ...
Paul DeLucia's user avatar
3 votes
1 answer
383 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 ...
Jonah's user avatar
  • 655
2 votes
1 answer
239 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 ...
aimbotter21's user avatar
2 votes
1 answer
336 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 ...
Arne Huang's user avatar
2 votes
0 answers
243 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 ...
Darcys22's user avatar
  • 121
2 votes
0 answers
698 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 ...
tambu nico's user avatar
2 votes
1 answer
790 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 ...
Mohamed Dabbous's user avatar
2 votes
0 answers
371 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 ...
wardesqwe's user avatar
2 votes
0 answers
680 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 ...
Miron Alexandru's user avatar
2 votes
1 answer
449 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 ...
jespern's user avatar
  • 121
2 votes
0 answers
566 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 ...
B.Mr.W.'s user avatar
  • 121
2 votes
0 answers
143 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(...
Tukanoid's user avatar
1 vote
0 answers
26 views

Any example of a transaction where `feeRecipient` is used in 0x

I need to see what these transactions look like on Etherscan, but can't find any examples. Seems to be very rare. Some transaction hash of such transaction where feeRecipient is receiving some small ...
Ojuswi Rastogi's user avatar
1 vote
1 answer
384 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 ...
galpo's user avatar
  • 145
1 vote
0 answers
30 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 ...
ItsMyLife's user avatar
  • 145
1 vote
0 answers
526 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 ...
Khandkar Islam's user avatar
1 vote
1 answer
402 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?
Patoshi パトシ's user avatar
1 vote
0 answers
58 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 ...
Tom's user avatar
  • 133
1 vote
1 answer
64 views

how to tackle block gas limit to send large data file as transaction on ethereum

I want to send ethereum blockchain a file approx 39KB. The file is like array generated by python code. I dont want to use IPFS and oracle. Is this file exceed block gas limit? if yes, then can i ...
user12's user avatar
  • 111
1 vote
0 answers
72 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 ...
Mykolas777's user avatar
1 vote
0 answers
71 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 ...
sigmaxf's user avatar
  • 1,080
1 vote
0 answers
151 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 ...
alper's user avatar
  • 8,404
1 vote
0 answers
114 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 ...
Bradford Griggs's user avatar
1 vote
1 answer
150 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 ...
S.O.S's user avatar
  • 181
1 vote
0 answers
49 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 ...
Bradford Griggs's user avatar
1 vote
0 answers
410 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 ...
denxi's user avatar
  • 11
1 vote
0 answers
25 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 ...
Jesbus's user avatar
  • 10.5k
1 vote
1 answer
40 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....
john's user avatar
  • 11
1 vote
1 answer
41 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?...
dkb's user avatar
  • 723
1 vote
1 answer
85 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?
Alex G.P.'s user avatar
  • 1,277
1 vote
0 answers
33 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 ...
runningcta's user avatar
1 vote
3 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 ...
Coran's user avatar
  • 111
1 vote
0 answers
190 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 ...
Pavel Komarov's user avatar
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 ...
Alexander Yarushin's user avatar
0 votes
1 answer
23 views

Is there any EVM blockchain (not testnet) with 0 gas fees?

I know about SKALE, but is there any other alternatives?
Haelmic's user avatar
0 votes
0 answers
48 views

Why is the transaction fee very high?

I am sending transaction to Sepolia testnet from browser. The code I have is: await provider.request({ method: 'eth_sendTransaction', params: [ { from: account....
Joey Yi Zhao's user avatar
0 votes
0 answers
39 views

How to make a smart contract/ a third party pay for transaction fees?

I'm trying to create a LiquidStacking smart contract where it would be possible to deposit any amount of ETH. Every time the smart contract's balance reach 32 ETH, it creates a BeaconChainDepositor ...
ASANSON's user avatar
  • 11
0 votes
0 answers
7 views

How to handle liquidity pool transfers and fees?

Suppose I have a token on the Ethereum network. From what I understand, with each buy and sell a part of the transaction is maintained by the contract that adds it to the LP (liquidity pool). However, ...
Integral's user avatar
  • 115
0 votes
0 answers
39 views

Coinbase API/SDK for converting USD to USDC without fees

I want to use some API/SDK of Coinbase in my dapp for converting USD to USDC (buying USDC) without fees in Polygon network, like on Coinbase web-site. But that should be handled without creating a ...
Anastasia Martyniuk's user avatar
0 votes
0 answers
11 views

Layer 2 gas fees are paid in which cryptocurrency?

I have a doubt regarding Layer 2 blockchains (zk, optimistic, ...). At some point, nodes running L2 blockchains, send transactions to the L1 blockchain (Ethereum for the sake of this example), which ...
Alberto Molina's user avatar
0 votes
0 answers
20 views

How to represent a single wallet via multiple public keys?

I am implementing a payment system that assigns each user a public key (for seamless ETH transfers). I want to aggregate these funds in a single wallet so my liquidity is not fragmented. One way to do ...
Kianoush Arshi's user avatar
0 votes
0 answers
24 views

Confused with eth transaction pick up priority

I've added a transaction couple days ago at 8 gwei with little priority fee (0.001) There were blocks where the base fee was lower than mine yet it wasn't picked up. This is one recent example block ...
guenis's user avatar
  • 101
0 votes
0 answers
117 views

Calculate transaction fee for send transaction on Arbitrum

Trying to implement send transaction i already acknowledge that gasLimit != 21_000 for arbitrum so i also changed my approach having following script for estimating: const [feeData, to] = await ...
Andon Mitev's user avatar
0 votes
0 answers
37 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 ...
0xR's user avatar
  • 1
0 votes
0 answers
136 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) { ...
xlogic land's user avatar
0 votes
0 answers
10 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.
syringe92 e's user avatar
0 votes
1 answer
2k 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 ...
Alex T's user avatar
  • 1
0 votes
2 answers
73 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/...
Pablo Santos's user avatar
0 votes
1 answer
364 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 ...
Patoshi パトシ's user avatar
0 votes
0 answers
503 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 "@...
Swapnil's user avatar