Class CoruzantNFTHelpers
Helper class to load and handle Coruzant NFTs Will be replaced with INFTModules soon
Inheritance
System.Object
CoruzantNFTHelpers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NFT.Coruzant
Assembly: VEDriversLite.dll
Syntax
public static class CoruzantNFTHelpers
Properties
| Improve this Doc View SourceCoruzantTokenId
Coruzant token ID - CORZT on Neblio Blockchain
Declaration
public static string CoruzantTokenId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceChangeCoruzantPostNFT(String, EncryptionKey, INFT, ICollection<Utxos>, BitcoinSecret, String)
This function will change Coruzant Post NFT You can use this function for sending the NFT when you will fill receiver parameter
Declaration
public static async Task<string> ChangeCoruzantPostNFT(string address, EncryptionKey ekey, INFT NFT, ICollection<Utxos> nutxos, BitcoinSecret secret, string receiver = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | address | sender address |
EncryptionKey | ekey | Encryption Key object of the address |
INFT | NFT | Input NFT object with data to save to metadata. Must contain Utxo hash |
System.Collections.Generic.ICollection<Utxos> | nutxos | List of spendable neblio utxos if you have it loaded. |
NBitcoin.BitcoinSecret | secret | Bitcoin secret for signature |
System.String | receiver | Fill when you want to send NFT to another address |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | New Tx Id Hash |
FindCoruzantProfileNFT(ICollection<INFT>)
This function will return first profile NFT in NFTs list.
Declaration
public static async Task<CoruzantProfileNFT> FindCoruzantProfileNFT(ICollection<INFT> nfts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<INFT> | nfts |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CoruzantProfileNFT> |
GetCoruzantNFTs(List<INFT>)
Filter just Coruzant NFTs from NFT list
Declaration
public static async Task<List<INFT>> GetCoruzantNFTs(List<INFT> allNFTs)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<INFT> | allNFTs |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<INFT>> |