Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
1
vote
1answer
11 views

EIP-1559 fee structure terminology

Looking at the fee structure of the EIP - 1559, I noticed we have such terms as maxPriorityFeePerGas and maxFeePerGas. I think maxPriorityFeePerGas is basically tip you pay the miner and ...
0
votes
1answer
13 views

What is the most gas-efficient way to hard-code a bytes array?

I need to hardcode some multi-Kb bytes into my smart contract. So far, the best way I have found to do this is to use abi.encodePacked... return abi.encodePacked( abi.encodePacked( ...
0
votes
1answer
16 views

Can I somehow create a fee that i will receive?

I want to charge the user a fee evertime he does something with my smart contract, can I do this? Would be nice if someone can explain it to me with this example: Everytime someone calls a function(in ...
0
votes
0answers
13 views

Can a smart contract store the transaction info from a transaction it just executed?

The scenario is as follows: a transaction is executed from a Smart Contract. Can said contract store transaction info like the transaction hash and gas fees into itself? I want this information ...
0
votes
1answer
41 views

I want to add fees in my token contract such that when someone buys my token he needs to pay some fees? any idea how to do it? below is the code:

this is the GitHub link to sol file feel free to check it out: https://github.com/Haris-Shaukat/Token/blob/main/Token.sol
1
vote
0answers
13 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 ...
0
votes
0answers
14 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 ...
0
votes
1answer
19 views

Breaking down contract transaction fees from logs

Looking at random transaction like this one how can one tell home much fee each of the involved participants paid? There is transaction fee that you pay from your wallet but here the fee is shared ...
0
votes
0answers
6 views

transfer token from an account that doesn't have ETH

I have a centralized ERC20-token exchange. I have millions of customers each has some tokens in his account. For privacy reasons, I want to transfer their tokens to my hot wallet. But none of my ...
1
vote
0answers
23 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 ...
1
vote
1answer
18 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 ...
1
vote
0answers
12 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 ...
0
votes
1answer
36 views

How Do I Minimize ETH Transfer Fees?

I sent some ETH yesterday from a coin exchange to my ETH wallet. The gas limit was 21000, gas used was 21000 and the gas price was 111.608. The fee charged was approx. 0.00234 ETH, which was approx. 8%...
0
votes
0answers
37 views

Allocate tax fee to all holders

I am trying to create a simple coin and want to allocate tax fees equally to all existing holders. I was able to write the code below, but this contract gives all tax fees to just the owner/admin. Can ...
1
vote
1answer
384 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 ...
1
vote
1answer
74 views

Send transaction with all ether (fees) - EIP 1559

I'm not sure I right understand structure of fees (EIP 1559). Because I cannot guess what will be base fee for my transaction, 'cause I will not know how much transactions will be in block (base fee ...
1
vote
1answer
43 views

If blocks aren't full, why can't I set a gas fee of 1-10 gwei? Who dictates that it needs to be 20-30 gwei when blocks aren't even full?

If blocks aren't full, why can't I set a gas fee of 1-10 gwei? Who dictates that it needs to be 20-30 gwei when blocks aren't even full? And where is the best place to adjust my gas fee if I don't ...
0
votes
0answers
10 views

Fees per MB for Ethereum since 2015

Is there a chart for "Fees per MB" in Ethereum? What is the equivalent of MB in Ethereum gas limit?
0
votes
1answer
14 views

Why do some transaction on BSC not have a [Txn Fee] of 0?

One transaction every block has a [Txn Fee] of zero. Relevant call to produce: webThree.eth.getTransaction('0x17247521041a79b7cbad3fc19d04f02ff1dd58488b85aaf6df514c31c2c03143').then(console.log) ...
0
votes
0answers
21 views

REST API to get burned ETH by block?

I've been looking for a while and I can't find a way to get burned ETH per block programatically. Can someone help? I could also compute it using Web3 (python or js), but I don't see a way to get that ...
0
votes
0answers
327 views

How to sell NFT on opensea's main net without paying gas

I have just started studying solidity and NFTs etc and I was wondering how to people mint 1000s of NFTs on opensea, are they paying all that gas fees or is there a work around it? So far I have read ...
1
vote
1answer
43 views

What can be expected in terms of gas prices for the next Ethereum iterations?

Starting Ethereum dev here full of dApp projects. My concern is fees. Most of my applications are unfeasible at the current gas prices. How could I sell a digital product that costs 10 dollars with a ...
0
votes
0answers
54 views

How to force uniswap to use swapExactTokensForEthSupportingFeeOnTransferTokens

Im coding an erc20 token for a client of mine and it uses dynamic taxes on buys and sells These values are calculated in memory with _tmpFee and then assigned to the value _fee in storage Then ...
0
votes
0answers
309 views

Fee on transfer causing error "Uniswap invariant not satisfied"

I am working on building an ERC20 token with the help of the OpenZeppelin project. I wanted to add a burn fee on transfer, so I overrode my transfer function as follows: function transfer(address _to, ...
0
votes
0answers
17 views

How to implement gasless transfers of ERC777 tokens?

I'm trying to make a contract (erc777TransferPayer) that pays for user transactions of any ERC777 token. For example, in this erc777TransferPayer contract, a user could call something like: freeSend(...
6
votes
1answer
135 views

How does EIP-1559 make Ethereum fees better?

I have a few questions that are mostly related to each other. I don't understand how EIP-1559 makes it a better way than the current one about fees. Since EIP-1559 brings priority fees and miners ...
0
votes
1answer
168 views

Is there a way to lower BEP20 smart contract function gas fee costs?

A BEP20 smart contract needs to have a function called periodically (At least once a day) to process some data. The gas fee required to do so is quite high (>0.1 BNB every call). What are some ways ...
5
votes
1answer
1k views

Will I have to change how I set raw transaction gas price for eip-1559?

I have a question about setting gas prices after the new hardfork. Currently the software I'm working with uses the ethgasstation.info api to select a gas price and then publishes a raw transaction ...
0
votes
0answers
14 views

Max gaz transaction for one function

I have problem with my contract on BSC network: 0x28592BAc439c3d358EDC52c20667D29b0a90a5DE *Submitted for verification at BscScan.com on 2021-06-22 */ // SPDX-License-Identifier: GPL-3.0 pragma ...
1
vote
1answer
121 views

what is math for uniswap calculates the amountout and amountin why 997 and 1000

function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {//the amount of user,amount in pool,output token amount in pool require(amountIn > ...
0
votes
1answer
16 views

Gather funds from multiple wallets

I have many separate wallets thats all holds less or equal amount of ETH than average transaction fee. Is there any way to collect those funds besides hoping a transaction with low fee will be ...
0
votes
1answer
18 views

Is it possible to send a transaction from a 0 balance EOA through a funded Smart Contract, such as the latter pays the tx fees?

I think there is something similar called Meta-transactions, but my understanding is that those are EOA to EOA. I'm more interested in being able to send a transaction from a EOA with zero balance ...
0
votes
0answers
15 views

Can cheaper transactions be created by brute forcing RLP-encoded V,R,S values with leading zeros

When I make a raw txn using RLP-encoding I note that the VRS values are not deterministic. Sometimes the R and S values can have leading zeros, these get omitted, thus making the transaction data ...
0
votes
0answers
48 views

Adding fees to a BEP20 token on solidity

How would I go about adding fees to a BEP20 token I am trying to build? I am new to coding on solidity and this is what I have so far but if I'm honest am struggling with adding more complex functions....
0
votes
1answer
18 views

Insufficent network fees

I get the message, "The ETH balance in your parent account is insufficient for network fees" when I try to send my ECR20 Matic tokens from my Leger to my coinbase account. Instead of sending ...
1
vote
0answers
45 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 ...
0
votes
1answer
14 views

Does the act of READING data from a contract during a transaction consume gas?

If I want to read certain state of a contract while performing my transaction (for instance to make sure no other addresses interacted with that contract within the same block as me), do those actions ...
1
vote
1answer
24 views

Can someone explain me this part of White Paper?

I want to know what this para means, more clearly and with more detail. " Theoretically, Ethereum-based token systems acting as sub-currencies can potentially include another important feature ...
0
votes
0answers
357 views

GAS FEES DIVISION WITH swapAndLiquify Function [Solidity]

I community, i'm trying to set the gas fees optimization for the delfationnary token im about to launch asap but quick question to be sure. I set the fees at 10% like so 5% for the pool 5% for rewards ...
0
votes
0answers
25 views

Problem About Charity Fee

I’ve successfully deployed this contract to BSC-Testnet and I’ve arranged the PancakeSwap testnet router. As you see in line 780, It’s my friend’s testnet wallet address but when I bought my token on ...
0
votes
1answer
72 views

Coinbase network fees

how much are the fees for sending eth from Coinbase? Or what exchange has the lowest fees for sending etherum? Thank you!
0
votes
0answers
10 views

Transfer ether between two EOAs without security breaches

I have this function (is a SC implementing and auction): /// @notice Register a new participant /// @param _preferences agent' preferences function regAgent(uint[] memory _preferences) notOwner ...
0
votes
1answer
28 views

Trying to send some ETH to a Wallet

I have an Exodus Wallet with some USDC in it. When I try to exchange them or send them to another wallet, it says that I need to add some ETH to make it possible (0.0043 ETH). I check on Binance and ...
2
votes
1answer
242 views

What does all those transactions with 0 mining fee corresponds to?

There have been many transactions with apparently 0 mining fees (gas price set to 0) lately. Including from F2Pool BabelPool and SparkPool. While miners had always been free to include any ...
0
votes
0answers
10 views

Minting tokens that cover client's Tx fees and can only be used to interact with 1 smart contract [duplicate]

I'm working on a voting application. Is there a way to centrally mint tokens, hand them out to eligible voters/addresses, and only let users with this token vote? If so, can this token cover the ...
0
votes
1answer
20 views

Smart contracts calling each other, costs and atomicity doubt

According to what I know, If you invoke function F on Contract C, you pay the gas fees related to F's operations and if for some reason something goes wrong, all state changes performed by F until ...
0
votes
1answer
60 views

Is that possible to charge a comission fee on the smart contract?

is there some possibility to charge a comission fee on each transaction done on an specific smart contract? For instance, User A swaps 1 ETH by 100k EXAMPLE. At the end of the transaction, User A will ...
2
votes
1answer
745 views

How do gas fees work in UniSwap / other decentralized exchanges?

So, lately i've been doing research about gas fees and how they work. I got the most part but there's something I don't yet understand. The theory of gas fees in ETH is that whenever you do a ...
1
vote
1answer
316 views

Accidentally set gas price too low?

I’m fairly new to Crypto and have just made a recent transaction but I accidentally set my gas price and transaction fee too low therefore the amount needed to be mined is incredibly high, here is the ...
0
votes
0answers
377 views

How do decentralized exchanges make money?

I've been wondering how do DEXs make money. I know some of them like uniswap and airswap supposedly don't take any profits from trades. But are all DEXs like this? I read on Kyberswap FAQ that the ...

1
2 3 4 5