Layer 231
WalletGetNfts
Get the NFTs held by the user's built-in TON wallet, with names, images and attributes. Results are paginated with offset/next_offset.
method
wallet.getNfts#8c12f3a4 offset:string limit:int = wallet.NftItems;
Parameters
| Name | Type | Description |
|---|---|---|
| Offset | string | Pagination offset: empty for the first page, then next_offset of the previous result |
| Limit | int | Maximum number of NFTs to return |
Returns
wallet.NftItemsGogram Example
res, err := client.WalletGetNfts("", 50) if err != nil { log.Fatal(err) } for _, nft := range res.Items { fmt.Println(nft.Name, nft.Address, "collection:", nft.CollectionAddress) } fmt.Println("next offset:", res.NextOffset)