How to get the icp TX hash from canister

Hi @E.SO, you can calculate the hash of a transaction as following: 1) serialize the transaction with cbor and 2) calculate the sha256 over the result. This is the code we use to do it.

3 Likes