Class AssetInput
An input in an asset group, referencing a transaction input (vin) and amount. Binary layout: Local (type=1): [0x01][2B vin LE][varint amount] Intent (type=2): [0x02][32B txid][2B vin LE][varint amount]
public class AssetInput
- Inheritance
-
AssetInput
- Inherited Members
Properties
Amount
public ulong Amount { get; }
Property Value
IntentTxid
public byte[]? IntentTxid { get; }
Property Value
- byte[]
Type
public AssetInputType Type { get; }
Property Value
Vin
public ushort Vin { get; }
Property Value
Methods
Create(ushort, ulong)
public static AssetInput Create(ushort vin, ulong amount)
Parameters
Returns
CreateIntent(byte[], ushort, ulong)
public static AssetInput CreateIntent(byte[] txid, ushort vin, ulong amount)
Parameters
Returns
CreateIntent(string, ushort, ulong)
public static AssetInput CreateIntent(string txidHex, ushort vin, ulong amount)
Parameters
Returns
FromReader(BufferReader)
public static AssetInput FromReader(BufferReader reader)
Parameters
readerBufferReader
Returns
Serialize()
public byte[] Serialize()
Returns
- byte[]
SerializeTo(BufferWriter)
public void SerializeTo(BufferWriter writer)
Parameters
writerBufferWriter
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Validate()
public void Validate()