Show / Hide Table of Contents

Class Issue

Represents an Issue (currency + optional issuer), similar to ripple-binary-codec/src/types/issue.ts

Inheritance
object
Issue
Implements
ISerializedType
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Issue : ISerializedType

Constructors

| Edit this page View Source

Issue()

XRP Issue: only currency, no issuer.

Declaration
public Issue()
| Edit this page View Source

Issue(Currency, AccountId)

IOU Issue: currency with specified issuer.

Declaration
public Issue(Currency currency, AccountId issuer)
Parameters
Type Name Description
Currency currency
AccountId issuer

Fields

| Edit this page View Source

Currency

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

Issuer

Declaration
public readonly AccountId Issuer
Field Value
Type Description
AccountId

Methods

| Edit this page View Source

FromJson(JsonNode)

Deserialize from JSON, distinguishing XRP and IOU issues.

Declaration
public static Issue FromJson(JsonNode token)
Parameters
Type Name Description
JsonNode token
Returns
Type Description
Issue
| Edit this page View Source

FromParser(BinaryParser, int?)

Read from binary parser: 20 bytes for currency, and for IOU an additional 20 bytes for issuer.

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

ToBytes(IBytesSink)

to bytes Sink

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

bytes Sink container

| Edit this page View Source

ToJson()

Get the JSON representation of this type

Declaration
public JsonNode ToJson()
Returns
Type Description
JsonNode

Implements

ISerializedType

Extension Methods

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