TransactionHash from safeMint()

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