Questions tagged [gas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

Setting Gas fees for substrate chain which has frontier integrated in it

I am deploying the default smart contract in remix ide to local substrate chain using Metamask to connect with the chain. The local chain uses frontier for EVM. But fees comes quite high. I want to ...
Rohitas_atr894's user avatar
1 vote
1 answer
86 views

How To Send Transactions Fees to Treasury Instead of Burning Tokens?

I am new to Substrate development, and I have installed locally the substrate node template. It works well, but for my little project the native token is linked to physical assets and by default in ...
Alice's user avatar
  • 11
3 votes
0 answers
129 views

Unable to fully utilize block capacity when performing load testing

I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
magecnion's user avatar
  • 200
2 votes
1 answer
66 views

How do set the appropriate refTime and proofSize when create asMulti?

We had a big problem after upgrading weight -> weight v2. I understood that weight v2 uses refTime and proofSize. However, I wonder if there is a way to properly look up these two values. We are ...
hs1228's user avatar
  • 45
3 votes
1 answer
92 views

What is a Storage Deposit?

When developing ink smart contracts, I've often seen a Storage Deposit charge. What is this, and how does it relate to contract storage? My guess is it's a charge related to the size of the contract's ...
goastler's user avatar
  • 559
4 votes
1 answer
120 views

How can I retrieve the baseFeePerGas value for historical blocks on Astar?

I want to calculate fees for historical EIP-1559 transactions on Astar EVM. For this, I need to use the GasPrice formula: GasPrice = BaseFee + MaxPriorityFeePerGas < MaxFeePerGas ? BaseFee ...
pjozvtg's user avatar
  • 75
3 votes
1 answer
103 views

Rationale on Moonbeam's GAS_PER_SECOND

I'm trying to understand the rationale behind Moonbeam's GAS_PER_SECOND: /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). /// Given ...
Bernardo Rodrigues's user avatar
4 votes
1 answer
294 views

Getting "Gas estimation failed" error while deploying EVM contract on Substrate Node?

When I try to deploy a solidity smart contract on my substrate node I get the following error: "Gas estimation failed Gas estimation errored with the following message (see below). The ...
Brian Ramirez's user avatar
2 votes
1 answer
25 views

During runtime upgrade, I estimate gas fee by PaymentQueryInfo api, the return result value is so high, more than the normal value

why cause this? result, err := client.SignedExtrinsic( "0x186c09cac19834761b573b238b6542257d05b1fc5a57688311345d8cdf7e488d", "5FjKC4iC797yUWmFJuirEWqvVA2ABy3d41ugxZfHyrHs2AYx&...
Abel's user avatar
  • 61
3 votes
1 answer
86 views

What's the difference between `paymentInfo` and `gasRequired`?

In polkadotJS there are two ways of getting gas estimates (specifically WeightV2) before you send a contract transaction. The first uses query and returns a gasRequired value in the result. const ...
forgetso's user avatar
  • 1,482
1 vote
2 answers
91 views

While executing contracts functions getting out of gas error

I have deployed a wasm smart contract on chain using version polkadot-v0.9.36, after deploying the contract when I tried to execute its function i got error out of gas as shown below. When I tried ...
Shubham Gupta's user avatar
8 votes
1 answer
353 views

How to estimate gas for ink contracts transactions for Weights V2?

For ink contracts with weight v2 it requires refTime and proofSize. For this we are first querying(dry run) the transaction method, getting gasRequired from query result and sending it to transaction. ...
Nikhil Ranjan's user avatar
0 votes
3 answers
213 views

How to estimate gas limit required for ink contract deployment?

I could find the JS code to deploy an ink contract here. The code however, seems to be using a fixed gas limit to deploy the contract. Is there a way to estimate the gas limit that is required to ...
Bukks's user avatar
  • 304
4 votes
1 answer
95 views

What are the fees associated with ink! contract deployment?

I see that there are many events emitted during the process of deploying my contract on Substrate local chain (SNOW Network to be specific). 4 ICZ was reserved from deployer account 1 ICZ & 2 ICZ ...
Bukks's user avatar
  • 304
10 votes
2 answers
2k views

Are weights really neccessary?

During block authorship, the execution time of each transaction is measured, rather than weights right? Doesn't that mean as a runtime developer, you only need weights for pricing your extrinsics, but ...
Web3 Philosopher's user avatar
3 votes
1 answer
96 views

Gas costs of performing cross-contract calls

I have a question regarding costs of executing a cross-contract call, in which one contract calls the method of another, already instantiated contract. Specifically how much more overhead (understood ...
fbielejec's user avatar
  • 331