Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

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

What is the gas cost of recovering a wallet address from a signature using Solidity?

As titled. I understand that there's an ecrecover function in Solidity. Can I use it for recovering a wallet address from a signature? Is it cheaper than a Keccak hash operation?
1
vote
1answer
19 views

Is it cheaper overall to store a keccak hash or to store a ripemd(keccak) hash?

As titled. I'm learning to build a DApp and I'm wondering if it's worth it to add the extra RIPEMD layer over keccak for a shorter hash to reduce storage costs.
2
votes
1answer
48 views

Why is Etherscan's “Pending transactions” count so huge?

Etherscan's pending-transactions count has been in the 60k-80k range for a few days. Why is this? If I look at etherscan's current pending-transactions list, sorted by gas price, I see transaction ...
1
vote
0answers
13 views

Gas price is reverted to be zero after updating using REST API on a Kaleido node

For those who have used Kaleido nod I'm running a PoA node on Kaleido and I want to set the minimal gas price for the node. I followed the instruction below to update a node configuration using REST ...
1
vote
1answer
16 views

Multiple transactions with same nonce, pending ones makes me crazy rest is ok, but why?

I am playing with smart contracts in code, sending/receiving transactions to/from it. Some transactions with lower gasPrice are stuck in a pending state. However, having same nonce with a higher ...
0
votes
1answer
21 views

Are there any API to get real money value equivalent of a transaction?

I know that etherscan shows the total cost of a transaction both in eth and in US dollars. Is there any api of any kind to be able to get instant value of eth when I send a transaction?
1
vote
1answer
24 views

How to calculate total cost of a transaction

I've a transaction that consumed 276798 of gas, paid 900000000 (wei I think) Is the total cost gasUsed x gasPrice, right? Total = 249,118,200,000,000‬ (wei I think) So how many ether is ? 0....
0
votes
1answer
21 views

GasPrice: is dipendent by the moment of the call and/or the network?

I'm testing a system to store a small amount of data on the blockchain using a contract. So I've some js using web3.js to make a call to a contract function that mutates states. I obtained, using ...
0
votes
0answers
46 views

Using web3.py to send a 0 price gas erc20 transaction

Sorry about the formatting, I’m on mobile I'm trying to push an ERC20 Token transaction with 0 gas price using web3.py. Although when I set the gas price to 0, I receive the following error: {'code':...
0
votes
2answers
34 views

How can I send tokens to large number of addresses?

I have to send 221,000 tokens (ERC20) to 6477 different addresses. Airdrop guy used some automatic sending app and that tells 1.94 ETH is needed as approx cost of operation to send all this. Is there ...
3
votes
1answer
391 views

What's the vulnerability in my contract?

I've got a contract deployed at 0xe559835D7979dAe994331DEfaEc2FBA057E56C27 on the mainnet. Every time I go to call the payable function, which is solve, a bot beats me to it. My transaction gets ...
0
votes
3answers
34 views

How can I get proper gas price for fast transaction?

How can I get proper and optimized gas price for fast transaction in around 10sec? I want to make my transactions to be included stably and fast in blocks. Recently I using value of "fast" returned ...
3
votes
3answers
267 views

Can I mine only low-value blocks?

I'm new into this world. I (think to) know that usually blocks are mined from most rewarded to less rewarded. So if I offer very low gas price for a transaction, it can be take a long time to be ...
0
votes
0answers
10 views

Is there same offical article about how Ethereum Gas Tracker calcluate price?

Is there same offical article about the approach how ethscan.io's gas tracker get price and time? I think it calculate form the transaction hisotry in last 1000 block.But no article or code can be ...
0
votes
0answers
23 views

How Gas Cost is defined in EVM gas table?

i was checking into EVM gas table (https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0) (even though it is old sheet) Have few question: On what basis for ...
2
votes
1answer
29 views

Can I estimate the total gas limit of several dependent transactions?

Assume two dependent transactions A and B. Transaction B depends on transaction A and will fail if transaction A has failed. I would like to estimate the gas limit required for the success of both ...
0
votes
1answer
20 views

What's the best way to get gas price in next block

