Show / Hide Table of Contents

Class MptAmount

Inheritance
object
Amount
MptAmount
Implements
ISerializedType
Inherited Members
Amount.IsNative()
Amount.Issuer
Amount.Currency
Amount.Value
Amount.MaximumIouPrecision
Amount.FromJson(JsonNode)
Amount.DecimalValue()
Amount.NewValue(decimal)
Namespace: Xrpl.BinaryCodec.Types
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
Type Description
bool
| Edit this page View Source

MptIssuanceId

Declaration
public readonly Hash192 MptIssuanceId
Field Value
Type Description
Hash192
| Edit this page View Source

MptValue

Declaration
public readonly ulong MptValue
Field Value
Type Description
ulong

Methods

| Edit this page View Source

FromBytes(byte[])

Declaration
public static MptAmount FromBytes(byte[] bytes)
Parameters
Type Name Description
byte[] bytes
Returns
Type Description
MptAmount
| Edit this page View Source

FromParser(BinaryParser, int?)

Declaration
public static MptAmount FromParser(BinaryParser parser, int? hint = null)
Parameters
Type Name Description
BinaryParser parser
int? hint
Returns
Type Description
MptAmount
| Edit this page View Source

ToBytes(IBytesSink)

to bytes Sink

Declaration
public override void ToBytes(IBytesSink sink)
Parameters
Type Name Description
IBytesSink sink

bytes Sink container

Overrides
Amount.ToBytes(IBytesSink)
| Edit this page View Source

ToJson()

Get the JSON representation of this type

Declaration
public override JsonNode ToJson()
Returns
Type Description
JsonNode
Overrides
Amount.ToJson()

Implements

ISerializedType

Extension Methods

StExtensions.ToDebuggedHex(ISerializedType)
StExtensions.ToHex(ISerializedType)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX