Layer 231
constructor
walletTransaction#952dc143 flags:# incoming:flags.0?true gasless:flags.1?true failed:flags.2?true key_change:flags.5?true comment_encrypted:flags.6?true id:string amount:long fee:long date:int peer:WalletTransactionPeer comment:flags.3?string tx_hash:flags.4?string nft:flags.7?wallet.NftItem = WalletTransaction;

Parameters

Name Type Description
Incoming flags.0?true Whether the transaction is incoming
Gasless flags.1?true Whether the transaction was gasless
Failed flags.2?true Whether the transaction failed
KeyChange flags.5?true Whether this is a wallet key change
CommentEncrypted flags.6?true Whether the comment is encrypted
Id string Transaction ID
Amount long Amount, in nanotons
Fee long Fee, in nanotons
Date int Date of the transaction
Peer WalletTransactionPeer The other party
Comment flags.3?string Transfer comment
TxHash flags.4?string Hash of the blockchain transaction
Nft flags.7?wallet.NftItem Transferred NFT

Gogram Example

// Creating WalletTransactionObj constructor
obj := &tg.WalletTransactionObj{
    Id: "example",
    Amount: int64(100),
    Fee: int64(1234567890),
    Date: int32(time.Now().Unix()),
    Peer: &tg.WalletTransactionPeerAddress{},

    // Optional fields:
    // Incoming: true,
    // Gasless: true,
    // Failed: true,
    // KeyChange: true,
    // ... more optional fields
}