Class AssetGroup
A group of asset inputs and outputs with optional AssetId, control asset, and metadata. Binary layout: [1B presence flags] [if 0x01: 34B AssetId] [if 0x02: AssetRef (variable)] [if 0x04: varint mdCount + Metadata[]] [varint inputCount][AssetInput...] [varint outputCount][AssetOutput...]
public class AssetGroup
- Inheritance
-
AssetGroup
- Inherited Members
Constructors
AssetGroup(AssetId?, AssetRef?, IReadOnlyList<AssetInput>, IReadOnlyList<AssetOutput>, IReadOnlyList<AssetMetadata>)
public AssetGroup(AssetId? assetId, AssetRef? controlAsset, IReadOnlyList<AssetInput> inputs, IReadOnlyList<AssetOutput> outputs, IReadOnlyList<AssetMetadata> metadata)
Parameters
assetIdAssetIdcontrolAssetAssetRefinputsIReadOnlyList<AssetInput>outputsIReadOnlyList<AssetOutput>metadataIReadOnlyList<AssetMetadata>
Properties
AssetId
public AssetId? AssetId { get; }
Property Value
ControlAsset
public AssetRef? ControlAsset { get; }
Property Value
Inputs
public IReadOnlyList<AssetInput> Inputs { get; }
Property Value
IsIssuance
public bool IsIssuance { get; }
Property Value
Metadata
public IReadOnlyList<AssetMetadata> Metadata { get; }
Property Value
Outputs
public IReadOnlyList<AssetOutput> Outputs { get; }
Property Value
Methods
Create(AssetId?, AssetRef?, IReadOnlyList<AssetInput>, IReadOnlyList<AssetOutput>, IReadOnlyList<AssetMetadata>)
public static AssetGroup Create(AssetId? assetId, AssetRef? controlAsset, IReadOnlyList<AssetInput> inputs, IReadOnlyList<AssetOutput> outputs, IReadOnlyList<AssetMetadata> metadata)
Parameters
assetIdAssetIdcontrolAssetAssetRefinputsIReadOnlyList<AssetInput>outputsIReadOnlyList<AssetOutput>metadataIReadOnlyList<AssetMetadata>
Returns
FromReader(BufferReader)
public static AssetGroup FromReader(BufferReader reader)
Parameters
readerBufferReader
Returns
Serialize()
public byte[] Serialize()
Returns
- byte[]
SerializeTo(BufferWriter)
public void SerializeTo(BufferWriter writer)
Parameters
writerBufferWriter
ToBatchLeafAssetGroup(byte[])
public AssetGroup ToBatchLeafAssetGroup(byte[] intentTxid)
Parameters
intentTxidbyte[]
Returns
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()