Interface INFT
Main NFT interface
Namespace: VEDriversLite.NFT
Assembly: VEDriversLite.dll
Syntax
public interface INFT
Properties
| Improve this Doc View SourceAuthor
Author of the NFT
Declaration
string Author { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Base64Data
Loaded Image data as base64 string
Declaration
[JsonIgnore]
string Base64Data { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DataItems
More items in the NFT, for example Image gallery with more images than one Probably future replacement of the "ImageLink" property
Declaration
List<NFTDataItem> DataItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NFTDataItem> |
Description
Description of the NFT - for longer text please use the "Text" property
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DogeAddress
Related Doge Address to this NFT. If it is created by VENFT App it is filled automatically during the minting request
Declaration
string DogeAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DogeftInfo
Info for publishing NFT to the Dogeft
Declaration
DogeftInfo DogeftInfo { get; set; }
Property Value
Type | Description |
---|---|
DogeftInfo |
DogePrice
Price of the NFT in the Dogecoin
Declaration
double DogePrice { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
DogePriceActive
DogePriceActive is setted automatically when the price is setted up
Declaration
bool DogePriceActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
History
History of this NFT
Declaration
List<INFT> History { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<INFT> |
IconLink
Link to the icon of the NFT
Declaration
string IconLink { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ImageData
Loaded Image data as byte array
Declaration
[JsonIgnore]
byte[] ImageData { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ImageLink
Link to the image in the NFT
Declaration
string ImageLink { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsInThePayments
If the NFT is alredy saw in the payment this is set
Declaration
bool IsInThePayments { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLoaded
If the NFT is fully loaded this flag is set
Declaration
bool IsLoaded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Link
Link to some webiste in the NFT
Declaration
string Link { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Name of the NFT
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NFTOriginTxId
NFT Origin transaction hash - minting transaction in the case of original NFTs (Image, Music, Ticket)
Declaration
string NFTOriginTxId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Preview
Preview data of image or music
Declaration
string Preview { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PreviewData
Data of the preview file
Declaration
[JsonIgnore]
byte[] PreviewData { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Price
Price of the NFT in the Neblio
Declaration
double Price { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
PriceActive
PriceActive is setted automatically when the price is setted up
Declaration
bool PriceActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SellJustCopy
Set that this NFT will be sold as just in coppies minted for the buyer
Declaration
bool SellJustCopy { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShortHash
Shorten hash including index number
Declaration
string ShortHash { get; }
Property Value
Type | Description |
---|---|
System.String |
SoldInfo
If the NFT is sold this will be filled
Declaration
NFTSoldInfo SoldInfo { get; set; }
Property Value
Type | Description |
---|---|
NFTSoldInfo |
SourceTxId
Source tx where the input for the NFT Minting was taken
Declaration
string SourceTxId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tags
List of the tags separated by space
Declaration
string Tags { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TagsList
Parsed tag list. It is parsed in Common NFT class
Declaration
List<string> TagsList { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Text
Text of the NFT - prepared for the longer texts
Declaration
string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Time
DateTime stamp taken from the blockchain trnsaction
Declaration
DateTime Time { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
TokenId
Id of the token on what the NFT is created
Declaration
string TokenId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TxDetails
The transaction info details
Declaration
[JsonIgnore]
GetTransactionInfoResponse TxDetails { get; set; }
Property Value
Type | Description |
---|---|
GetTransactionInfoResponse |
Type
NFT Type by enum of NFTTypes
Declaration
NFTTypes Type { get; set; }
Property Value
Type | Description |
---|---|
NFTTypes |
TypeText
Text form of the NFT type like "NFT Image" or "NFT Post" The parsing is in the Common NFT
Declaration
string TypeText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Utxo
NFT Utxo hash
Declaration
string Utxo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UtxoIndex
NFT Utxo Index
Declaration
int UtxoIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceClearPrices()
Clear all the prices inside of the NFT
Declaration
Task ClearPrices()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ClearSoldInfo()
Clear the object with SoldInfo of NFT
Declaration
Task ClearSoldInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
DecryptImageData(BitcoinSecret, String, String, String)
This function will download the data from the IPFS then decrypt the encrypted file container with use of shared secret. Then the image is saved in ImageData as bytes.
Declaration
Task<(bool, byte[])> DecryptImageData(BitcoinSecret secret, string imageLink, string partner, string sharedkey = "")
Parameters
Type | Name | Description |
---|---|---|
NBitcoin.BitcoinSecret | secret | NFT Owner Private Key |
System.String | imageLink | link to image |
System.String | partner | Communication partner address to find public key |
System.String | sharedkey | If you already know sharedkey it saves time |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.Byte[]>> |
DecryptProperty(String, BitcoinSecret, String, String, String)
Decrypt the specific property with use of shared secret
Declaration
Task<string> DecryptProperty(string prop, BitcoinSecret secret, string address = "", string partner = "", string sharedkey = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | prop | Property content |
NBitcoin.BitcoinSecret | secret | NFT Owner Private Key |
System.String | address | Address of sender |
System.String | partner | Communication partner address to find public key |
System.String | sharedkey | If you already know sharedkey it saves time |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |
DownloadImageData()
Download Image data if there are some
Declaration
Task<bool> DownloadImageData()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | true if success |
DownloadPreviewData()
Download preview data if there are some
Declaration
Task<bool> DownloadPreviewData()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | true if success |
Fill(INFT)
Fill common and specific properties of the NFT
Declaration
Task Fill(INFT NFT)
Parameters
Type | Name | Description |
---|---|---|
INFT | NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
FillCommon(INFT)
Fill common properties for the NFT
Declaration
Task FillCommon(INFT nft)
Parameters
Type | Name | Description |
---|---|---|
INFT | nft |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetCommonMetadata()
Get Common Metadata of the Actual NFT
Declaration
Task<IDictionary<string, string>> GetCommonMetadata()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>> |
GetMetadata(String, String, String)
Retrive the Metadata of the actual NFT. It will take the correct properties and translate them to the dictionary which can be add to the token transaction metdata If the NFT contains encrypted metadata with use of Shared Secret (EDCH) like NFT Message you must provide the parameters if you need to do encryption
Declaration
Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | address | Address of the sender of the NFT |
System.String | key | Private key of the sender of the NFT |
System.String | receiver | Receiver of the NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>> |
IsSpendable()
Return info if the transaction is spendable
Declaration
bool IsSpendable()
Returns
Type | Description |
---|---|
System.Boolean |
LoadHistory()
Load NFT history. It will load fully all history steps of this NFT
Declaration
Task LoadHistory()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
LoadLastData(IDictionary<String, String>)
Load last data of the NFT. It means that it will take just the last data and not tracking the origin for the orign data
Declaration
Task LoadLastData(IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | metadata |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ParseCommon(IDictionary<String, String>)
Parse Common Properties from Metadata
Declaration
void ParseCommon(IDictionary<string, string> meta)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | meta |
ParseDogeftInfo(IDictionary<String, String>)
Parse dogeft info from the metadata
Declaration
Task ParseDogeftInfo(IDictionary<string, string> meta)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | meta |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)
Parse the origin data of the NFT. It will track the NFT to its origin and use the data from the origin
Declaration
Task ParseOriginData(IDictionary<string, string> lastmetadata, GetTransactionInfoResponse txinfo = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | lastmetadata | |
GetTransactionInfoResponse | txinfo |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ParsePrice(IDictionary<String, String>)
Parse price from the metadata of the NFT
Declaration
void ParsePrice(IDictionary<string, string> meta)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | meta |
ParseSoldInfo(IDictionary<String, String>)
Parse info about the sellfrom the metadata of the NFT
Declaration
void ParseSoldInfo(IDictionary<string, string> meta)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | meta |
ParseSpecific(IDictionary<String, String>)
Parse specific information related to the specific kind of the NFT. This function must be overwritte in specific NFT class
Declaration
void ParseSpecific(IDictionary<string, string> meta)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | meta |
ParseTags()
Parse tags to tag list
Declaration
void ParseTags()
StartRefreshingTxData(Int32)
Start auto refreshing of the tx info data
Declaration
Task StartRefreshingTxData(int interval = 5000)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | interval |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
StopRefreshingData()
Stop the auto refreshin of the tx info data
Declaration
Task StopRefreshingData()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Events
| Improve this Doc View SourceTxDataRefreshed
This event is fired when the transaction info is refreshed
Declaration
event EventHandler<GetTransactionInfoResponse> TxDataRefreshed
Event Type
Type | Description |
---|---|
System.EventHandler<GetTransactionInfoResponse> |