hermeznetwork/batch-explorer

Provide feedback about transaction status

Opened this issue · 8 comments

APi provides some information of transaction cannot be processed. This info should appear also in explorer

@rafal-na @chamian Please advise on this request.

@druiz0992 what are the type of errors that the API provides regarding invalid transactions?

There errors are something like insufficient balance or unexpected nonce. There may be others. Do you need a complete list of the errors?

@druiz0992 I think it would be worth it, so that Chami can take all of them into account.

  • Tx not selected due impossibility to be forged with the current state : Not sure what this means
  • Tx not selected due to not enough Balance at the sender
  • Tx not selected due to not current Nonce

Thanks @druiz0992 . Could you provide more details about these errors?

(bullet) 1. Is this error related with the network malfunctioning or being stopped?

(bullet) 2. As we try to prevent errors, we don't let the user continue with a tx if he doesn't have funds or enough eth for gas fees. Is this error appearing in case a transaction is about to be forged and the user has spent his eths not being able to cover gas fees? Are there other cases when this error could appear beside this one?

(bullet) 3. I don't understand this error. What does not current Nonce mean?

@chamian : What i would like to accomplish is that when the explorer displays a transaction as Pending, it gives a motive so that it can be corrected.
One of the motives (2) is that there is not enough balance. The node detects that and doesn't allow the transaction to be forged, and it's flagged as pending indefinitely. I would like that if this is the case, there is a message in the explorer showing why the transaction is pending.
Motive (3) is copied verbatim from the node. I needs to be reworded, but it means that the transaction's nonce is not as expected, and this transaction thus will be pending until resolved.
Motive (1) is really obscure to me. I will try to find out more.

Motive (2) can be implemented, check transaciton pool response.