Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Where can I find the gas "bill" for a transaction?

Are there any online resources where I can see the breakdown of gas cost per transaction or block (sort of like a bill)? Ideally it would break it down by categories, like calldata, EVM operations, ...
0 votes
1 answer
14 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; ...
  • 1
1 vote
1 answer
16 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 ...
2 votes
0 answers
51 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 ...
0 votes
0 answers
20 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
89 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 ...
1 vote
1 answer
116 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': ...
  • 179
1 vote
2 answers
69 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 ...
  • 35
0 votes
1 answer
47 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 ...
  • 519
1 vote
2 answers
15 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 ...
  • 57
1 vote
1 answer
43 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....
1 vote
0 answers
81 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 ...
0 votes
1 answer
71 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 ...
0 votes
0 answers
71 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 ...
0 votes
1 answer
10 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
  • 1
0 votes
1 answer
60 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?
0 votes
1 answer
33 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 ...
0 votes
1 answer
24 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?
1 vote
2 answers
54 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.
0 votes
1 answer
237 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 ...
  • 179
1 vote
3 answers
446 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 ...
1 vote
1 answer
29 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 ...
0 votes
1 answer
37 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-...
1 vote
1 answer
575 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 ...
2 votes
2 answers
2k 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?
0 votes
0 answers
48 views

Fork Safemoon, without reward and tax

I want to fork the safemoon Token: https://github.com/safemoonprotocol/Safemoon.sol/blob/main/Safemoon.sol with few modifying functions. First of all I only want a fee for the liquidity pool. I want ...
0 votes
2 answers
395 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 ...
  • 53
2 votes
1 answer
137 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 ...
0 votes
1 answer
25 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.
0 votes
1 answer
98 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 ...
  • 3
1 vote
1 answer
60 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 ...
0 votes
0 answers
10 views

Completely disregarding all storage costs, is compute time a sufficient metric to determine the computational cost of an opcode operation?

Completely disregarding all storage costs, is compute time a sufficient metric to determine the computational cost of an opcode operation? Or are/is there some other factor(s) that need to be ...
3 votes
0 answers
28 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 ...
0 votes
0 answers
250 views

Need help with buy and sell fee for erc20 contract

I've been looking into making my own token but I got stuck on implementing the buy and sell fees that's why I am here on stack exchange for help. the code I have at the moment should be okay but I'm ...
0 votes
0 answers
23 views

Getting incorrect GasPrice from tx type 2

Having transaction sent from Metamask (ropsten network): 0xddd70e7d8dbd3cf5c0618501911b045464ae2087bd537aa538f34b8c9600dcc7 I'm watching transactions in new blocks using golang, and when tx match ...
  • 1
2 votes
2 answers
154 views

Why is the block limit so low?

The Ethereum block limit is currently 30M gas. From what I have read elsewhere, this limit has been ostensibly chosen so as to ensure that processing transactions remains feasible for consumer grade ...
  • 21
2 votes
2 answers
171 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....
  • 46
0 votes
1 answer
93 views

How to send ERC20 tokens if i am unable to receive ETH

my wallet is compromised (trust wallet) someone has access to it and i have large amount of ERC20 there when ever i try to withdraw by sending ETH to the address they take all the ETH within ...
0 votes
1 answer
10 views

I have a Coinbase Wallet with ETH in it I want to convert to USDT do the fee’s to do this fluctuate throughout the day. It appears they do

If the fee’s to convert ETH to USDT in my Coinbase Wallet do fluctuate during the day/night. When is the best and least expensive time to do this? I made a relatively small deposit of 300.00 but the ...
1 vote
1 answer
2k views

How to pay ERC20 gas fee (which is payed in ETH) from another wallet?

I have a ERC20 token on a wallet called ETH (Ethereum Meta) but I don't have any ETH on that address so I can't transfer the ERC20 tokens because I cant pay the gas fee. I have some ETH on another ...
0 votes
1 answer
519 views

Getting Fail with error 'TransferHelper: TRANSFER_FROM_FAILED' while trying to swap part of tokens during transfer

I have created ERC20 token and want to modify transfer function so that swaps part of transferring amount to another token. I'm using OpenZeppelin ERC20 contract. // SPDX-License-Identifier: MIT // ...
0 votes
0 answers
130 views

Why and how OpenSea charges for account initialization?

I am trying to develop my own dApp somewhat similar to OpenSea. When you first try to sell an NFT on OpenSea, they charge you some amount of ETH first to initialize the account. Then they charge you ...
  • 188
2 votes
1 answer
677 views

Chainlink VRF - fee costs

I am giving my first steps into chainlink more precisly with VRF v2 but I have some doubts regarding the fees costs. I would prefer to have a concrete value of the costs per request. in this article I ...
  • 23
0 votes
0 answers
40 views

Contract fee - implementation

I am working on a new token (BSC) and I would like to include a sell tax of 60% which will decrease overtime. My questions are as follows: 1- Pancakeswap max slippage is 50% and would like to know if ...
  • 1
0 votes
2 answers
611 views

How to convert gas price in GWEI to USD or ETH?

I'm using Etherscan Gas Fee API to get current gas fees in GWEI. It can only return gas fee in GWEI and I tried to find online but can't find an answer on how to convert the Fee from GWEI to ETH or to ...
  • 3
3 votes
0 answers
160 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 ...
  • 635
1 vote
1 answer
164 views

Pancakeswap trade fee - When is it taken ? (Liquidity pool don't show it)

I can't find how/when PancakeSwap take it 0.25% fee from trades, Nothing points to it taking any fees! What I tried: -Fetched my bnb balance. -Fetched Liquidity pool of a token. -Made a buy ...
3 votes
2 answers
2k views

Error "replacement transaction underpriced" using Nonce method of cancelling transaction

I have a pending transaction that is not going through because of low gas price. I tried sending a new transaction with the same 57 nonce (https://etherscan.io/tx/...
0 votes
2 answers
2k views

How to calculate transaction fee using ethers.js

I am trying to calculate the transaction fee of a tx before prompting MetaMask using ethers.js. So for I have: const gasPrice = ethers.utils.formatUnits(await ethers.getDefaultProvider().getGasPrice(),...
  • 155
2 votes
0 answers
202 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 ...
  • 121

1
2 3 4 5 6