Skip to content

Commit

Permalink
Updating estimate gas doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Dec 20, 2024
1 parent 5388708 commit ebb2ff6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ Note that when `eth_estimateGas` is called, the node simulates the transaction e
The simulation runs through the entire transaction process as if it were being executed, including checking for sufficient balance, contract code execution, etc.
During the simulation, the method calculates the exact amount of gas that would be consumed by the transaction if it were to be executed on the blockchain. The estimated gas amount is returned, helping users set an appropriate gas limit for the actual transaction.

There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation.
There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation. Starting with Arrowhead 6.4.0 this is
not valid anymore.

You can see this behavior in the following example, where a call for `eth_estimateGas` on a transaction that would be executed from an address without enough balance.

Expand Down
3 changes: 2 additions & 1 deletion docs/02-developers/07-rpc-api/02-rootstock/02-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ Note that when `eth_estimateGas` is called, the node simulates the transaction e
The simulation runs through the entire transaction process as if it were being executed, including checking for sufficient balance, contract code execution, etc.
During the simulation, the method calculates the exact amount of gas that would be consumed by the transaction if it were to be executed on the blockchain. The estimated gas amount is returned, helping users set an appropriate gas limit for the actual transaction.

There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation.
There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation. Starting with Arrowhead 6.4.0 this is
not valid anymore.

You can see this behavior on the following example, where we call `eth_estimateGas` for a transaction that would be executed from an address without enough balance.

Expand Down
3 changes: 2 additions & 1 deletion docs/03-node-operators/03-json-rpc/01-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,8 @@ Note that when `eth_estimateGas` is called, the node simulates the transaction e
The simulation runs through the entire transaction process as if it were being executed, including checking for sufficient balance, contract code execution, etc.
During the simulation, the method calculates the exact amount of gas that would be consumed by the transaction if it were to be executed on the blockchain. The estimated gas amount is returned, helping users set an appropriate gas limit for the actual transaction.

There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation.
There is a difference in Rootstock compared to Ethereum, and it is that if one of the steps of the simulated transaction fails, the node will return the gas estimation needed for the transaction, while on Ethereum, the node will return an error instead of the gas estimation. Starting with Arrowhead 6.4.0 this is
not valid anymore.

You can see this behavior on the following example, where we call `eth_estimateGas` for a transaction that would be executed from an address without enough balance.

Expand Down

0 comments on commit ebb2ff6

Please sign in to comment.