Skip to content

Commit

Permalink
Update NFTTutorial.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyaKarki authored May 9, 2023
1 parent c6014ea commit 34d53e1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Documentation/NFTTutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ In this tutorial I'll explain how to start using NFTs with StratisUnity3dSDK.

3. Generate new address and fund it with some TCRS. You will need coins in order to deploy and interact with NFTs.

```c#
Network network = new CirrusTest();
```c#
Network network = new CirrusTest();

StratisNodeClient client = new StratisNodeClient("http://localhost:38223/");

Expand All @@ -22,7 +22,8 @@ Mnemonic mnemonic = new Mnemonic("legal door leopard fire attract stove similar
StratisUnityManager stratisUnityManager = new StratisUnityManager(client, new BlockCoreApi("https://tcrs.indexer.blockcore.net/api/"), network, mnemonic);

Debug.Log("Your address: " + stratisUnityManager.GetAddress());
```

```



Expand All @@ -39,6 +40,7 @@ string txId = await NFTWrapper.DeployNFTContractAsync(this.stratisUnityManager,
ReceiptResponse res = await this.stratisUnityManager.WaitTillReceiptAvailable(txId);
Debug.Log("NFT deployed, it's address: " + res.NewContractAddress);
```


Expand All @@ -56,6 +58,7 @@ NFTWrapper nft = new NFTWrapper(stratisUnityManager, nftContractAddress);
await nft.MintAsync(firstAddress, uri).ConfigureAwait(false);
Debug.Log("NFT minted successfully!");
```


Expand All @@ -65,10 +68,12 @@ Debug.Log("NFT minted successfully!");
NFT balance of address is the amount of NFTs that this address controls. You can get it like this:

```
NFTWrapper nft = new NFTWrapper(stratisUnityManager, "t8snCz4kQgovGTAGReAryt863NwEYqjJqy");
ulong balance = await nft.BalanceOfAsync(this.firstAddress).ConfigureAwait(false);
Debug.Log("NFT balance: " + balance);
```


Expand Down

0 comments on commit 34d53e1

Please sign in to comment.