# TransactionHash from safeMint()

**URL:** <https://forum.openzeppelin.com/t/transactionhash-from-safemint/25568>\
**Category:** Smart Contracts\
**Created:** [March 2, 2022, 7:04pm UTC](https://forum.openzeppelin.com/t/transactionhash-from-safemint/25568 "2022-03-02T19:04:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Niederhausern](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/andrew_niederhausern/32/13487_2.png) [@Andrew\_Niederhausern](https://forum.openzeppelin.com/u/Andrew_Niederhausern)\
**Post date:** [March 2, 2022, 7:04pm UTC](https://forum.openzeppelin.com/t/transactionhash-from-safemint/25568/1 "2022-03-02T19:04:14Z")

</div>

is it possible to get the TransactionHash from the safemint() function?

I am looking for a way to get the TransactionHash after a minting has occured.. The transaction receipt that is returned back to web3/metamask includes the transaction hash but i am needing to capture and do something with it inside of the contract itself..

for example

receipt = safemint(address, tokenId)  
receipt.transactionHash // do something with it
