-
Describe the bug Reproduction steps
However, Environment:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Simulating a transaction using
There can be a number of use-cases, for example, if you want to see if a particular address can perform a transaction or not, and how much it'd cost them (as same transaction can cost different for different msg.sender).
If you do not specify a |
Beta Was this translation helpful? Give feedback.
Simulating a transaction using
eth_estimateGas
oreth_call
, that allows you to control themsg.sender
is very supported by the ethereum node (you can see rpc spec which allows specifyingfrom
as an address). Ethers.js also allows you to specify a plainfrom
address, or also look for a signature as in your example.There can be a number of use-cases, for example, if you want to see if a particular address can perform a transaction or not, and how much…