Generated by DocFX

Interface INFT

Main NFT interface

Namespace: VEDriversLite.NFT
Assembly: VEDriversLite.dll
Syntax
public interface INFT

Properties

| Improve this Doc View Source

Author

Author of the NFT

Declaration
string Author { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Base64Data

Loaded Image data as base64 string

Declaration
[JsonIgnore]
string Base64Data { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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>
| Improve this Doc View Source

Description

Description of the NFT - for longer text please use the "Text" property

Declaration
string Description { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

DogeftInfo

Info for publishing NFT to the Dogeft

Declaration
DogeftInfo DogeftInfo { get; set; }
Property Value
Type Description
DogeftInfo
| Improve this Doc View Source

DogePrice

Price of the NFT in the Dogecoin

Declaration
double DogePrice { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

DogePriceActive

DogePriceActive is setted automatically when the price is setted up

Declaration
bool DogePriceActive { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

History

History of this NFT

Declaration
List<INFT> History { get; set; }
Property Value
Type Description
System.Collections.Generic.List<INFT>
| Improve this Doc View Source

IconLink

Link to the icon of the NFT

Declaration
string IconLink { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ImageData

Loaded Image data as byte array

Declaration
[JsonIgnore]
byte[] ImageData { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

ImageLink

Link to the image in the NFT

Declaration
string ImageLink { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsInThePayments

If the NFT is alredy saw in the payment this is set

Declaration
bool IsInThePayments { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsLoaded

If the NFT is fully loaded this flag is set

Declaration
bool IsLoaded { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Link

Link to some webiste in the NFT

Declaration
string Link { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Name of the NFT

Declaration
string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Preview

Preview data of image or music

Declaration
string Preview { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PreviewData

Data of the preview file

Declaration
[JsonIgnore]
byte[] PreviewData { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

Price

Price of the NFT in the Neblio

Declaration
double Price { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

PriceActive

PriceActive is setted automatically when the price is setted up

Declaration
bool PriceActive { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

ShortHash

Shorten hash including index number

Declaration
string ShortHash { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SoldInfo

If the NFT is sold this will be filled

Declaration
NFTSoldInfo SoldInfo { get; set; }
Property Value
Type Description
NFTSoldInfo
| Improve this Doc View Source

SourceTxId

Source tx where the input for the NFT Minting was taken

Declaration
string SourceTxId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Tags

List of the tags separated by space

Declaration
string Tags { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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>
| Improve this Doc View Source

Text

Text of the NFT - prepared for the longer texts

Declaration
string Text { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Time

DateTime stamp taken from the blockchain trnsaction

Declaration
DateTime Time { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

TokenId

Id of the token on what the NFT is created

Declaration
string TokenId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TxDetails

The transaction info details

Declaration
[JsonIgnore]
GetTransactionInfoResponse TxDetails { get; set; }
Property Value
Type Description
GetTransactionInfoResponse
| Improve this Doc View Source

Type

NFT Type by enum of NFTTypes

Declaration
NFTTypes Type { get; set; }
Property Value
Type Description
NFTTypes
| Improve this Doc View Source

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
| Improve this Doc View Source

Utxo

NFT Utxo hash

Declaration
string Utxo { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UtxoIndex

NFT Utxo Index

Declaration
int UtxoIndex { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

ClearPrices()

Clear all the prices inside of the NFT

Declaration
Task ClearPrices()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

ClearSoldInfo()

Clear the object with SoldInfo of NFT

Declaration
Task ClearSoldInfo()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

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[]>>
| Improve this Doc View Source

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>
| Improve this Doc View Source

DownloadImageData()

Download Image data if there are some

Declaration
Task<bool> DownloadImageData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

true if success

| Improve this Doc View Source

DownloadPreviewData()

Download preview data if there are some

Declaration
Task<bool> DownloadPreviewData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

true if success

| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

IsSpendable()

Return info if the transaction is spendable

Declaration
bool IsSpendable()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

LoadHistory()

Load NFT history. It will load fully all history steps of this NFT

Declaration
Task LoadHistory()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

ParseTags()

Parse tags to tag list

Declaration
void ParseTags()
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

TxDataRefreshed

This event is fired when the transaction info is refreshed

Declaration
event EventHandler<GetTransactionInfoResponse> TxDataRefreshed
Event Type
Type Description
System.EventHandler<GetTransactionInfoResponse>