Class PaymentNFT
Payment NFT is used for buying NFTs
Implements
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
Assembly: VEDriversLite.dll
Syntax
public class PaymentNFT : CommonNFT, INFT
Constructors
| Improve this Doc View SourcePaymentNFT(String)
Create empty NFT class
Declaration
public PaymentNFT(string utxo)
Parameters
Type | Name | Description |
---|---|---|
System.String | utxo |
Properties
| Improve this Doc View SourceAlreadySoldItem
If you receive payment and NFT is already sold this is set to true
Declaration
public bool AlreadySoldItem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Matched
When payment match the NFT which was bought this is set
Declaration
public bool Matched { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NFTUtxoIndex
original NFT index which was sold
Declaration
public int NFTUtxoIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NFTUtxoTxId
original NFT hash which was sold
Declaration
public string NFTUtxoTxId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OriginalPaymentTxId
Original payment hash (can be from different blockchain or payment method)
Declaration
public string OriginalPaymentTxId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Returned
If this payment was returned because NFT is not available this will be set as true
Declaration
public bool Returned { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Sender
Sender of the payment
Declaration
public string Sender { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceFill(INFT)
Fill basic parameters
Declaration
public override async Task Fill(INFT NFT)
Parameters
Type | Name | Description |
---|---|---|
INFT | NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
| Improve this Doc View SourceGetMetadata(String, String, String)
Get the NFT data for the NFT
Declaration
public override async Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | address | Address of the sender |
System.String | key | Private key of the sender for encryption |
System.String | receiver | receiver of the NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>> |
Overrides
| Improve this Doc View SourceParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)
Find and parse origin data
Declaration
public override 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 |
Overrides
| Improve this Doc View SourceParseSpecific(IDictionary<String, String>)
Parse specific parameters
Declaration
public override void ParseSpecific(IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | metadata |