diff --git a/docs/build/isc/v1.1/docs/how-tos/core-contracts/nft/mint-nft.md b/docs/build/isc/v1.1/docs/how-tos/core-contracts/nft/mint-nft.md index 62dc37c5525..b9a04f92bbb 100644 --- a/docs/build/isc/v1.1/docs/how-tos/core-contracts/nft/mint-nft.md +++ b/docs/build/isc/v1.1/docs/how-tos/core-contracts/nft/mint-nft.md @@ -22,9 +22,16 @@ The Stardust update allows you to create your own NFTs. You can also use [IRC27] ```solidity ISCAgentID memory agentID = ISC.sandbox.getSenderAccount(); ``` +:::info ISC AGENT ID +The `ISCAgentID` represents the identifier of the agent (user or contract) whose NFTs you want to retrieve. You can get the `AgentID` from the sender by calling `ISC.sandbox.getSenderAccount()`. +::: 3. Create an `IRC27Metadata` struct with all the needed data: +:::tip +You can refer to [this](https://wiki.iota.org/isc/how-tos/core-contracts/nft/get-nft-metadata/) guide to understand how to create an `IRC27Metadata` +::: + ```solidity IRC27NFTMetadata memory metadata = IRC27NFTMetadata({ standard: "IRC27", @@ -35,6 +42,7 @@ IRC27NFTMetadata memory metadata = IRC27NFTMetadata({ }); ``` + 4. Create all the data for the core contract call. To do so, you should create a new `ISCDict` with 2 parameters like specified in the reference docs for [`mintNFT`](../../../reference/core-contracts/accounts.md#mintnfti-immutabledata-a-agentid-c-collectionid-w-withdrawonmint) * `I` is the immutable metadata we fill with the IRC27 metadata and * `a` is the AgendID of the owner of the NFT @@ -179,5 +187,4 @@ contract NFTContract { '"}'); } } - ```