5

What is the best way to get all children of a certain transaction using any of the IOTA libraries/the IOTA API?
By children of a transaction, I mean all transactions that directly reference it.

1 Answer 1

4

Call findTransactions and pass the hash of the "certain" transaction in the approvees parameter:

curl http://localhost:14265 \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'X-IOTA-API-Version: 1' \
  -d '{"command": "findTransactions", "approvees": ["YOUR9HASH9HERE9..."]}'

All IOTA libraries (Java, JS, Go, etc.) provide a convenience method with the same name and parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.