our wallet project is requried some update about gas price 1 not set gasprice by user 2 auto choose the best gas price Current, I am using rpc method eth_gasPrice in my wallet's code to get gas ...
0
votes
2answers
34 views

Internal contract-to-contract call

I am confused with the following sentence in the Solidity documentation: During the execution of the fallback function, the contract can only rely on the “gas stipend” it is passed (2300 gas) being ...
1
vote
0answers
20 views

How can we increase block gasLimit without reinitialiting the genesis block? [duplicate]

Is it possible to increase block gas limit without reinitializing the blockchain ?
2
votes
1answer
21 views

What makes a transaction not mined and stay in txpool?

What Makes a transaction in txPool not mined ?
1
vote
1answer
42 views

What is the unit for the tx.gasprice?

Is it a wei, kwei, mwei, gwei, ... Something else? The API doesn't say much.
0
votes
0answers
12 views

How to use oraclize fee from contract balance instead of sender's wallet? [duplicate]

I am using oraclize query. I have a function that user's invoke but I dont want users to pay the gas fee for oraclize query, I want that fee to be paid by my contract balance, and if my balance is not ...
0
votes
0answers
21 views

Is Gas consumed in boolean operations that do not change contract state?

Imagine I've created a voting contract, and I'm the owner of this contract. I'm going to deploy it and create a front end to interact with it. Within my contract i've everything secured to add ...
0
votes
2answers
48 views

How to reduce the gas price for complicated smart contracts?

This is my smart contract's calculateReward function: function calculateReward(uint256 _amount, address _sender) internal view returns (uint256) { uint256 reward = 0; for (uint256 i= ...
1
vote
1answer
87 views

Apparently some people send transactions with zero gas and positive gas limit, how do they do this? (and I am NOT planning to this but how)

Have a look at this transaction for example: https://etherscan.io/tx/0x11d96986d36240a5e5e7eab78879aa841631705370e707f15f1488a0b9d6704a 0 gas, 0 ether but plenty of tokens transferred. Obviously the ...
0
votes
0answers
16 views

How can I distribute funds to present stakers efficiently?

I am building a smart contract which keep the token holder's eths for a while and give them rewards when they withdraw. The reward is given from the ethers collected by early withdraw of people. If ...
1
vote
1answer
43 views

How can I reduce the gas price for the fallback function?

Below is my fallback function for ethereum. It currently require 91000 gaslimit which is way more than 21000. Metamask always starts the transaction with 21000 gas stipend due to which transaction ...
0
votes
1answer
284 views

Ethers js estimate gas offline?

Looking here in the docs it mentions I need to have the provider attached to estimate gas. But for formatting a transaction offline, I dont have access to the provider. Is there a way to estimate the ...
-1
votes
1answer
25 views

GAS price validation for transactions in OLD blocks

How does Ethereum verify GAS price stated within transaction, to be high enough for transactions stored in past blocks? Does each block include an average GAS-bid experienced by miner at the moment ...
0
votes
0answers
67 views

How Geth classify transaction as local or non-local? txpool validateTx skips gasPrice validation for local transactions

I see geth code skips the validation of the local transactions https://github.com/ethereum/go-ethereum/blob/master/core/tx_pool.go#L528 // Drop non-local transactions under our own minimal accepted ...
0
votes
1answer
46 views

What are the parameters for the ideal gas limit?

I am new to writing smart contracts, in recent times I am having trouble in deploying the smart contracts couple of times so I need a solution for that. I am using the truffle most of the time so ...
0
votes
2answers
28 views

Sending ethereum smart contract transactions to miners

We are building a decentralized document issuance application using the ethereum blockchain. For every transaction, some gas costs deduced in the form of ether. Is it possible to host ethereum miner ...
0
votes
2answers
54 views

Does price of smart contract execution raise with price of ethereum

I can't determine properly whether higher price of ETH means smart contracts will also cost higher(in fiat not eth) and is it reciprocal, like if we have a SC deployed and eth price raises 10x, will ...
0
votes
1answer
26 views

Different between gas and gasLimit keys when executing transactions

