Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
0 votes
2 answers
38 views

A guide to solve some challenges in building a blockchain game

We are designing a blockchain game, currently we have encountered some challenges in the wallet and interaction with the smart contract and token transfer that I would like to consult you about. First ...
Ali's user avatar
  • 49
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 ...
0xR's user avatar
  • 1
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 ...
galpo's user avatar
  • 43
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) { ...
xlogic land's user avatar
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.
syringe92 e's user avatar
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 ...
Alex T's user avatar
  • 1
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/...
Pablo Santos's user avatar
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 ...
Patoshi パトシ's user avatar
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 "@...
Swapnil's user avatar
0 votes
1 answer
274 views

Get Price via Uniswap V3 depends on Pool's fee

I'm currently developing a smart contract with access to Uniswap V3's QuoterV2 contract. I'm interested in obtaining the most accurate price of tokenB in terms of tokenA: quoter.quoteExactInputSingle(...
strukovsky's user avatar
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? ...
James's user avatar
  • 1
0 votes
1 answer
15 views

Buying ethereum on Metamask or Coinbase

What is the cheapest way to buy ethereum? Straight through metamask or through coinbase and then transfer it to metamask?
user122032's user avatar
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 ...
Denis's user avatar
  • 1
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: '...
Oleksandr Tserkovnyi's user avatar
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 ...
Car Konto's user avatar
1 vote
2 answers
357 views

Why ETH gas fee is still expensive >$5 - $10 after sharding + POS?

I just notice that ETH charges $40 for a tx at the time POW + high demand $5-$10 at the time POW + avg low demand And $5-$10 at the time POS + low demand (current 2023) So can you explain more why the ...
Neo.Mxn0's user avatar
  • 113
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 ...
Satoshi7281829's user avatar
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: &...
Frank Swanton's user avatar
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 ...
Owen 's user avatar
2 votes
1 answer
557 views

swapExactTokensForETH transaction reverted, `UniswapV2: K` error (with gas wasting), selling with Uniswap GUI works fine

Facing reverting swapExactTokensForETH transaction using web3js. Tried different ways. Probably, it is important to note, this failed transaction uses a relatively large amount of Gas Fees. The code ...
Ivan's user avatar
  • 117
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 ...
ItsMyLife's user avatar
  • 145
0 votes
1 answer
72 views

cost fee according to the size of a mapping

I try to improve my skills in solidity programming, for that i try to ode a dynamic NFT, which evolve according to 2 variables stored in a mapping. struct NFTInfo { uint32 nbOwners; ...
Myhaw's user avatar
  • 1
1 vote
1 answer
136 views

What are the events that mint new ETH?

I’m trying to better understand the rewards and minting processes for ETH POS so I can potentially apply the logic to a protocol I’m building. My question is what events lead to minting new ETH? My ...
Manuelmaccou's user avatar
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 ...
aimbotter21's user avatar
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 ...
ceterre's user avatar
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 ...
SanjayDefi's user avatar
1 vote
1 answer
926 views

Does ethers.js automatically calculate gas costs?

const contractAddress = "Contract Address"; const ABI = "ABI data JSON" const Web3 = require("web3"); const transaction = { 'from' :account.address, 'gas': ...
imelon2's user avatar
  • 415
1 vote
2 answers
95 views

How does ethereum testnets prevent DoS attack without expensive fees

Gas fees, among other things, make spamming expensive and thus prevent attackers to emit thousands of transactions. Since testnets have no fees (or "free" tokens), what really prevents ...
Makubu's user avatar
  • 45
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 ...
dNyrM's user avatar
  • 675
1 vote
2 answers
19 views

Does "Transaction"'s From pay for Gas of party of the transaction?

There are some transfer for example native currency(ETH, MATIC), ERC-20, 721 tokens and stuff like that on a transaction then there are several "From" address. I am confused which address ...
ttt's user avatar
  • 77
1 vote
1 answer
348 views

What is the difference between Miner Tip and maxPriorityFeePerGas

Yesterday I noticed 2 arbitrage transactions on Uniswap V3 in the same block and pools: 1)https://etherscan.io/tx/0x1933479aad430fc3b0acfb9394d138e62d19d1a15437a52a807ca4af9bad7591 2)https://etherscan....
Viktor Cortez's user avatar
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 ...
Khandkar Islam's user avatar
0 votes
1 answer
188 views

Priority Fee for Legacy Transaction

Good day friends, I'm curious if there is a way to see what the priority fee is on a legacy transaction. I always remember using metamask and being able to select options to increase the speed, but ...
JorgeyBoy's user avatar
0 votes
1 answer
260 views

EIP-1559: Possible to ONLY use maxPriorityFeePerGas, and no other gas, to pay for a transaction?

My system keeps track of ETH wallets in a local DB. It is preferable that I know exactly what the fee is beforehand, so I can update the DB before broadcasting, and then rollback if anything goes ...
CoderApprentice's user avatar
0 votes
1 answer
25 views

Create Function Gas Fees to have a Dynamic Fees based on Gas Fees

is it possible in solidity create a function to estimate a gas fee and apply a % of fees based on gas fees ? Thanks
Mikael's user avatar
  • 1
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?
Patoshi パトシ's user avatar
0 votes
1 answer
45 views

Find breakdown of quotes & fees

good day! I'm exploring the 0x API documentation but wasn't able to find the clear reference, but I'm wondering how can we know the fees breakdown especially related different/multiple liquidity ...
Elli Anto's user avatar
0 votes
1 answer
35 views

Somebody wan to to send me eth tokens and asked me to send him fee first .. is this the normal way to do it?

Somebody wants to send me eth tokens and asked me to send him fees first .. is this the normal way to do it?
CYBERMAGIC STUDIO's user avatar
1 vote
2 answers
310 views

What does it mean if fees are "burned" in the context of EIP-1559?

I am looking for a simple explanation of what burning "fees" means and implies in the context of EIP-1559.
StatsScared's user avatar
0 votes
1 answer
689 views

Do i know how much gas fee for testnet will be on mainnet?

I am currently testing the smart contract on Polygon's testnet Mumbai. I think the transaction gas fee measured on the testnet will be different from the gas fee paid on the mainnet. I would like to ...
imelon2's user avatar
  • 415
1 vote
3 answers
1k views

How do Chainlink Oracles make money?

been researching this for a while. It is my understanding that the job market on Chainlink website, offers jobs for a small fee (in the range of 0.1 LINK). But I also know that according the ...
Moustafa Mowaffak El Damer's user avatar
1 vote
1 answer
33 views

Why is the gas price so low even though daily transactions have not decreased

The Ethereum gas price is currently about 6 gwei, the lowest I've seen it in a very long time. It was over 100 gwei most of the time for over a year I think. However daily transactions on the network ...
Mikhail Janowski's user avatar
0 votes
1 answer
55 views

Can we take the fees from seller and not buyer in 0x v4?

In v4 it was introduced that fees are paid by the buyer, denominated in the asset paid by the buyer, and are paid in addition to the erc20TokenAmount specified in the order. https://docs.0x.org/nft-...
Ashish Mittal's user avatar
1 vote
2 answers
1k views

EIP1559. Transaction type 0 and type 2

After the activation of the London hard fork, EIP1559 proposed a new type of transaction - type 2. Such transactions have a base fee that will be burned, and maxPriorityFeePerGas, which incentivizes ...
Evgenii_BO's user avatar
2 votes
2 answers
6k views

Max Priority Fee and Max Gas Fee difference and definition

What is the definition of max priority fee and max gas fee in EIP-1559 enabled Ethereum?
Patrick Collins's user avatar
0 votes
2 answers
708 views

sendSignedTransaction web3js

I see that with sendTransaction you can specify maxFeePerGas. see here However, if you use signTransaction and then sendSignedTransaction you can only send gas. and here. How to send a signed ...
Sequoya's user avatar
  • 63
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 ...
Arne Huang's user avatar
0 votes
1 answer
30 views

Was charged on a failed ERC20 swap via 0x exchange

0.15 ether gone to miners. Possible to get a refund from 0x? It was a smart contract failure.
Ghost Izbudushego's user avatar
0 votes
1 answer
175 views

Weird block: miner prioritized lower gas TXs (200 times lower!) and let others fail. Analysis and questions

I encountered a situation that made me doubt everything I know about Ethereum transactions. In block 14721317 the transactions in positions [0, 1, 2, 3, 5, 9] all contain the same BuyOrder to buy the ...
Nic3's user avatar
  • 3
1 vote
1 answer
85 views

Fee for making a transaction Vs fee for recording a transaction

I'm in the process of learning how to write smart contracts and make transactions using the Ethereum blockchain. I'm following this tutorial and it looks like making a transaction and then adding a ...
Sprout Coder's user avatar

1
2 3 4 5 6