2

I use Curl to familiarize myself with the IOTA API. By using findTransactions you can query the transaction hashes of addresses, bundles, tags and approvees.

But which command returns the details of a transaction (confirmation status, trunk transaction, branch transaction, message etc)? There doesn't seem to be a method in the official API reference.

1 Answer 1

2

But which command returns the details of a transaction (confirmation status, trunk transaction, branch transaction, message etc)?

getTrytes is the endpoint for getting transaction details from the ledger. It returns raw trytes that can be converted to a transaction object.

You can check out implementation of asTransactionObject for trytes to plain transaction object conversion.

Confirmation statuses are not part of transaction trytes. They need to be fetched separately using getInclusionStates.

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.