Below is the code that I'm running. When I entered "gas" and "gasLimit" as the keys, both worked. Why is that? What does "gas" represent? And what is the optimum amount of gasLimit should I use (...
1
vote
0answers
49 views

Gas usage difference between Remix and Ganache/public networks

I'm trying to integrate a contract into a front end with MetaMask and getting different gas amounts depending on the network and compile options I use. Remix ("Enable Optimization" checked): 90,410 ...
1
vote
0answers
23 views

Most precise website to estimate gas price for volatile days

I am trying to understand which website is the best way to estimate the gasprice for volatile days. There are some sites but they do not work out so well on a volatile day like today. I compared and ...
0
votes
2answers
44 views

Effective way to compare to arrays

What is the most cost effective way to compare to arrays eg. uint arrays in solidity. Running a for loop takes too much gas.
0
votes
1answer
19 views

How much gas does looking up block.timestamp consume?

Trying to get some insight as to whether or not it's more optimal to call block.timestamp repeatedly for comparisons or to set a (memory) variable to hold the value and use it instead. I've looked at ...
5
votes
1answer
105 views

Why does gas cost explode with more than 7 variables in a struct

I'm assuming this has to do with Ethereum's 7 variable stack limit but in the following code test struct TestStruct5 { uint8 m_nOther1; uint8 m_nOther2; uint8 m_nOther3; uint8 ...
0
votes
1answer
70 views

Does ERC-20 balanceOf function cost no gas?

Given that this is a sample balanceOf function code: function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; } and this function is view function,...
0
votes
0answers
61 views

Issue in setting GasPrice when sending raw transaction

I am using web3 and infura node to send my raw transaction but I am having difficulty in setting gasprice. I constructed rawtransaction as follows web3js.eth.getTransactionCount(myAddress, 'pending')...
0
votes
1answer
94 views

What is the meaning of “Gas Used” on ethgasstation.info?

It's rather confusing cos when I googled "gas used" I don't get any exact result, NOT even from ethgasstation.info and most people are talking about transaction price, gas limit, etc. So, does "gas ...
1
vote
1answer
46 views

How to calculate “gas” and “gasPrice” when referring to ethgasstation.info when sending transaction via web3js?

I'm using web3js to issue token which has a name and description. I'm using ropsten testnet. Here's my tx. const tx = { from: walletAddress, to: contractAddress, gas: 4700000, ...
0
votes
1answer
63 views

Calculated Gas Costs of Contract execution

I have a smart contract that maps a string to a string value and stores it on the Blockchain. I want to analyse the Gas Used by Transaction. One time the execution consumes 92,843 Gas (https://rinkeby....
0
votes
0answers
67 views

How to create an ethereum private network with proof of authtority without gas cost or gas price zero?

I want to create a private network but I don't need to use ether or gas, only I want to run smart contracts and the blockchain using ethereum technology. I find this tutorial Private proof of ...
3
votes
2answers
132 views

How to determine transaction fees using web3.py

I am using web3py to transfer tokens and ether. I need to track the transaction fees for each transaction. Given a transaction hash, how do I determine the total fee paid?
6
votes
2answers
473 views

Deploying contract with no cost (gasPrice 0) on private network

In order to achieve a no-coin bootstrapping of my private network I'm trying to deploy a first special contract having zero funds in owner wallet (every wallet of this private network should have zero ...
5
votes
2answers
750 views

How is it possible to pay 2,100 Ether ($309,267) for a transaction fee?

Here is the transaction details that has transaction fee for 2,100 Ether ($309,267.00) only for sending 0.1 Ether. There is no fairness for users, hence accidentally adding a zero might cause them ...
1
vote
1answer
22 views

Costs in gas of changing the value of a variable

Maybe a little bit weird question, but can the amount of gas, when: SSTORE is used(for changing an existing variable), be lesser than 5000 gas? If no, are there discussions in community to reduce ...
0
votes
1answer
51 views

How much does the gas prices in the main eth network differ from that in the ropsten test network

I'd like to know, to which degree does the Gas prices from the main eth network are comparable to the ropsten test network.

1
2 3 4 5