Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 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 ...
user avatar
0 votes
2 answers
49 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 ...
user avatar
  • 53
1 vote
1 answer
30 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 ...
user avatar
0 votes
1 answer
24 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.
user avatar
0 votes
1 answer
23 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 ...
user avatar
  • 3
1 vote
1 answer
28 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 ...
user avatar
0 votes
0 answers
9 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 ...
user avatar
3 votes
0 answers
21 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 ...
user avatar
0 votes
0 answers
63 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 ...
user avatar
0 votes
0 answers
15 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 ...
user avatar
  • 1
2 votes
2 answers
85 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 ...
user avatar
  • 21
2 votes
2 answers
98 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....
user avatar
  • 46
0 votes
1 answer
21 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 ...
user avatar
0 votes
1 answer
9 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 ...
user avatar
1 vote
1 answer
621 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 ...
user avatar
0 votes
1 answer
238 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 // ...
user avatar
0 votes
0 answers
83 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 ...
user avatar
  • 118
0 votes
1 answer
264 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 ...
user avatar
  • 3
0 votes
0 answers
29 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 ...
user avatar
  • 1
0 votes
2 answers
282 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 ...
user avatar
  • 3
1 vote
0 answers
72 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 ...
user avatar
  • 531
1 vote
1 answer
83 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 ...
user avatar
2 votes
2 answers
714 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/...
user avatar
0 votes
1 answer
772 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(),...
user avatar
  • 155
1 vote
0 answers
118 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 ...
user avatar
  • 111
0 votes
0 answers
16 views

Audited ERC 20 token contract [duplicate]

I'm going to be launching an ERC 20 token, and I want the ERC 20 token to have an additional transaction fee of 1.05% on it. For example, if a person swaps 1 Eth for a token, I'm going to have an ...
user avatar
1 vote
2 answers
247 views

Why is sending Ether cheaper TX FEE than any other erc20 coin?

I did tests with sending USDt and sending ETH. Sending ETH seems to stay around $10, while any other ERC20 coin costs me almost 3 times more?
user avatar
0 votes
0 answers
32 views

How to avoid high ERC20 transaction cost?

I need to send USDT from Binance to WazirX (local Indian exchange) through APIs over a hundred times a day. Binance supports ERC and TRC chains, while WazirX supports only ERC. Is there some ...
user avatar
  • 1
0 votes
0 answers
13 views

When can reorg of FeeHistory API condition be triggered

thanks in advance. I'd like to know when the reorg condition can happen. First please take a look this part of source code. If see the line 294-297, there are comments and a condition like below. ...
user avatar
0 votes
0 answers
59 views

Etherscan and Coinbase transaction amounts do not match

Description The coinbase transaction says it's sending 0.0517031 ETH. The etherscan transactions says it's received 0.0503801 ETH. Transaction fees came to: 0.001717298072028 ETH. The etherscan value ...
user avatar
  • 101
1 vote
0 answers
46 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 ...
user avatar
  • 123
0 votes
1 answer
29 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 ...
user avatar
  • 101
0 votes
1 answer
1k views

Do you pay gas fees on Open Sea if no one buys your item?

i know you pay gas fees if you cancel a post but what if the time expires on it? do you have to pay the gas fees when that happens as well? ( for Open Sea)
user avatar
  • 1
0 votes
0 answers
36 views

Transaction Fee of an Auction Smart Contract

I tried to write an auction smart contract recently and found an interesting question: Let's assume there is an auction smart contract already deployed on Ethereum. There should be a bid function in ...
user avatar
0 votes
0 answers
99 views

Transaction underpriced - where to find the minimum fee in GWEI that will be accepted into the mempool?

I have a couple of transactions to make, not time-critical, I'm happy to wait several hours. Back in the day I was using gasnow (no longer in business), right now sticking to https://ethgasstation....
user avatar
1 vote
1 answer
469 views

How to integrate 2.5% sales fee in an NFT Marketplace

I'm currenttly building an NFT marketplace, I am done with all the major functionalities, i.e listing, selling, buying etc. but the problem is, when wiriting the code earlier I used a fixed listing ...
user avatar
  • 133
0 votes
0 answers
22 views

Incentive for miners to include transaction in block post-EIP-1559

From what I have read the EIP-1559 upgrade impacted miners by eliminating the value of mining blocks regardless of the amount of transactions included because they would receive always receive the gas ...
user avatar
  • 121
1 vote
1 answer
569 views

Why is my contract so expensive to deploy?

I've tried to deploy a contract based on openzeppelin library (see below). The fee I paid is about $146 and the contract didn't even deploy(i.e it run out of gas ). I find this unbelievable high. It ...
user avatar
0 votes
0 answers
23 views

Staking (and farming yield) with small amount ETH - where to?

I'm a simple hodler with a small amount of ETH (~4) and I wanted to earn some via staking. I did my research and came to the conclusion the most profitable options would be: to stake via Lido (or ...
user avatar
  • 101
0 votes
0 answers
213 views

Changing fees in smart contract

I am quite beginner to solidity, trying to learn smart contracts. so here in this code: bool autoLiquifyEnabled = true; uint256 liquidityFee = 600; uint256 liquidityFeeAccumulator; uint256 buybackFee ...
user avatar
0 votes
4 answers
57 views

How can I get my fees back when I had the error: "warning error encountered during contract execution"

How can I get my fees back when I had the error: "warning error encountered during contract execution" I mad the transaction with Metamask. And paid 80 dollars. And I want the have the 80 ...
user avatar
  • 1
0 votes
0 answers
21 views

how to change the code of the Smart contract to solidity?

how to change the “safemoon” or “open zeppelin ERC20” contract so that a total of 777T coins are created, transaction fee is 1%, liquidity fee is 1% and burnout is 1% with each transaction
user avatar
  • 133
0 votes
0 answers
38 views

Adding an additional 2% fee

I have been struggling for days and I was wondering if I could have some help. I am going to launch this Ethereum Based ERC-20 token and I am going to list it on Uniswap, and I want to add an ...
user avatar
0 votes
0 answers
8 views

Gas Fees of Selling One-of-a-kind collectible or Multiple times of one collectible on Rarible

I assume the gas fees of selling multiple times of one collectible on Rarible would be much higher than selling one-of-a-kind collectible?
user avatar
0 votes
0 answers
13 views

What mainnet activities contribute to gas fees being and staying so high on Ethereum?

Gas above 100 gwei has been the norm for the past several weeks. This is a very expensive transaction cost when translated to dollars. What contributes to such a high gas fee, and how come it's been ...
user avatar
0 votes
1 answer
270 views

What does feeReceiver in the Shiba Inu source code do?

This question isn't really about Shiba Inu. More about how Ethereum works. In the Shiba Inu source code (see here), there is an argument feeReceiver in the constructor (line 455) which then gets ...
user avatar
  • 103
0 votes
0 answers
12 views

Defi trading fees

I've just gotten started with metamask and I'm looking to interact with defi exchanges. I have a couple questions: What defi exchange should I use for the lowest fees? Does the fee depends on the ...
user avatar
  • 249
1 vote
0 answers
37 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 ...
user avatar
1 vote
1 answer
33 views

Voting without paying fees

I'm Alex and currently exploring the governance smart contracts. I would like to create an ERC20 token where holders are able to vote/sign multiple propositions made by the owners account. Is there a ...
user avatar
1 vote
0 answers
45 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 ...
user avatar
  • 878

1
2 3 4 5 6