Transaction hashes and block hash missing in JSON response

I am trying to retrieve Algorand transactions using the v2/blocks/{round} endpoint, but the JSON response does not contain any transaction or block hashes. Is there any way to construct these using the data in the response without using the SDKs?

1 Like

Check this out: vote-coin-indexer/computeTransactionId.ts at master · scholtz/vote-coin-indexer · GitHub

1 Like

Another solution is to query the indexer rather than the algod endpoint.
The indexer computes the transaction ID for you.

1 Like

Unfortunately, the indexer only seems to give the previous block hash and not the current one so that doesn’t solve every issue.

I read too fast, I thought you meant transaction ID for some reason.

You can get the current block hash as shown there: