Once in a while, we've seen estimation failure when we try to estimate step needed to do the txn on icon side. There are no logs to see the payload while calling estimate step. Add this payload to logs, when the rpc returns failure for estimate step.
To confirm, the next time this issue occurs, we need to use the data obtained from the logs to call contract manually and verify what went wrong when building the txn data, or is there some issue with ctz rpc node.
to estimate fee you need to call the debug route (api/v3d)
if you try to estimate fee with a wallet with no balance the endpoint returns an error
network transaction fees are very low, if the step to estimate the fee is failing I honestly think we should put a last case un the logic to try and send the tx with a high gas fee. in this case put in the log that the fee estimation failed but end up trying to send the transaction anyways by putting the max fee allowed which I think is something like 250.000.000
Once in a while, we've seen estimation failure when we try to estimate step needed to do the txn on icon side. There are no logs to see the payload while calling estimate step. Add this payload to logs, when the rpc returns failure for estimate step.
To confirm, the next time this issue occurs, we need to use the data obtained from the logs to call contract manually and verify what went wrong when building the txn data, or is there some issue with ctz rpc node.