Layer 231
WalletGetTransactions
Get the transaction history of the user's built-in wallet along with the current balance. Can be filtered to incoming or outgoing transfers and paginated with offset/next_offset.
method
wallet.getTransactions#a8830a83 flags:# inbound:flags.0?true outbound:flags.1?true offset:string limit:int = wallet.Transactions;
Parameters
| Name | Type | Description |
|---|---|---|
| Inbound | flags.0?true | If set, only return incoming transactions |
| Outbound | flags.1?true | If set, only return outgoing transactions |
| Offset | string | Pagination offset: empty for the first page, then next_offset of the previous result |
| Limit | int | Maximum number of transactions to return |
Returns
wallet.TransactionsGogram Example
res, err := client.WalletGetTransactions(false, false, "", 50) if err != nil { log.Fatal(err) } for _, tx := range res.Transactions { dir := "out" if tx.Incoming { dir = "in" } fmt.Printf("%s %s %.4f TON %q\n", tx.ID, dir, float64(tx.Amount)/1e9, tx.Comment) }