Questions tagged [gas]

Gas is a 'sub-currency' which enables the EVM and Ethereum's decentralised computer to run -- with each operation, an amount of gas (proportional to the computational effort required to perform the operation) is consumed.

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

Gas estimation errored

When trying to deploy a contract, an error appears: "Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? ...
0
votes
0answers
10 views

How to store private data on blockchain application using a database?

I'm doing a project on healthcare data management Dapp. My project contains the actors as the doctor, patient and hospital. Actors have the attributes them self like name, id, age, hospital ...
0
votes
0answers
15 views

Gas Error on Uniswap Bot

I'm new to all this and I'm trying to code a bot. The bot is picking up new listings on uniswap but when it goes to put through a transaction I'm getting a gas error. I'm getting.. (node:7820) ...
1
vote
1answer
12 views

when are ethereum fees the lowest? Do they ever drop at a high rate?

"Can the prcies ever really drop ?Not a dollar but actually in terma of more then just a dollar or two ? a noticable rate? I know the less traffic the less gas but isthere any other ways to wrok-...
0
votes
0answers
16 views

How Ethereum dev team/ENS team is anticipating to solve the rise in price for ENS domains and gas prices

I am just looking for the prices for the ENS. Can anyone help me understand the economics of ENS domain, their price depends on the fluctuations of Ethereum and if we assume that it'll always go up ...
0
votes
0answers
12 views

Etherscan showing item pending after 12 hours

I have a item pending on etherscan. I tried to sell some PIKA (V1) for ETH on uniswap- the reason being is that PIKA is going to version 2 and I wish to get rid of before the swap happens otherwise ...
0
votes
1answer
36 views

Several pending transactions to the same address - what happens?

I am trying to sell all my Shiba tokens from my Coinbase wallet (to Ethereum). I tried converting it through Uniswap, but nothing seemed to happen. So I did it again. And then through Sushiswap. I ...
1
vote
1answer
17 views

How to know how much gas will be consumed for a specific action on the Ethereum blockchain?

I'm new to Ethereum and can't wrap my head around the estimated gas for a particular contract. If the contract consists of code which calls on specific functions, why can't the Dapp tell me in advance ...
0
votes
0answers
8 views

Why does listing NFTs cost more than bidding on NFTs?

In the link below are current gas fees for doing contract interactions on two popular NFT platforms https://gas.metasync.app/ Why does it cost so much more to list an NFT for sale ($150) than it ...
1
vote
0answers
14 views

Won't making Ether more deflationary, make it less useful?

Won't deflation simply make the network more expensive to use, for any new arrivals who aren't already sitting on deflationary gains? If there is deflation in Ether and at the same time transaction ...
0
votes
1answer
24 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!
1
vote
1answer
9 views

BSC Op Code Costs

Where can I find the current cost of gas for each OP Code on the Binance Smart Chain? Is the gas per opcode always going to be the same as Ethereum? I'm specfically trying to figure out how much gas ...
0
votes
1answer
8 views

Storing constants in Storage vs Creating a view function? (Solidity 0.5.17)

