Skip to content

feat(appkit): how to work with nfts#1880

Draft
novusnota wants to merge 8 commits intomainfrom
closes-250/appkit-nfts
Draft

feat(appkit): how to work with nfts#1880
novusnota wants to merge 8 commits intomainfrom
closes-250/appkit-nfts

Conversation

@novusnota
Copy link
Collaborator

Closes #250

@github-actions

This comment has been minimized.

@novusnota
Copy link
Collaborator Author

/fmt

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the AppKit docs update; I’ve left a couple of suggestions in ecosystem/appkit/overview.mdx and ecosystem/appkit/nfts.mdx, so please apply the inline suggestions.

@novusnota novusnota added the 3p Reviewed by someone else (a third party). Used for filtering PRs. Don't mind this. label Mar 3, 2026
>
Before displaying or transferring NFTs, verify they belong to legitimate collections. Scammers may create fake NFTs mimicking popular collections.

Mitigation: Always verify the collection address matches the official one. Check NFT metadata for suspicious content.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how can someone verify that NFT belongs to that collection? You can return any address you want in the nft. If we want user to verify collection, we should provide more instructions.

</Aside>

<Aside type="note">
To issue or manage an NFT or an NFT collection without writing code, use [TON Tools](https://ton-collection-edit.vercel.app/).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure we should link to that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely not sure :)

I just thought of giving a link to something tangible akin to https://minter.ton.org, but for NFTs. Let's remove this then.

// Only looks for up to 100 NFTs.
// To get more, call the `getNfts()` function
// multiple times with increasing offsets
const { nfts } = await getNfts(kit, { limit: 100 });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line shows error in the IDE because return type can be null

): Promise<NFT[]> {
const selectedWallet = getSelectedWallet(kit);
const response = await getNftsByAddress(kit, {
address: selectedWallet?.getAddress() ?? '<TON_WALLET_ADDRESS>',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's better to get current wallet address from useAddress()

@novusnota novusnota marked this pull request as draft March 9, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3p Reviewed by someone else (a third party). Used for filtering PRs. Don't mind this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ecosystem > AppKit > Working with NFTs]

2 participants