Closed IgorShadurin closed 11 months ago
eth_estimateGas will check the balance of the sender (to make sure that the sender has enough gas to complete the request). This means that even though the call doesn't consume any gas, the from address must have enough gas to execute the transaction.
https://docs.alchemy.com/reference/eth-estimategas
We are trying to get the gas cost before topping up the balance.
The
registerUsernameEstimateGas
method seems to only work for estimating gas when the username has already been registered in the contract. It appears that other methods dependent onregister
cannot be estimated because they rely on the execution ofregister
.The best way to fix it should be found. One potential solution could be to estimate gas based on a username that is already registered in the contract. To implement this, we would need to make sure that the chosen username is registered across all networks.