It would be really nice to have an RPC that provides you a list of chronological transactions that have affected a certain object.
Motivation
Object history can be important; for example, to get a list of all offers that filled another offer, track edits to a DID, or get the transaction that created a certain object.
Solution
This RPC, tentatively named object_tx, could just iterate through the PreviousTxnIDs of a transaction in reverse chronological order and use PreviousTxnLgrSeq to determine how far back to go to get the previous PreviousTxnID of the transaction.
Paths Not Taken
You can theoretically do this right now with tx and ledger_entry, using the ledger_index parameter, but it would be nicer if there were a method to do this automatically.
Summary
It would be really nice to have an RPC that provides you a list of chronological transactions that have affected a certain object.
Motivation
Object history can be important; for example, to get a list of all offers that filled another offer, track edits to a DID, or get the transaction that created a certain object.
Solution
This RPC, tentatively named
object_tx
, could just iterate through thePreviousTxnID
s of a transaction in reverse chronological order and usePreviousTxnLgrSeq
to determine how far back to go to get the previousPreviousTxnID
of the transaction.Paths Not Taken
You can theoretically do this right now with
tx
andledger_entry
, using theledger_index
parameter, but it would be nicer if there were a method to do this automatically.