Layer 231
WalletGetTransactionsByMsgHash
Get wallet transactions by the hash of the external message that created them. Use it after wallet. send Transfer: the msg_hash from update Sent Wallet Transaction lets you track whether the transfer landed or failed.
method
wallet.getTransactionsByMsgHash#a6bb795d msg_hash:Vector<string> = wallet.Transactions;
Parameters
| Name | Type | Description |
|---|---|---|
| MsgHash | Vector<string> | Hashes of the external messages, e. g. msg_hash from update Sent Wallet Transaction |
Returns
wallet.TransactionsGogram Example
// msgHash: from tg.UpdateSentWalletTransaction after wallet.sendTransfer. res, err := client.WalletGetTransactionsByMsgHash([]string{msgHash}) if err != nil { log.Fatal(err) } for _, tx := range res.Transactions { fmt.Println(tx.ID, "fee:", tx.Fee, "failed:", tx.Failed) }