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.

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, privacy policy and cookie policy

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