I mint the token to my account and it return transaction hash ,but I wnat to now this hash status .Like js can use callback function to wait this trx finished
var promise = await token.mint("my account",1)
console.log(promise.transactionHash)
golang
transaction, err := erc721.Mint(trx, common.HexToAddress("my account"), big.NewInt(int64(i)))
if err != nil {
fmt.Println(err)
}
fmt.Println(transaction.Hash().String())
As mentioned in comment, you have to listen for event logs (preferably filtered for your address), and call for receipt after confirmation.
NOTE: Example is just to demonstrate necessary steps.