tronprotocol/tron-rosetta-api

Linkable operations should be linked

Closed this issue · 1 comments

In its current form, the Tron Rosetta API doesn't link operations together. The Rosetta spec enables this however, via the related_operations field.

Adding this information would remove possible ambiguity for operations with more than 2 balance updates.

If in a transaction, Alice sends Bob 1 TRX and Charlie sends Doug 1 TRX, one will get from the API:

Alice -1 TRX
Bob +1 TRX
Charlie -1 TRX
Doug +1 TRX

This could be interpreted as either (Alice -> Bob and Charlie -> Doug) or (Alice -> Doug and Bob -> Charlie).

Yrp commented

this related_operations field is optional via the url https://www.rosetta-api.org/docs/models/Operation.html