Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

How to further improve Safemoon's reflection token transfer? (ERC20/BEP20)

We all know Safemoon's iconic reflection token code, giving every holder a percentage of every fee on buy / sell. I've already simplified and improved the gas efficiency and the token logic quite a ...
Ashraile's user avatar
  • 125
0 votes
0 answers
42 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
4 votes
1 answer
52 views

How transaction fee is calculated in case of L2?

In case of L1, the transaction fee is typically calculated as the product of gas price and gas usage, i.e., txFee = gasPrice * gasUsage One such example can be seen in this transaction. In which the ...
SYED ASAD KAZMI's user avatar
0 votes
0 answers
31 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
18 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
7 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
7 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
1 vote
0 answers
20 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
2 votes
2 answers
77 views

Is it possible to charge unused gas as fee?

guys! I am creating my own web 3 project and now I am stuck with charging fee from users. I have 2 options to do it: take percent of user's tokenIn (or tokenA), but in this case user is getting less ...
Kind_Man's user avatar
0 votes
0 answers
21 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
1 vote
1 answer
37 views

Uniswap AmountOutIn fee calc

My question is did Uniswap and other dexes that have same concept of amountOutMin would calc it like that: amountOutMin = minimum amount that i want - the dex fee or amountOutMin = minimum amount that ...
CorrM's user avatar
  • 15
0 votes
0 answers
91 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
3 votes
1 answer
206 views

Why is the base fee burned instead of sent to validators?

What are the potential risks of giving base fees to validators? (My guess: if giving the base fee to the validators, I suppose they would send out empty transactions to congest the network in order to ...
your_chinesemom's user avatar
1 vote
1 answer
271 views

How to find the fee recipient address of a validator?

Given a validator public key, is it possible to find the fee recipient address associated with it? (I'm talking about execution layer rewards such as MEV, not consensus layer rewards)
kolistivra's user avatar
0 votes
2 answers
59 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
  • 63
0 votes
0 answers
33 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
306 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
0 votes
0 answers
128 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
1k 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
52 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
262 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
463 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
1k 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
43 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
1 vote
1 answer
131 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
172 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
77 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
369 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
2k 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
38 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
39 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
579 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
932 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
  • 149
1 vote
0 answers
28 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
112 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
2 votes
1 answer
312 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
192 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
899 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
1k 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
  • 528
1 vote
2 answers
116 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
  • 65
0 votes
1 answer
268 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
  • 936
1 vote
2 answers
28 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
  • 97
1 vote
1 answer
689 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
490 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
298 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
400 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
28 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
373 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
2 3 4 5 6