Layer 231
WalletNftItemObj
An NFT held by the wallet.
constructor
wallet.nftItem#3441fd1c flags:# collection_address:flags.0?string address:string owner_address:string index:string name:flags.1?string description:flags.2?string image:flags.3?WebDocument image_small:flags.4?WebDocument content_url:flags.5?WebDocument lottie:flags.6?WebDocument attributes:flags.7?Vector<wallet.NftAttribute> extra:flags.8?DataJSON = wallet.NftItem;
Parameters
| Name | Type | Description |
|---|---|---|
| CollectionAddress | flags.0?string | Address of the NFT collection |
| Address | string | Address of the NFT item |
| OwnerAddress | string | Address of the owner |
| Index | string | Index of the item in the collection |
| Name | flags.1?string | Name |
| Description | flags.2?string | Description |
| Image | flags.3?WebDocument | Image |
| ImageSmall | flags.4?WebDocument | Small image |
| ContentUrl | flags.5?WebDocument | Content |
| Lottie | flags.6?WebDocument | Lottie animation |
| Attributes | Vector<wallet.NftAttribute> | Attributes |
| Extra | flags.8?DataJSON | Extra metadata in JSON |
Returns
wallet.NftItemGogram Example
// Creating WalletNftItemObj constructor obj := &tg.WalletNftItemObj{ Address: "1 Main St", OwnerAddress: "1 Main St", Index: "example", // Optional fields: // CollectionAddress: "1 Main St", // Name: "Example", // Description: "Example description", // Image: &tg.WebDocumentObj{}, // ... more optional fields }