Class MptAmount
Inheritance
object
MptAmount
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class MptAmount : Amount, ISerializedType
Constructors
|
Edit this page
View Source
MptAmount(bool, ulong, Hash192)
Declaration
public MptAmount(bool isPositive, ulong mptValue, Hash192 mptIssuanceId)
Parameters
| Type |
Name |
Description |
| bool |
isPositive |
|
| ulong |
mptValue |
|
| Hash192 |
mptIssuanceId |
|
|
Edit this page
View Source
MptAmount(string, string)
Declaration
public MptAmount(string value, string mptIssuanceId)
Parameters
| Type |
Name |
Description |
| string |
value |
|
| string |
mptIssuanceId |
|
Fields
|
Edit this page
View Source
IsPositive
Declaration
public readonly bool IsPositive
Field Value
|
Edit this page
View Source
MptIssuanceId
Declaration
public readonly Hash192 MptIssuanceId
Field Value
|
Edit this page
View Source
MptValue
Declaration
public readonly ulong MptValue
Field Value
Methods
|
Edit this page
View Source
FromBytes(byte[])
Declaration
public static MptAmount FromBytes(byte[] bytes)
Parameters
| Type |
Name |
Description |
| byte[] |
bytes |
|
Returns
|
Edit this page
View Source
FromParser(BinaryParser, int?)
Declaration
public static MptAmount FromParser(BinaryParser parser, int? hint = null)
Parameters
Returns
|
Edit this page
View Source
ToBytes(IBytesSink)
Declaration
public override void ToBytes(IBytesSink sink)
Parameters
| Type |
Name |
Description |
| IBytesSink |
sink |
bytes Sink container
|
Overrides
|
Edit this page
View Source
ToJson()
Get the JSON representation of this type
Declaration
public override JsonNode ToJson()
Returns
| Type |
Description |
| JsonNode |
|
Overrides
Implements
Extension Methods