4

Given a transaction, how do I get a list of all of the transactions that reference it as their trunk or branch? I'm using pyota, but solutions in the other libraries would be appreciated too.

takra
  • 435
  • 2
  • 9

1 Answers1

5

There is the findTransactions api (with the approvees parameter) that return the list of all transactions directly approving the one (or the multiple) passed in parameter :

curl <NODE_URL> \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'X-IOTA-API-Version: 1' \
  -d '{"command": "findTransactions", "approvees":"<TX_HASH>"]}'
Akkumulator
  • 1,468
  • 9
  • 19
ben75
  • 5,344
  • 11
  • 32