So, which would be gas efficient? Reading a storage variable in a state-changing function? OR Reading from a pure function in a state-changing function? Example: contract Test { uint256 public a = ...
0
votes
1answer
27 views

insufficient funds for intrinsic transaction cost

i've codded a script using js to trigger a buy on uniswap. the way i achieved this is through importing uniswaps smart contracts using this line of code: const router = new ethers.Contract(addresses....
2
votes
1answer
27 views

Understanding Gas Fees for NFTs

I am going to mint a collection of 10,000 NFTs. However, I've become very concerned over the gas costs associated with such an endeavor. I was wondering if someone could help me understand the ...
0
votes
0answers
32 views

BEP20 Contract need help ASAP please

Getting errors about gas limits on a already successfully deployed contract and now transactions on Pancake swap aren’t going through with error “Pancake: K” or this message “we are trying to fix a ...
0
votes
1answer
125 views

How to set a custom gwei / gas price on uniswap/sdk Javascript using ethers.js module?

Im building an app to do trades on uniswap using ethers module. ive created contracts and imported the router and the factory contracts using this code: const factory = new ethers.Contract( ...
0
votes
0answers
5 views

i cant withdraw my EWT tokens that are in a Custom RPC account

i cant withdraw my EWT tokens that are in a Custom RPC account. It says Send Eth. ? I added ETh to the Ethereum Mainnet account but still the EWT wont send. If i try to speed up the processing time i ...
0
votes
0answers
9 views

Who pay gas for multi-sig tx? Is this customizable?

This is clear that msg.sender is gas payer for general transactions. But, in case of transaction having multi signatures, who is the actual gas payer? Please let me know if the following options are ...
1
vote
1answer
20 views

Paying the gas cost with the ether stored in the SC

Let's suppose that an entity deploys an SC and wants to perform an allocation (which computationally speaking has a high gas cost). The participants of this delivery (registered persons) must be the ...
0
votes
1answer
17 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 ...
0
votes
0answers
20 views

Paying for gas (when the SC is executed) with money stored in a SC

I am starting to program my first real contract and would like to ask if it is possible to do this (something like an auction): Someone deploys a contract. Participants pay for that auction to run (...
0
votes
0answers
18 views

Transaction having low gasPrice makes all the other transactions pending state

When transactions are on pending, is it possible to follow a path to fix this situation without deleting the transaction.rlp file and shutting down the machine? Thank you for your help!
0
votes
0answers
11 views

gas reduce on loops

I have a function that needs to send tokens to a lot of accounts. I know that a write operation into a store is very costly. I have read when doing computing on storage it's better to do it on a ...
1
vote
1answer
201 views

What is Lazy Minting in Ethereum?

I am trying to create NFTs in various digital/crypto marketplaces like OpenSea, Rarible, etc for the past few weeks. In most of the sites, we need to pay some gas fees for adding an asset and creating ...
0
votes
0answers
14 views

How to implement multi-sig that allows only specific signer to pay gas

In case of simple multi-sig structure, I found that each signer have to pay gas to be executed. However, is there any references that allows only specific signer to pay gas? Any advice would be ...
0
votes
1answer
77 views

What chain is better about gas costs? Ethereum or Binance Smart Chain?

I am developing an smart contract and i want to know what chain is better about gas costs. Ethereum or Binance Smart Chain? Thank you
0
votes
1answer
76 views

Automatically tax transaction and distribute to all token holders

Is there an efficient way to automatically "tax" every transaction and proportionately send the taxed amount to all non-blacklisted token holders? From my understanding, looping through all ...
1
vote
0answers
48 views

Permit pair on Uniswap for gasless swap on web3py

I've already successfully swapped tokens on uniswap using web3py so now i'm trying to use the permit function to approve my USDC via a signature, saving on gas fees for this approval state. I've ...
0
votes
0answers
15 views

doubts about ERC20

I am learning to create my own ERC20 token following tutorials and managed to make a very basic one work but I still have doubts about issues that I do not understand, for example: What is Gas and ...
0
votes
1answer
12 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 ...
1
vote
1answer
63 views

How to make buyer of my NFT pay the gas fee for minting?

I want to set up a dApp where i sell create and sell my own NFT's. Is it possible to put the gas fee's onto the buyer so they pay for all the gas? And how would i do that if so?
1
vote
1answer
271 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 ...
0
votes
1answer
14 views

Going through large arrays with a for loop?

I am developing a dApp, and this line of code is in it: function generateActiveStakers() public { delete actives; for (uint i = 0; i < stakers.length; i++) { if (...
1
vote
1answer
32 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
28 views

Is it ok to store all tokens and owners in the contract storage?

I don't know much about GAS usage in contracts, so I'm bothered with a question: Is it ok to store all tokens and owners in the contract storage? contract Token { // ... token code ... } contract ...
0
votes
1answer
13 views

Contract pay the rest of gas fee

This is my payable public method1 : //Do sth if (condition) method2(); and as you know, if method2 is called, the user should pay the gas fee for it as well. How can call method2 from inside the ...
1
vote
1answer
17 views

What is storage_location in terms of SSTORE?

I notice the gas table states: ((value != 0) && (storage_location == 0)) ? 20000 : 5000 for SSTORE. What does it mean by storage_location?
1
vote
0answers
30 views

What are the factors involved in NFT gas consumption?

After reading this article ("The Unreasonable Ecological Cost of #CryptoArt" Part 1, Part 2), I'm keen to better understand what are the factors involved in energy consumption by NFTs. The ...
0
votes
0answers
34 views

How does one prove NFT ownership? [duplicate]

I've been hearing a lot about nft and I understand some fundamentals, though I am not 100% clear how would one prove ownership of an NFT token. Does proving NFT ownership requires to pay gas fees?
0
votes
0answers
15 views

How to disable deployment of smart contracts on besu private network?

Is there any way to disable creation of smart contracts on Hyperledger Besu Private Network for addresses except those that I specify? I want to create private network with zero gas fee, but no one ...
1
vote
0answers
17 views

Resources on gas cost for particular actions in Solidity

Is there a good resource on Solidity gas costs, for instance the cost for a single read on a mapping (example code below)? mapping (uint256 => bool) private table; bool output = table[42]; I have ...
0
votes
0answers
10 views

Is it possible to pay gas for other account?

Is it possible to transfer tokens from account 1 to account 2 but pay the gas price from account 3? I don't want to spend gas deploying codes to do that, Is it possible to do that w/o any code?
1
vote
1answer
48 views

Allowance = Unlimited. What could happen?

Allowance = Unlimited. What can happen? Hi, let‘s say I approve via MetaMask that another address can spend an unlimited amount of ETH on my address. What can happen? Can this address spend all my ETH ...
0
votes
0answers
41 views

Gas estimation failed AmazinBEP20 contract

Im trying to deploy the contract AmazingBEP20, i use: http://remix.ethereum.org/#optimize=true&runs=200&evmVersion=null&version=soljson-v0.8.3+commit.8d00100c.js Contract i want to deploy ...
2
votes
1answer
24 views

Is the modulo operation cheaper in unchecked arithmetic?

The docs on Solidity v0.8.0 Breaking Changes mention that overflows are now checked by default: Arithmetic operations revert on underflow and overflow. You can use unchecked { ... } to use the ...
1
vote
1answer
53 views

How do I identify the right gas to set in web3 send?

This is my send code: window.videoContract.methods .mint(account, 'https://ipfs.io/ipfs/QmRQC1...') .send({ from: account, gas: 20100000 }); If I set it too high, I get ...
0
votes
0answers
14 views

Programmatically fill up dapp with gas

I am new to crypto and I'm trying to add tokens to my dapp's address. Can I use the crypto.com v2 api private-create-order endpoint to fill up my dapp?
0
votes
1answer
161 views

Please help! USDT stuck in limbo in etherium network because of low gas fees

I withdrew 720 tether(USDT) from coinbase wallet to Exodus wallet and I was logged out of the coinbase wallet I withdrew the money from and don’t have the seed for it . It’s been pending for a week ...
0
votes
1answer
12 views

Are gasless functions that can be performed client-side possible in solidity?

Suppose I have a contract which performs an arbitrary mathematical calculation like: contract Add2Plus2 { ... function add2plus2() external view { return 2 + 2; } ....

1
2 3 4 5
23