tx-hash
Use tx-hash to get the hash of the current transaction as a string.
Basic syntax
To obtain the hash of the current transaction, use the following syntax:
(tx-hash)
Return value
The tx-hash function returns the hash of the current transaction as a string.
Examples
The following example demonstrates how to use the tx-hash function in the Pact REPL.
This example gets the hash of the current transaction:
(tx-hash)
"DldRwCblQ7Loqy6wYJnaodHl30d3j3eH-qtFzfEv46g"