elrond-proxy-go icon indicating copy to clipboard operation
elrond-proxy-go copied to clipboard

Feature Request: /transaction/<hash> should return additional useful fields

Open hiddentao opened this issue 4 years ago • 5 comments

The proxy /transaction/<hash> endpoint should additionally return:

  • The date timestamp
  • The gasUsed value
  • The transaction hash (this may seem redundant but is actually useful for when passing the returned object around)
  • The transaction status field should reflect the actual transaction execution result, i.e passed or failed. In addition to this the error message should be available somewhere (e.g. "not enough gas")

hiddentao avatar Nov 03 '20 18:11 hiddentao

These fields that you have mentioned will be added soon in the API transaction structure. Thank you for the feedback. We really appreciate.

miiu96 avatar Nov 24 '20 14:11 miiu96

A part of the information that you need will be merged very soon in the proxy development branch (https://github.com/ElrondNetwork/elrond-proxy-go/pull/104). Hope this will help.

miiu96 avatar Nov 24 '20 14:11 miiu96

Hey :), my company is implementing elrond and we did not getting to implement of gasUsed of the transaction, you have a prediction for this implementation?

ImPedro29 avatar May 27 '21 16:05 ImPedro29

Hi @hiddentao @ImPedro29 ! As an update for this issue:

  • the timestamp field has been added
  • the status resembles the expected value if the endpoint is called with ?withResults=true . Also, smart contract results or receipts with the failing messages are shown as well.

The gasUsed and hash fields have not been added. If we'll add them in the future, I will leave a comment on this issue.

bogdan-rosianu avatar Oct 19 '21 15:10 bogdan-rosianu

@bogdan-rosianu Hi, no plans to add gasUsed and fee fields yet?

vae520283995 avatar Jul 09 '22 09:07 vae520283995