input-output-hk / cardano-explorer

Backend solution powering the cardano-explorer. :warning: See disclaimer below. :warning:
20 stars 11 forks source link

Structured representation of ledger tx failures #245

Open dcoutts opened 4 years ago

dcoutts commented 4 years ago

The tx-submit API should return the ledger failures in a structured way, not just as a string.

They are transmitted over the wire from the node in a structured way, so this would be a matter of converting them wholesale (or omitting unnecessary parts) as JSON into the response. This should be in addition to the string form, which itself should ideally be rendered and not just shown.

Victoryfan commented 4 years ago

Hello, could tell me how to use the tx submit API? Could you give me an example? Thank you in advance.

erikd commented 4 years ago

@Victoryfan Your request is completely unrelated to this ticket and therefore should be a separate ticket. The (somewhat minimal) docs however are at https://github.com/input-output-hk/cardano-explorer/blob/master/doc/tx-submit.md .