Table of Contents

Class AssetOutput

Namespace
NArk.Core.Assets
Assembly
NArk.Core.dll

An output in an asset group, referencing a transaction output (vout) and amount. Binary layout: [0x01 type][2B vout LE][varint amount]

public class AssetOutput
Inheritance
AssetOutput
Inherited Members

Properties

Amount

public ulong Amount { get; }

Property Value

ulong

Vout

public ushort Vout { get; }

Property Value

ushort

Methods

Create(ushort, ulong)

public static AssetOutput Create(ushort vout, ulong amount)

Parameters

vout ushort
amount ulong

Returns

AssetOutput

FromReader(BufferReader)

public static AssetOutput FromReader(BufferReader reader)

Parameters

reader BufferReader

Returns

AssetOutput

Serialize()

public byte[] Serialize()

Returns

byte[]

SerializeTo(BufferWriter)

public void SerializeTo(BufferWriter writer)

Parameters

writer BufferWriter

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()