//Create the transfer transaction and freeze the transaction from further modification
transaction, err := hedera.NewTransferTransaction().
AddTokenTransfer(tokenId, accountId1, -1).
AddTokenTransfer(tokenId, accountId2, 0).
FreezeWith(client)
//Sign with the accountId1 private key, sign with the client operator key and submit to a Hedera network
txResponse, err := transaction.Sign(accountKey1).Execute(client)
if err != nil {
panic(err)
}
//Request the receipt of the transaction
receipt, err := txResponse.GetReceipt(client)
if err != nil {
panic(err)
}
//Get the transaction consensus status
status := receipt.Status
fmt.Printf("The transaction consensus status is %v\n", status)
//v2.1.0