Interact with NFTs created by Tradeport

Hello everyone!

I’m new to SUI and currently developing a dApp that needs to integrate with a specific package. Could anyone guide me on how to import this package into my smart contract?

Additionally, I want to create a function to verify whether a given NFT was created by this package. Any advice on how to approach this would be greatly appreciated!

This is the package Id (I cant add a link): 0xfc251c8c149a5cc153646c83bf2103829ba379239b7ec2a1b56f22f48f1162f4

1 Like

Hello and welcome to Sui!

To integrate the package you mentioned into your smart contract, you will need to import it by specifying the package as a dependency in your Move.toml file

Here is how you can approach it:

Set up your package

You’ll need to add the package you’re working with as a dependency in the Move.toml file of your project. The dependency specification can be a git repository URL or a path to your local directory hosting the package’s code.

Verify NFT type

To verify if a specific NFT was created by package X, you can check against the NFT type which will look like packageX::module::NFT

Resources

For more details on how Move packages work, how to manage dependencies, and more, please have a look at the following resources:

2 Likes

Thank you so much, it’s awesome ^^

1 Like